Announcement: Tencent Cloud Mini Program Platform Renamed to Tencent Cloud Super App as a Service on January 2, 2025
Console Updates
Android SDK Updates
iOS SDK Updates
Flutter SDK Updates
IDE Updates
Base Library Updates
This method is used via LivePusherContext wx.createLivePusherContext().
This method is used via LivePusherContext.start(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.stop(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePlayerContext.pause(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.resume(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.switchCamera(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.snapshot(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Attribute | Type | Description |
tempImagePath | string | Temporary path for image files |
width | string | Width of the image |
height | string | height of the image |
This method is used via LivePusherContext.toggleTorch(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.playBGM(Object object).
Attribute | Type | Default value | Required | Description |
url | String | - | Yes | Resource address for adding background mix. |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.stopBGM(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.pauseBGM(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.resumeBGM(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.setBGMPosition(Object object).
Attribute | Type | Default value | Required | Description |
position | Number | - | Yes | Background sound progress, measured in seconds. |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.setMICVolume(Object object).
Attribute | Type | Default value | Required | Description |
volume | String | - | Yes | Volume level, ranging from 0 to 1. |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.setBGMVolume(Object object).
Attribute | Type | Default value | Required | Description |
volume | String | - | Yes | Volume level, ranging from 0 to 1. |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.setAudioReverbType(Object object).
Attribute | Type | Default value | Required | Description |
audioReverbType | Number | - | Yes | Mix type, 0 to 6 correspond to "Reverb off", "KTV", "Small room", "Large hall", "Deep", "Resonant", "Magnetic", respectively. |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.startPreview(Object object).
Attribute | Type | Default value | Required | Description |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.stopPreview(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.startAudioRecord(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePusherContext.stopAudioRecord(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Attribute | Type | Description |
tempFilePath | String | Temporary path of audio recording file (local path) |
This API is used via LivePlayerContext wx.createLivePlayerContext(string id, Object this).
This method is used via LivePlayerContext.exitFullScreen(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePlayerContext.mute(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePlayerContext.pause(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePlayerContext.play(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePlayerContext.requestFullScreen(Object object).
Attribute | Type | Default value | Required | Description |
direction | Number | 0 | No | Set the direction during full screen. |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Value | Description |
0 | Normal vertical orientation |
90 | Screen rotating 90 degrees counterclockwise |
-90 | Screen rotating 90 degrees clockwise |
This method is used via LivePlayerContext.resume(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
This method is used via LivePlayerContext.snapshot(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Attribute | Type | Description |
tempImagePath | String | Temporary path of the image file |
width | String | Image width |
height | String | Image height |
This method is used via LivePlayerContext.stop(Object object).
Attribute | Type | Default value | Required | Description |
success | Function | - | No | Callback Function of Successful Interface Call |
fail | Function | - | No | Callback Function of Failing Interface Call |
complete | Function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback