BDVideoUploader class
{zh} @detail api @brief 视频上传类
- Inheritance
-
- Object
- PackClass
- BDVideoUploader
- Implementers
Constructors
Properties
- $instance → dynamic
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$createInstance(
List args) → dynamic -
Factory method for creating instances
override
-
$destroy(
) → void -
inherited
-
$init(
List args) → void -
inherited
-
close(
) → Future - {zh} @brief 终止上传,并释放底层上传对象,释放后不能够继续进行上传。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setClassificationId(
int classificationId) → Future - {zh} @brief 设置 分类 ID
-
setDescription(
string description) → Future - {zh} @brief 设置描述 @param description 描述
-
setFileExtension(
string fileExtension) → Future - {zh} @brief 设置后缀,必须设置,需要以 . 开头,如 .mp4、.mp3 等。
-
setFileName(
string fileName) → Future - {zh} @brief 设置文件名称
-
setFilePrefix(
string filePrefix) → Future - {zh} @brief 设置前缀,可选设置,需要以 / 结尾
-
setFormat(
string format) → Future - {zh} @brief 格式。若传入 Format 的话,以您传入参数为准,否则以系统识别出的 Format 为准。若遇到特殊文件无法识别,Format 可能为空。 @param format 格式
-
setHost(
string value) → Future - {zh} @brief 设置域名
-
setPoster(
float posterTime) → Future - {zh} @brief 设置视频自动抽帧时间点,单位为秒。设置成功后,上传 SDK 将根据您设置的固定时间点截取视频帧,作为视频的封面图。
-
setTags(
string tags) → Future - {zh} @brief 设置标签,多个标签可用逗号隔开。 @param tags 标签
-
setTemplateId(
string templateId) → Future - {zh} @brief 传入工作流 ID,从而触发媒体处理任务
-
setTitle(
string title) → Future - {zh} @brief 设置标题 @param title 标题
-
start(
) → Future - {zh} @brief 开始上传 @note SDK 内部在执行此函数的时候,会新建线程,不会阻塞。
-
stop(
) → Future - {zh} @brief 暂停上传
-
toString(
) → String -
A string representation of this object.
inherited
-
updateInstance(
dynamic instance) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited