codecamp

微信小程序API 实时音视频·创建LivePlayerContext对象

LivePlayerContext wx.createLivePlayerContext(string id, Object this)

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

创建 live-player 上下文 LivePlayerContext 对象。

参数

string id

live-player 组件的 id

Object this

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

返回值

LivePlayerContext


微信小程序API 实时音视频·创建LivePusherContext对象
微信小程序API 实时音视频·LivePlayerContext实例
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定