Skip to content

Commit

Permalink
Update video-context.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Oct 30, 2019
1 parent bfa2f85 commit c2627bf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/api/media/video-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@

**videoContext 对象的方法列表**

|方法|参数|说明|
|:-|:-|:-|
|play||播放|
|pause||暂停|
|seek|position|跳转到指定位置,单位 s|
|stop||停止视频,仅`微信小程序平台`支持,[规范详情](https://developers.weixin.qq.com/miniprogram/dev/api/VideoContext.stop.html)|
|sendDanmu|danmu|发送弹幕,danmu 包含两个属性 text, color|
|playbackRate|rate|设置倍速播放,支持的倍率有 0.5/0.8/1.0/1.25/1.5。微信基础库2.6.3 起支持 2.0 倍速|
|requestFullScreen||进入全屏,可传入{direction}参数,详见 video 组件文档|
|exitFullScreen||退出全屏|
|showStatusBar||显示状态栏,仅在iOS全屏下有效|
|hideStatusBar||隐藏状态栏,仅在iOS全屏下有效|
|方法|参数|说明|平台差异说明
|:-|:-|:-|:-|
|play||播放||
|pause||暂停||
|seek|position|跳转到指定位置,单位 s||
|stop||停止视频|微信小程序|
|sendDanmu|danmu|发送弹幕,danmu 包含两个属性 text, color||
|playbackRate|rate|设置倍速播放,支持的倍率有 0.5/0.8/1.0/1.25/1.5。微信基础库2.6.3 起支持 2.0 倍速||
|requestFullScreen||进入全屏,可传入{direction}参数,详见 video 组件文档||
|exitFullScreen||退出全屏||
|showStatusBar||显示状态栏,仅在iOS全屏下有效|微信小程序、百度小程序、QQ小程序|
|hideStatusBar||隐藏状态栏,仅在iOS全屏下有效|微信小程序、百度小程序、QQ小程序|

**注意:**
- app-nvue 平台 2.2.5+ 支持 uni.createVideoContext(videoId, this)
Expand Down

0 comments on commit c2627bf

Please sign in to comment.