Class VideoSynthesis
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.videosynthesis.VideoSynthesis
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.Video synthesis durationstatic classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.Video synthesis size -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.default VideoSynthesis constructorVideoSynthesis(String baseUrl) Deprecated.Create with custom baseUrlVideoSynthesis(String baseUrl, String task) Deprecated.Create with custom baseUrl -
Method Summary
Modifier and TypeMethodDescriptionasyncCall(VideoSynthesisParam param) Deprecated.Async callcall(VideoSynthesisParam param) Deprecated.Call the server to get the result.cancel(VideoSynthesisResult taskInfo, String apiKey) Deprecated.Cancel the task.Deprecated.Cancel the task.fetch(VideoSynthesisResult taskInfo, String apiKey) Deprecated.Fetch the result.Deprecated.Fetch the result.list(AsyncTaskListParam param) Deprecated.List the tasks.list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) Deprecated.wait(VideoSynthesisResult taskInfo, String apiKey) Deprecated.Wait for the task to complete.Deprecated.Wait for the task to complete.
-
Constructor Details
-
VideoSynthesis
public VideoSynthesis()Deprecated.default VideoSynthesis constructor -
VideoSynthesis
Deprecated.Create with custom baseUrl- Parameters:
baseUrl- The service base url.
-
VideoSynthesis
Deprecated.Create with custom baseUrl- Parameters:
baseUrl- The service base url.
-
-
Method Details
-
asyncCall
public VideoSynthesisResult asyncCall(VideoSynthesisParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Async call- Parameters:
param- The input param of class VideoSynthesisParam- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.InputRequiredException- Check the input param.
-
call
public VideoSynthesisResult call(VideoSynthesisParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result.- Parameters:
param- The input param of class `VideoSynthesisParam`.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.InputRequiredException- Check the input param.
-
list
public VideoSynthesisListResult list(AsyncTaskListParam param) throws ApiException, NoApiKeyException Deprecated.List the tasks.- Parameters:
param- The input param of class `AsyncTaskListParam`.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
list
public VideoSynthesisListResult list(String startTime, String endTime, String modelName, String apiKeyId, String region, String status, Integer pageNo, Integer pageSize) throws ApiException, NoApiKeyException Deprecated.- Parameters:
startTime- startTimeendTime- endTimemodelName- modelNameapiKeyId- apiKeyIdregion- regionstatus- statuspageNo- pageNopageSize- pageSize- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
fetch
public VideoSynthesisResult fetch(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.Fetch the result.- Parameters:
taskId- The task id.apiKey- The api key.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
fetch
public VideoSynthesisResult fetch(VideoSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.Fetch the result.- Parameters:
taskInfo- The task info.apiKey- The api key.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
cancel
public VideoSynthesisResult cancel(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.Cancel the task.- Parameters:
taskId- The task id.apiKey- The api key.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
cancel
public VideoSynthesisResult cancel(VideoSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.Cancel the task.- Parameters:
taskInfo- The task info.apiKey- The api key.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
wait
public VideoSynthesisResult wait(String taskId, String apiKey) throws ApiException, NoApiKeyException Deprecated.Wait for the task to complete.- Parameters:
taskId- The task id.apiKey- The api key.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-
wait
public VideoSynthesisResult wait(VideoSynthesisResult taskInfo, String apiKey) throws ApiException, NoApiKeyException Deprecated.Wait for the task to complete.- Parameters:
taskInfo- The task info.apiKey- The api key.- Returns:
- The video synthesis result.
- Throws:
NoApiKeyException- Can not find api key.ApiException- The request failed, possibly due to a network or data error.
-