May 18, 2021 WeChat Mini Program Development Document
LivePlayerContext instance, available at wx.createLivePlayerContext.
LivePlayerContext binds to a live-player component via id, which operates the corresponding live-player component.
Exit full screen
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Exit the window, which can be called on any page
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Mute
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base library 1.9.90 starts to support, and low versions need to be compatible.
Time out
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Play
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Go to full screen
Property | Type | The default | Required | Description |
---|---|---|---|---|
direction | number | 0 | Whether | Set the orientation when the full screen is set |
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
The legal value of object.direction
Value | Description | The lowest version |
---|---|---|
0 | Normal vertical | |
90 | The screen is 90 degrees counterclockwise | |
-90 | The screen is clockwise 90 degrees |
Base library 1.9.90 starts to support, and low versions need to be compatible.
Recovery
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Base Library 2.7.1 starts to support, and low versions need to be compatible.
Screenshots
Base library 2.10.0 starts to support, and low versions need to be compatible.
The quality of the picture, the default original image. The valid values are raw and compressed
Stop it
Property | Type | The default | Required | Description |
---|---|---|---|---|
success | function | Whether | The interface calls a successful callback function | |
fail | function | Whether | The interface calls the failed callback function | |
complete | function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |