Skip to main content
Version: 2.x

Taro.createLivePlayerContext(id, component)

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

参考文档

类型

(id: string, component?: Record<string, any>) => LivePlayerContext

参数

参数类型说明
idstringlive-player 组件的 id
componentRecord<string, any>在自定义组件下,当前组件实例的this,以操作组件内 live-player 组件

API 支持度

API微信小程序H5React Native
Taro.createLivePlayerContext✔️