VideoGenerationService class

视频生成服务 负责调用后端 /api/shopping/action 接口生成试衣视频

Constructors

VideoGenerationService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generateVideo({required String tryonImageUrl, String? sessionId, String? language, int duration = 5, String resolution = '1080P', bool audio = true}) Future<VideoTaskResult>
生成试衣视频(异步任务)
getTaskStatus(String taskId, {String? language}) Future<VideoTaskStatusResult>
查询视频生成任务状态
pollTaskStatus(String taskId, {void onProgress(VideoTaskStatusResult)?, String? language, int timeoutSeconds = _pollTimeoutSeconds}) Future<VideoTaskStatusResult>
轮询查询视频生成状态,直到完成或超时