未验证 提交 d2f7fc49 编写于 作者: W wanganxp 提交者: GitHub

Update video-context.md

上级 e1cfb68e
...@@ -16,15 +16,15 @@ ...@@ -16,15 +16,15 @@
|seek|position|跳转到指定位置,单位 s| |seek|position|跳转到指定位置,单位 s|
|stop||停止视频,仅`微信小程序平台`支持,[规范详情](https://developers.weixin.qq.com/miniprogram/dev/api/VideoContext.stop.html)| |stop||停止视频,仅`微信小程序平台`支持,[规范详情](https://developers.weixin.qq.com/miniprogram/dev/api/VideoContext.stop.html)|
|sendDanmu|danmu|发送弹幕,danmu 包含两个属性 text, color| |sendDanmu|danmu|发送弹幕,danmu 包含两个属性 text, color|
|playbackRate|rate|设置倍速播放,支持的倍率有 0.5/0.8/1.0/1.25/1.5| |playbackRate|rate|设置倍速播放,支持的倍率有 0.5/0.8/1.0/1.25/1.5。微信基础库2.6.3 起支持 2.0 倍速|
|requestFullScreen|无|进入全屏,可传入{direction}参数,详见 video 组件文档| |requestFullScreen|无|进入全屏,可传入{direction}参数,详见 video 组件文档|
|exitFullScreen|无|退出全屏| |exitFullScreen|无|退出全屏|
|showStatusBar|无|显示状态栏,仅在iOS全屏下有效| |showStatusBar|无|显示状态栏,仅在iOS全屏下有效|
|hideStatusBar|无|隐藏状态栏,仅在iOS全屏下有效| |hideStatusBar|无|隐藏状态栏,仅在iOS全屏下有效|
**注意:** **注意:**
- app-nvue 平台 2.2.5(alpha)+ 支持 uni.createVideoContext(videoId, this) - app-nvue 平台 2.2.5+ 支持 uni.createVideoContext(videoId, this)
- app-nvue 平台 2.2.5(alpha)- 需要同时设置组件属性id和ref ``<video id="video1" ref="video1"></video>``,或者直接使用 ref,例如 ``this.$refs.video1`` - app-nvue 平台 2.2.5以下使用本API,需同时设置组件属性id和ref ``<video id="video1" ref="video1"></video>``,或者直接使用 ref,例如 ``this.$refs.video1``
**示例** **示例**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册