title: Taro.createLivePlayerContext(id, component)
sidebar_label: createLivePlayerContext
Creates the LivePlayerContext object for the live-player.
Type
(id: string, component?: Record<string, any>) => LivePlayerContext
Parameters
| Property | Type | Description |
|---|---|---|
| id | string |
The live-player component’s ID |
| component | Record<string, any> |
The this object of the current component instance in custom components. It is used with the live-player component |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Taro.createLivePlayerContext | ✔️ |
