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

V2TXLivePlayerObserver

포커스 모드
폰트 크기
마지막 업데이트 시간: 2022-10-20 15:57:08
Overview
Callbacks of Tencent Cloud’s live stream player.
Features
You can use V2TXLivePlayerObserver to receive callbacks of V2TXLivePlayer, including the player status, playback volume, first audio/video frame, statistics, and warning and error messages.

Basic Callback APIs

onError

Callback for error
V2TXLivePlayerListenerType.onError
Parameters
Parameter
Type
Description
code
V2TXLiveCode
Error code
msg
String
Error message
extraInfo
Map
Extra information

onWarning

Callback for warning
V2TXLivePlayerListenerType.onWarning
Parameters
Parameter
Type
Description
code
V2TXLiveCode
Warning code
msg
String
Warning message
extraInfo
Map
Extra information

onConnected

Callback for successfully connecting to the server
V2TXLivePlayerListenerType.onConnected
Parameters
Parameter
Type
Description
extraInfo
Map
Extra information

Video Callback APIs

onVideoPlaying

Callback for video playback
V2TXLivePlayerListenerType.onVideoPlaying
Parameters
Parameter
Type
Description
firstPlay
bool
Whether it is the first playback
extraInfo
Map
Extra information

onVideoLoading

Callback for loading video
V2TXLivePlayerListenerType.onVideoLoading
Parameters
Parameter
Type
Description
extraInfo
Map
Extra information

onVideoResolutionChanged

Callback for change of player resolution
V2TXLivePlayerListenerType.onVideoResolutionChanged
Parameters
Parameter
Type
Description
width
int
Video width
height
int
Video height

onSnapshotComplete

Callback for a screenshot taken
V2TXLivePlayerListenerType.onSnapshotComplete
Parameters
Parameter
Type
Description
image
Uint8List
Screenshot taken

onRenderVideoFrame

Callback for custom video rendering
Note:
You will receive this callback after calling V2TXLivePlayer.enableCustomRendering(pixelFormat:bufferType:) to enable custom video rendering.
V2TXLivePlayerListenerType.onRenderVideoFrame
Parameters
Parameter
Type
Description
videoFrame
Map
Video frames

Audio Callback APIs

onAudioPlaying

Callback for audio playback
V2TXLivePlayerListenerType.onAudioPlaying
Parameters
Parameter
Type
Description
firstPlay
bool
Whether it is the first playback
extraInfo
Map
Extra information

onAudioLoading

Callback for loading audio
V2TXLivePlayerListenerType.onAudioLoading
Parameters
Parameter
Type
Description
extraInfo
Map
Extra information

onPlayoutVolumeUpdate

Callback of the player’s volume
V2TXLivePlayerListenerType.onPlayoutVolumeUpdate
Parameters
Parameter
Type
Description
volume
int
Volume. Value range: 0-100.

Statistics Callback API

onStatisticsUpdate

Callback of the player’s statistics
V2TXLivePlayerListenerType.onStatisticsUpdate
Parameters
Parameter
Type
Description
statistics
Map
Player statistics

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백