- LivePlayerContext
- 方法
- LivePlayerContext.play()
- LivePlayerContext.stop()
- LivePlayerContext.mute()
- LivePlayerContext.pause()
- LivePlayerContext.resume()
- LivePlayerContext.requestFullScreen(Object object)
- LivePlayerContext.exitFullScreen()
- LivePlayerContext.exitPictureInPicture()
- LivePlayerContext.snapshot(Object object)
- LivePlayerContext.requestPictureInPicture()
- 示例代码
- 方法
LivePlayerContext
LivePlayerContext
实例,可通过 wx.createLivePlayerContext 获取。
LivePlayerContext 通过 id
跟一个 live-player 组件绑定,操作对应的 live-player 组件。
方法
LivePlayerContext.play()
播放
LivePlayerContext.stop()
停止
LivePlayerContext.mute()
静音
LivePlayerContext.pause()
暂停
LivePlayerContext.resume()
恢复
LivePlayerContext.requestFullScreen(Object object)
进入全屏
LivePlayerContext.exitFullScreen()
退出全屏
LivePlayerContext.exitPictureInPicture()
退出小窗,该方法可在任意页面调用
LivePlayerContext.snapshot(Object object)
截图
LivePlayerContext.requestPictureInPicture()
进入小窗