tencent cloud

Mobile Live Video Broadcasting

Release Notes and Announcements
TUILiveKit Release Notes
Live SDK Release Notes
User Guide
Product Introduction
Overview
Strengths
Performance Statistics
Concepts
Purchase Guide
TRTC Live Billing Overview
Billing of Video Live Component
Activating the Service (TUILiveKit)
Free Demo
Demo
Run Demo(TUILiveKit)
Integration Guide
Video Live Streaming
Preparation
Host Live Streaming
Audience Viewing
Live Stream List Live Stream List
Voice Chat Room
Preparation
Host Live Streaming
Audience Viewing
Live Stream List
Live Streaming Kit
Live Streaming Kit(Electron Desktop Application)
Live Streaming Kit(Web Desktop Browser)
Live Broadcast Monitoring
Monitoring Webpage (Web Desktop Browser React)
Monitoring Webpage (Web Desktop Browser Vue)
UI Customization
Live Stream Video Component
Video Source Editing Canvas
Audience List Component
Barrage Component
Media Source Configuration Panel
Link Management Panel
Live Gift Component
No UI Integration
Video Live Streaming
Voice Chat Room
Feature Guide
Follow Anchors (TUILiveKit)
Ultimate Image Quality (TUILiveKit)
Push Media Stream Into Room (TUILiveKit)
Gift System (TUILiveKit)
Client APIs
Android
iOS
Web
Server APIs (TUILiveKit)
Account System
REST API
Third-Party Webhooks
Error Codes (TUILiveKit)
FAQs
Platform Compilation
User Authentication
Live SDK
Product Introduction
Purchase Guide
Free Demo
Free Trial License
SDK Download
Licenses
Advanced Features
Client API
FAQs
Integration (No UI)
API Documentation
OSS information
OSS Attribution Notice

Overview

フォーカスモード
フォントサイズ
最終更新日: 2022-10-20 15:57:07

V2TXLivePlayer

Video player

For details, 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

API
Description
Sets player callbacks.

Basic playback APIs

API
Description
Sets the player’s rendering view TXCloudVideoView.
Sets the player’s rendering view TextureView.
Sets the player’s rendering view SurfaceView.
Since v10.7, startPlay has been replaced by startLivePlay, and you need to call V2TXLivePremier#setLicence or TXLiveBase#setLicence to set the license to use the live playback feature (you only need to set the license once). Otherwise, playback will fail (black screen). You can use a live stream publishing license, UGSV license, or video playback license to activate the live playback feature. If you don’t have any of the licenses, you can buy one or apply for a trial license for free to use the feature.
Stops playback.
Gets whether playback is ongoing.

Video APIs

API
Description
Sets video rotation.
Sets the fill mode.
Pauses the player’s video.
Resumes the player’s video.
Takes a screenshot of the played video.
Sets the callback for custom video rendering.

Audio APIs

API
Description
Pauses the player’s audio.
Resumes the player’s audio.
Sets the volume.
Enables the volume reminder for playback.

Other APIs

API
Description
Sets the minimum and maximum cache time (seconds) for auto adjustment by the player.
Sets whether to show the debug view of player status information.

V2TXLivePlayerObserver

Player callbacks

Basic SDK callback APIs

API
Description
Callback for error. This callback is returned when the player encounters an error.
Callback for warning
Callback for successfully connecting to the server

Video callback APIs

API
Description
Callback for change of player resolution
Callback for loading video
Callback for video playback
Callback for a screenshot taken
Callback for custom video rendering

Audio callback APIs

API
Description
Callback for loading audio
Callback for audio playback
Callback of the player’s volume

Statistics callback APIs

API
Description
Callback of player statistics

V2TXLivePusher

Stream publisher

For details, 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

API
Description
Sets publisher callbacks.

Basic publishing APIs

API
Description
Sets the rendering view for local camera preview.
Sets the rendering view for local camera preview.
Sets the rendering view for local camera preview.
Starts publishing audio/video data.
Stops publishing audio/video data.
Gets whether publishing is ongoing.

Video APIs

API
Description
Sets video encoding parameters for publishing.
Sets video rotation for local camera preview.
Sets the mirror mode for local camera preview.
Turns the local camera on.
Turns the local camera off.
Starts image publishing.
Stops image publishing.
Starts screen capturing.
Stops screen capturing.
Takes a screenshot of the published video.
Sets watermarks for the publisher. Watermarking is disabled by default.
Sets the mirror mode for encoded video.
Enables/Disables custom video capturing.
Sends the captured video data to the SDK in the custom video capturing mode.
Enables/Disables custom video processing.
Sends an SEI message.

Beauty filter APIs

API
Description
Gets the beauty filter management object TXBeautyManager, which is used to set beauty filters.

Audio APIs

API
Description
Turns the mic on.
Turns the mic off.
Sets the quality of published audio.
Enables the volume reminder for capturing.

Audio effect APIs

API
Description
Gets the audio effect management object.

Device management APIs

API
Description
Gets the device management object.

Other APIs

API
Description
Calls an advanced API of V2TXLivePusher.
Sets On-Cloud MixTranscoding parameters.
Sets whether to display the dashboard.

V2TXLivePusherObserver

Basic SDK callback APIs

API
Description
Callback for error. This callback is returned when the publisher encounters an error.
Callback for warning

Video callback APIs

API
Description
Callback of the publisher’s connection status
Callback for a screenshot taken
Callback for custom video processing
Callback for creating an OpenGL context in the SDK
Callback for destroying the OpenGL context in the SDK
Callback for capturing the first video frame

Audio callback APIs

API
Description
Callback for capturing the first audio frame
Callback of mic capturing volume

Mixtranscoding callback APIs

API
Description
Callback for setting On-Cloud MixTranscoding parameters

Statistics callback APIs

API
Description
Callback of publisher statistics

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック