V2TXLivePlayer
Video player
For details, please see V2TXLivePlayer.
The player pulls audio/video data from the specified live streaming URL and plays the data after decoding and local rendering.
The player has the following capabilities:
- Playing over protocols including RTMP, HTTP-FLV, TRTC, and WebRTC
- Taking screenshots of streamed video
- Delay adjustment. You can set the minimum and maximum cache time for auto adjustment by the player.
- Custom video processing. You can process live video based on your project requirements before rendering and playback.
Basic SDK APIs
Basic playback APIs
Video APIs
Audio APIs
Other APIs
API |
Description |
setCacheParams |
Sets the minimum and maximum cache time (s) for auto adjustment by the player. |
showDebugView |
Sets whether to show the debug view of player status information. |
V2TXLivePlayerObserver
Player callbacks
Basic SDK callback APIs
API |
Description |
onError |
Callback for error. This callback is returned when the player encounters an error. |
onWarning |
Callback for warning |
onConnected |
Callback for successfully connecting to the server |
Video callback APIs
Audio callback APIs
Statistics callback APIs
V2TXLivePusher
Stream publisher
For details, please see V2TXLivePusher.
V2TXLivePusher
encodes local audio/video and publishes the encoded data to a specified URL. It supports any publishing server.
It has the following capabilities:
- Custom video capturing. You can customize audio/video data sources based on your project requirements.
- Retouching, filters, and stickers.
V2TXLivePusher
integrates multiple retouching algorithms (natural & smooth) and color space filters (custom filters are supported).
- QoS control technology.
V2TXLivePusher
can adapt automatically to different upstream network conditions by controlling audio/video traffic in real time based on the network conditions of hosts.
- Facial feature adjustment and animated widgets. Powered by YouTu’s AI facial recognition technology,
V2TXLivePusher
supports animated widgets and fine-tuning of facial features, such as eye enlarging, face slimming, and nose reshaping. You need to purchase a YouTu license to use these live streaming effects.
Basic SDK APIs
Basic publishing APIs
API |
Description |
setRenderView |
Sets the rendering view for local camera preview. |
setRenderView |
Sets the rendering view for local camera preview. |
setRenderView |
Sets the rendering view for local camera preview. |
startPush |
Starts publishing audio/video data. |
stopPush |
Stops publishing audio/video data. |
isPushing |
Gets whether publishing is ongoing. |
Video APIs
Beauty filter APIs
Audio APIs
Audio effect APIs
Device management APIs
Other APIs
V2TXLivePusherObserver
Basic SDK callback APIs
API |
Description |
onError |
Callback for error. This callback is returned when the publisher encounters an error. |
onWarning |
Callback for warning |
Video callback APIs
Audio callback APIs
Mixtranscoding callback APIs
Statistics callback APIs
Was this page helpful?