Extends
Methods
count() → {Promise.<number>}
    获取文件数量。
- Since:
 - v3.0.0
 
- Source:
 
Returns:
- Type
 - Promise.<number>
 
delete(id) → {Promise.<BaaS.Response.<any>>}
    删除文件。
    Parameters:
| Name | Type | Description | 
|---|---|---|
id | 
            
            string | 文件 ID | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.Response.<any>>
 
expand(key) → {this}
    指定需要展开的 pointer 类型字段
    Parameters:
| Name | Type | Description | 
|---|---|---|
key | 
            
            Array.<string> | string | 字段名称 | 
- Overrides:
 - Source:
 
Returns:
- Type
 - this
 
find(optionsopt) → {Promise.<BaaS.Response.<any>>}
    获取文件列表。
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
options | 
            
            BaaS.FindOptions | 
                
                    <optional> | 
            
            
            参数 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.Response.<any>>
 
genVideoSnapshot(params) → {Promise.<BaaS.FileOperationResult>}
    生成视频截图。
    Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            BaaS.VideoSnapshotParams | 截图参数 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.FileOperationResult>
 
get(fileID) → {Promise.<BaaS.Response.<any>>}
    获取文件详情。
    Parameters:
| Name | Type | Description | 
|---|---|---|
fileID | 
            
            string | 文件 ID | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.Response.<any>>
 
limit(count) → {this}
    指定最多返回数量
    Parameters:
| Name | Type | Description | 
|---|---|---|
count | 
            
            number | 数量 | 
- Overrides:
 - Source:
 
Returns:
- Type
 - this
 
offset(count) → {this}
    设置列表偏移量
    Parameters:
| Name | Type | Description | 
|---|---|---|
count | 
            
            number | 偏移量 | 
- Overrides:
 - Source:
 
Returns:
- Type
 - this
 
orderBy(key) → {this}
    设置排序依据
    Parameters:
| Name | Type | Description | 
|---|---|---|
key | 
            
            Array.<string> | string | 字段名称 | 
- Overrides:
 - Source:
 
Returns:
- Type
 - this
 
select(key) → {this}
    选择只返回指定字段
    Parameters:
| Name | Type | Description | 
|---|---|---|
key | 
            
            Array.<string> | string | 字段名称 | 
- Overrides:
 - Source:
 
Returns:
- Type
 - this
 
setQuery(Query) → {this}
    设置查询条件
    Parameters:
| Name | Type | Description | 
|---|---|---|
Query | 
            
            BaaS.Query | 对象 | 
- Overrides:
 - Source:
 
Returns:
- Type
 - this
 
upload(fileParams, metaDataopt) → {Promise.<BaaS.Response.<any>>}
    上传文件。
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
fileParams | 
            
            BaaS.FileParams | 文件参数 | |
metaData | 
            
            BaaS.FileMeta | 
                
                    <optional> | 
            
            
            文件元信息 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.Response.<any>>
 
videoAudioMeta(params) → {Promise.<BaaS.VideoAudioMetaResult>}
    音视频的元信息。
    Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            BaaS.VideoAudioMetaParams | 音视频的元信息参数 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.VideoAudioMetaResult>
 
videoClip(params) → {Promise.<BaaS.FileOperationResult>}
    M3U8 视频剪辑。
    Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            BaaS.VideoClipParams | 剪辑参数 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.FileOperationResult>
 
videoConcat(params) → {Promise.<BaaS.FileOperationResult>}
    M3U8 视频拼接。
    Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            BaaS.VideoConcatParams | 拼接参数 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.FileOperationResult>
 
videoMeta(params) → {Promise.<BaaS.VideoMetaResult>}
    M3U8 时长和分片信息。
    Parameters:
| Name | Type | Description | 
|---|---|---|
params | 
            
            BaaS.VideoMetaParams | 分片信息参数 | 
- Source:
 
Returns:
- Type
 - Promise.<BaaS.VideoMetaResult>