Skip to main content
Version: 3.x

Taro.createLivePlayerContext(id, component)

Creates the LivePlayerContext object for the live-player.

Reference

Type

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

Parameters

PropertyTypeDescription
idstringThe live-player component's ID
componentRecord<string, any>The this object of the current component instance in custom components. It is used with the live-player component

API Support

APIWeChat Mini-ProgramH5React Native
Taro.createLivePlayerContext✔️