# LivePlayerContext wx.createLivePlayerContext(string id, Object this)

基础库 1.7.0 开始支持,低版本需做兼容处理

小程序插件:支持,需要小程序基础库版本不低于 1.9.6

微信 Windows 版:支持

微信 Mac 版:支持

相关文档: live-player 组件

# 功能描述

创建 live-player 上下文 LivePlayerContext 对象。建议使用 wx.createSelectorQuery 获取 context 对象。

# 参数

# string id

live-player 组件的 id

# Object this

在自定义组件下,当前组件实例的this,以操作组件内 live-player 组件

# 返回值

# LivePlayerContext