提交 bd0cfd11 编写于 作者: X x30034819

播放增加fd使用说明 Signed-off-by: x30034819 <xieyijun3@huawei.com>

Signed-off-by: Nx30034819 <xieyijun3@huawei.com>
Change-Id: Ib84a13b38a2183a288e64b74d249b828fc21169e
上级 dce0f43c
...@@ -370,6 +370,10 @@ Audio/Video播放demo可参考:[AVPlayer开发指导](../../media/avplayer-pla ...@@ -370,6 +370,10 @@ Audio/Video播放demo可参考:[AVPlayer开发指导](../../media/avplayer-pla
| width<sup>9+</sup> | number | 是 | 否 | 视频宽,单位为像素(px),可查询参数。<br/>返回为(0)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。 | | width<sup>9+</sup> | number | 是 | 否 | 视频宽,单位为像素(px),可查询参数。<br/>返回为(0)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。 |
| height<sup>9+</sup> | number | 是 | 否 | 视频高,单位为像素(px),可查询参数。<br/>返回为(0)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。 | | height<sup>9+</sup> | number | 是 | 否 | 视频高,单位为像素(px),可查询参数。<br/>返回为(0)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。 |
**说明:**
将资源句柄(fd)传递给媒体播放器之后,请不要通过该资源句柄做其他读写操作,包括但不限于将同一个资源句柄传递给多个媒体播放器。多个进程通过同一个资源句柄读写文件时存在竞争关系,将导致播放异常。
### on('stateChange')<sup>9+</sup><a name = stateChange_on></a> ### on('stateChange')<sup>9+</sup><a name = stateChange_on></a>
on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册