TUILiveKit Release Notes
Live SDK Release Notes
FuncList | DESC |
Sets the player callback | |
Sets the rendering view of the player. This control is responsible for presenting the video content | |
Sets the rendering view of the player. This control is responsible for presenting the video content | |
Sets the rendering view of the player. This control is responsible for presenting the video content | |
Sets the rotation angle of the player view | |
Sets the fill mode of the view | |
Sets the mirror mode of the player view | |
Starts playing the audio and video streams | |
Stops playing the audio and video streams | |
Indicates whether the player is playing the audio and video streams | |
Pauses the audio stream of the player | |
Resumes the audio stream of the player | |
Pauses the video stream of the player | |
Resumes the video stream of the player | |
Sets the volume | |
Set the minimum time and maximum time (unit: s) for auto adjustment of the player cache | |
Seamlessly switch live stream urls, supporting FLV and LEB protocols | |
Get Stream lnfo List | |
Enables playback volume update | |
Captures the video view in the playback process | |
Turn on/off the monitoring callback of the video frame | |
Turn on/off the monitoring callback of the audio frame | |
Enables the receiving of SEI messages | |
Indicates whether the debug view of the player video status information is displayed | |
Calls the advanced API of V2TXLivePlayer | |
Start recording audio and video stream | |
Stop recording audio and video stream |
void setObserver |
Param | DESC |
observer |
int setRenderView | (TXCloudVideoView view) |
Param | DESC |
view | Player rendering view. |
int setRenderView | (TextureView view) |
Param | DESC |
view | Player rendering view. |
int setRenderView | (SurfaceView view) |
Param | DESC |
view | Player rendering view. |
int setRenderRotation |
Param | DESC |
rotation | V2TXLiveRotation0 Default: 0 degrees, which means the view is not rotated. V2TXLiveRotation90: rotate 90 degrees clockwise. V2TXLiveRotation180: rotate 180 degrees clockwise. V2TXLiveRotation270: rotate 270 degrees clockwise. |
int setRenderFillMode |
Param | DESC |
mode | V2TXLiveFillModeFill: Default: fill the screen with the image without leaving any black edges. If the aspect ratio of the view is different from that of the screen, part of the view will be cropped. V2TXLiveFillModeFit make the view fit the screen without cropping. If the aspect ratio of the view is different from that of the screen, black edges will appear. V2TXLiveFillModeScaleFill fill the screen with the stretched image, thus the length and width may not change proportionally. |
int setRenderMirrorMode | (boolean enable) |
Param | DESC |
enable | Whether to enable the mirror mode of the player view. Default: false. |
int startLivePlay | (String url) |
Param | DESC |
url | URL of the audio and video streams to be played. The RTMP, HTTP-FLV and TRTC streaming protocols are supported. |
int setPlayoutVolume | (int volume) |
Param | DESC |
volume | Volume. Valid range: 0 - 100. Default: 100. |
int setCacheParams | (float minTime |
| float maxTime) |
Param | DESC |
maxTime | Maximum time for auto cache adjustment. The value must be greater than 0. Default: 5. |
minTime | Minimum time for auto cache adjustment. The value must be greater than 0. Default: 1. |
int switchStream | (String newUrl) |
Param | DESC |
newUrl | New pull address. |
int enableVolumeEvaluation | (int intervalMs) |
Param | DESC |
intervalMs | Interval for triggering the volume callback. The unit is ms. The minimum interval is 100 ms. If the value is equal to or smaller than 0, the callback is disabled. We recommend that you set this parameter to 300 ms. Default: 0. |
int enableObserveVideoFrame | (boolean enable |
| |
|
Param | DESC |
bufferType | |
enable | Whether to enable custom rendering. Default: false. |
pixelFormat |
int enableObserveAudioFrame | (boolean enable) |
Param | DESC |
enable | Whether to enable the callback of the audio frame. Default: false. |
int enableReceiveSeiMessage | (boolean enable |
| int payloadType) |
Param | DESC |
enable | true : enable; false (default): disable. |
payloadType | The payload type of SEI messages. Valid values: 5 , 242 , 243 , please be consistent with the payload type of the sender. |
void showDebugView | (boolean isShow) |
Param | DESC |
isShow | Specifies whether to display the debug view. Default: false. |
int setProperty | (String key |
| Object value) |
Param | DESC |
key | Key of the advanced API. |
value | Parameter needed to call the advanced API corresponding to the key. |
int startLocalRecording |
V2TXLIVE_OK : successful. V2TXLIVE_ERROR_INVALID_PARAMETER : The parameter is invalid, such as filePath is empty. V2TXLIVE_ERROR_REFUSED : API refuse, you must first call startLivePlay to start playing streaming.Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários