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

Error Codes

포커스 모드
폰트 크기
마지막 업데이트 시간: 2022-10-20 15:57:08

onError

The SDK encountered a severe error (for example, invalid license or API call failure) that makes it impossible for stream publishing to continue.
Note:
Video encoding failure does not affect publishing. The SDK will handle the issue automatically to ensure successful encoding of subsequent frames.
Error Code
Event
Description
0
V2TXLIVE_OK
No error
-1
V2TXLIVE_ERROR_FAILED
A common error not yet classified
-2
V2TXLIVE_ERROR_INVALID_PARAMETER
An invalid parameter was passed to the API.
-3
V2TXLIVE_ERROR_REFUSED
The API call was rejected.
-4
V2TXLIVE_ERROR_NOT_SUPPORTED
The API cannot be called.
-5
V2TXLIVE_ERROR_INVALID_LICENSE
Failed to call the API because the license is invalid. Note: Before calling startLivePlay, you need to call V2TXLivePremier#setLicence to configure the license (you only need to configure 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 playback feature. If you don’t have any of the licenses, you can buy one or apply for a trial license for free.
-6
V2TXLIVE_ERROR_REQUEST_TIMEOUT
The request timed out.
-7
V2TXLIVE_ERROR_SERVER_PROCESS_FAILED
The server denied the request.
-8
V2TXLIVE_ERROR_DISCONNECTED
The SDK was disconnected.
-2304
V2TXLIVE_ERROR_NO_AVAILABLE_HEVC_DECODERS
Could not find an available HEVC decoder. This error code indicates that the current device does not support H.265 decoding. Please switch to H.264 for playback.

onWarning

Most warning events trigger protection or recovery logic that involves retries. In most cases, the problems can be fixed by the SDK itself. However, some warning events still need to be handled manually. Warnings serve the purpose of reminding you or your end users that an error occurred.
Error Code
Event
Description
1101
V2TXLIVE_WARNING_NETWORK_BUSY
Bad network connection: Data upload blocked due to limited upstream bandwidth.
2105
V2TXLIVE_WARNING_VIDEO_BLOCK
Stuttering during video playback.
-1301
V2TXLIVE_WARNING_CAMERA_START_FAILED
Failed to turn the camera on.
-1316
V2TXLIVE_WARNING_CAMERA_OCCUPIED
The camera is occupied. Try a different camera.
-1314
V2TXLIVE_WARNING_CAMERA_NO_PERMISSION
No access to the camera. This usually occurs on mobile devices and may be because the user denied the access.
-1302
V2TXLIVE_WARNING_MICROPHONE_START_FAILED
Failed to turn the mic on.
-1319
V2TXLIVE_WARNING_MICROPHONE_OCCUPIED
The mic is occupied. This occurs when, for example, the user is having a call on the mobile device.
-1317
V2TXLIVE_WARNING_MICROPHONE_NO_PERMISSION
No access to the mic. This usually occurs on mobile devices and may be because the user denied the access.
-1309
V2TXLIVE_WARNING_SCREEN_CAPTURE_NOT_SUPPORTED
The system does not support screen sharing.
-1308
V2TXLIVE_WARNING_SCREEN_CAPTURE_START_FAILED
Failed to start screen recording. If this occurs on a mobile device, it may be because the user denied the access.
-7001
V2TXLIVE_WARNING_SCREEN_CAPTURE_INTERRUPTED
Screen recording was stopped by the system.

도움말 및 지원

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

피드백