未验证 提交 6f4427ef 编写于 作者: G GH 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-media.md.

Signed-off-by: NGH <guohui36@huawei.com>
上级 22749ccb
...@@ -1617,7 +1617,8 @@ avPlayer.off('audioInterrupt') ...@@ -1617,7 +1617,8 @@ avPlayer.off('audioInterrupt')
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------ | ------ | ---- | ------------------------------------------------------------ | | ------ | ------ | ---- | ------------------------------------------------------------ |
| fileSize | number | 是 | 待播放文件大小(字节),-1代表大小未知。如果fileSize设置为-1, 播放模式类似于直播,不能进行seek及setSpeed操作,不能设置loop属性,且不能重新播放。 | | fileSize | number | 是 | 待播放文件大小(字节),-1代表大小未知。如果fileSize设置为-1, 播放模式类似于直播,不能进行seek及setSpeed操作,不能设置loop属性,且不能重新播放。 |
| callback | function | 是 | 用户设置的回调函数,用于填写数据。第一个参数buffer,必选,类型为ArrayBuffer,被填写的内存;第二个参数length,必选,类型为number,被填写内存的最大长度;第三个参数pos,可选,类型为number,填写的数据在资源文件中的位置,当fileSize设置为-1时,该参数禁止被使用。 | | callback | function | 是 | 用户设置的回调函数,用于填写数据。<br>- buffer,ArrayBuffer类型,表示被填写的内存,必选。<br>- length,number类型,表示被填写内存的最大长度,必选。<br>- pos,number类型,表示填写的数据在资源文件中的位置,可选,当fileSize设置为-1时,该参数禁止被使用。 |
## SeekMode<sup>8+</sup> ## SeekMode<sup>8+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册