@tencent-rtc/mcp 1.2.8 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resource/doc/chatuikit/faq/common/server.md +44 -0
- package/resource/doc/chatuikit/faq/web_sdk/faq.md +57 -0
- package/resource/doc/livekit/vue/components/co-guest-panel.md +3 -3
- package/resource/doc/livekit/vue/components/live-view.md +4 -4
- package/resource/doc/livekit/vue/{components/live-list.md → live-list-integration.md} +7 -7
- package/resource/doc/livekit/vue/{components/live-player.md → live-player-desk-integration.md} +8 -8
- package/resource/doc/livekit/vue/live-player-h5-integration.md +269 -0
- package/resource/doc/livekit/vue/workflow.md +218 -0
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +312 -0
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +430 -0
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +679 -0
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +671 -0
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +271 -0
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +849 -0
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +1046 -0
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +460 -0
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +558 -0
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +865 -0
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +657 -0
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +437 -0
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +335 -0
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +748 -0
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +327 -0
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +507 -0
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +507 -0
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +659 -0
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +284 -0
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +814 -0
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +1000 -0
- package/resource/doc/trtc/C++/ITRTCCloud.md +4119 -0
- package/resource/doc/trtc/C++/ITRTCStatistics.md +325 -0
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +1289 -0
- package/resource/doc/trtc/C++/ITXDeviceManager.md +1028 -0
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +2650 -0
- package/resource/doc/trtc/C++/TRTCTypeDef.md +3600 -0
- package/resource/doc/trtc/C++/TXLiteAVCode.md +921 -0
- package/resource/doc/trtc/android/TRTCCloud.md +3782 -0
- package/resource/doc/trtc/android/TRTCCloudDef.md +3880 -0
- package/resource/doc/trtc/android/TRTCCloudListener.md +2431 -0
- package/resource/doc/trtc/android/TRTCStatistics.md +295 -0
- package/resource/doc/trtc/android/TXAudioEffectManager.md +1289 -0
- package/resource/doc/trtc/android/TXBeautyManager.md +979 -0
- package/resource/doc/trtc/android/TXDeviceManager.md +440 -0
- package/resource/doc/trtc/android/TXLiteAVCode.md +905 -0
- package/resource/doc/trtc/iOS/TRTCCloud.md +4238 -0
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +3730 -0
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +2531 -0
- package/resource/doc/trtc/iOS/TRTCStatistics.md +295 -0
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +1100 -0
- package/resource/doc/trtc/iOS/TXBeautyManager.md +985 -0
- package/resource/doc/trtc/iOS/TXDeviceManager.md +1024 -0
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +928 -0
- package/tools/definitions/get_faq_def.js +4 -0
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_live_api_def.js +23 -0
- package/tools/definitions/get_native_live_api_def.js.map +1 -0
- package/tools/definitions/get_trtc_native_api_def.js +16 -0
- package/tools/definitions/get_trtc_native_api_def.js.map +1 -0
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +13 -8
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +32 -0
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -0
- package/tools/index.js +8 -0
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-uikit-integration.js +52 -0
- package/tools/live/get-web-live-uikit-integration.js.map +1 -0
- package/tools/native_live/get-native-live-api.js +31 -0
- package/tools/native_live/get-native-live-api.js.map +1 -0
- package/tools/trtc/get-trtc-native-api.js +31 -0
- package/tools/trtc/get-trtc-native-api.js.map +1 -0
- package/utils/generate-structured-result.js +34 -0
- package/utils/generate-structured-result.js.map +1 -0
- package/utils/handle-component-name.js +0 -8
- package/utils/handle-component-name.js.map +1 -1
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- /package/resource/doc/livekit/vue/{components/broadcast.md → live-pusher-integration.md} +0 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# Web Live TUIKit Code Generation Workflow Instructions (Vue)
|
|
2
|
+
|
|
3
|
+
**【Instruction Purpose】**: Provide Agent with a **code generation blueprint** for implementing Vue Web Live TUIKit core functionalities, and guide Agent to **prioritize using the latest documentation content fetched in real-time via tools**.
|
|
4
|
+
|
|
5
|
+
**💡 Special Reminder:**
|
|
6
|
+
1. **When user requirements include 【Live List】, 【Broadcaster Page】, and 【Viewer Page】, Agent MUST add a 【Host/Viewer Identity Selection】 page or logic in the generated code to allow users to test with different UserIDs**.
|
|
7
|
+
2. **When users need to implement co-guest (mic connection) features, call** `get_web_live_state_detail` **to obtain liveKit client API for implementing related functions**.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 📦 UIKit Version & Dependency Instructions
|
|
12
|
+
|
|
13
|
+
### Recommended Versions
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"tuikit-atomicx-vue3": "latest",
|
|
17
|
+
"@tencentcloud/uikit-base-component-vue3": "latest",
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Automatic Dependency Installation Workflow
|
|
22
|
+
After generating code, Agent **MUST automatically execute** the following steps:
|
|
23
|
+
|
|
24
|
+
1. **Detect Dependency Completeness**: Check if `package.json` contains all required dependencies
|
|
25
|
+
2. **Auto-install Dependencies**: Execute `npm install` or `pnpm install`
|
|
26
|
+
3. **Verify Installation**: Confirm successful installation before prompting user to run the project
|
|
27
|
+
|
|
28
|
+
### esbuild Issue Resolution
|
|
29
|
+
Add the following content to `package.json`. `resolutions` is compatible with `yarn`, `overrides` is compatible with `npm` and `pnpm`:
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"resolutions": {
|
|
33
|
+
"esbuild": "npm:esbuild-wasm@latest"
|
|
34
|
+
},
|
|
35
|
+
"overrides": {
|
|
36
|
+
"esbuild": "npm:esbuild-wasm@latest"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 🔐 Automatic Test Credential Generation
|
|
44
|
+
|
|
45
|
+
### UserSig Auto-fetch Workflow
|
|
46
|
+
|
|
47
|
+
Before generating code, Agent **MUST**:
|
|
48
|
+
|
|
49
|
+
1. **Call `get_usersig` MCP tool** to automatically generate test account credentials
|
|
50
|
+
2. **Generate Test UserIDs**:
|
|
51
|
+
- Broadcaster UserID: Format as live001 or host001
|
|
52
|
+
- Viewer UserID: Format as user001 or viewer001
|
|
53
|
+
3. **Embed in Code**: Directly write the generated SDKAppID, userID (for both host and viewer), and userSig into the code's configuration section
|
|
54
|
+
4. **Security Notice**: Clearly mark in code comments that these are test credentials; production environment MUST generate on backend
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## ⚙️ Core Code Generation Workflow (LLM Action Guide)
|
|
59
|
+
|
|
60
|
+
Agent, this tool has **fetched in real-time** the latest documentation content corresponding to the user's required functionalities (Goals), and attached this content **below this instruction** (in the `llm_code_generation_instructions_md` field).
|
|
61
|
+
|
|
62
|
+
### Strictly Execute Steps:
|
|
63
|
+
|
|
64
|
+
#### Step 0: Pre-preparation (Automated)
|
|
65
|
+
```
|
|
66
|
+
a. Call get_usersig tool to generate test credentials
|
|
67
|
+
- Broadcaster userID: Use format `live001`
|
|
68
|
+
- Viewer userID: Use format `user001`
|
|
69
|
+
|
|
70
|
+
b. Check and prepare project environment
|
|
71
|
+
- Verify dependency versions in package.json
|
|
72
|
+
- Automatically add to dependencies if missing
|
|
73
|
+
|
|
74
|
+
c. Execute dependency installation
|
|
75
|
+
- Run npm install or pnpm install
|
|
76
|
+
- Wait for completion and check for errors
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
#### Step 1: Select Functional Modules
|
|
80
|
+
Based on user's specific functional requirements, select corresponding instructions from the following function blocks.
|
|
81
|
+
|
|
82
|
+
#### Step 2: Use Real-time Documentation
|
|
83
|
+
**MUST prioritize and exclusively** use the real-time documentation content **provided in this tool's return results** (not external URLs) to generate Vue code snippets.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 🎯 Feature Implementation Instructions
|
|
88
|
+
|
|
89
|
+
### 1. Implement Live List Page (`liveList`)
|
|
90
|
+
|
|
91
|
+
**Target Component**: `liveList`
|
|
92
|
+
|
|
93
|
+
**Code Generation Instructions**:
|
|
94
|
+
- Generate Vue component structure, import `liveList`
|
|
95
|
+
- **Auto-inject Test Credentials**: Use auto-generated **viewer** `SDKAppID`, `userID`, `userSig` during component initialization
|
|
96
|
+
- **Core Logic**: Reference real-time documentation content in this tool's return results, extract latest API calls and example code
|
|
97
|
+
|
|
98
|
+
**Dependent Components**: `liveList`
|
|
99
|
+
|
|
100
|
+
**Post-generation Actions**:
|
|
101
|
+
```bash
|
|
102
|
+
# Agent auto-executes
|
|
103
|
+
npm install # Install dependencies
|
|
104
|
+
npm run dev # Start dev server
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
### 2. Implement PC Live Viewer Page (`livePlayer` & `barrage`)
|
|
110
|
+
|
|
111
|
+
**Target Components**: `livePlayer`, `barrage`
|
|
112
|
+
|
|
113
|
+
**Code Generation Instructions**:
|
|
114
|
+
- Generate viewer page based on real-time documentation examples
|
|
115
|
+
- **Auto-inject Test Credentials**: Configure **viewer** test account during player initialization
|
|
116
|
+
- **Core Logic**: Reference real-time documentation content in this tool's return results, MUST follow documentation steps to integrate `livePlayer` and `barrage` (bullet comments), and demonstrate how to monitor video stream status
|
|
117
|
+
- **Interaction Optimization**: Add loading states, error handling, reconnection mechanisms
|
|
118
|
+
|
|
119
|
+
**Dependent Components**: `livePlayer`, `barrage`
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### 3. Implement H5 Live Viewer Page (`livePlayer` & `barrage`)
|
|
124
|
+
|
|
125
|
+
**Target Components**: `livePlayer`, `barrage`
|
|
126
|
+
|
|
127
|
+
**Code Generation Instructions**:
|
|
128
|
+
- Generate viewer page based on real-time documentation examples
|
|
129
|
+
- **Auto-inject Test Credentials**: Configure **viewer** test account during player initialization
|
|
130
|
+
- **Core Logic**: Reference real-time documentation content in this tool's return results, MUST follow documentation steps to integrate `livePlayer` and `barrage` (bullet comments), and demonstrate how to monitor video stream status
|
|
131
|
+
- **Interaction Optimization**: Add loading states, error handling, reconnection mechanisms
|
|
132
|
+
|
|
133
|
+
**Dependent Components**: `livePlayer`, `barrage`
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### 4. Implement Live Broadcasting Page (`livePusher`)
|
|
138
|
+
|
|
139
|
+
**Target Component**: `livePusher`
|
|
140
|
+
|
|
141
|
+
**Code Generation Instructions**:
|
|
142
|
+
- Generate broadcasting page based on real-time documentation examples
|
|
143
|
+
- **Auto-inject Test Credentials**: Configure **broadcaster** test account during pusher initialization
|
|
144
|
+
- **Core Logic**: Reference real-time documentation content in this tool's return results, MUST include Vue logic to handle camera and microphone **permission requests and toggle controls**
|
|
145
|
+
- **Device Detection**: Auto-detect available camera and microphone devices
|
|
146
|
+
- **Error Handling**: Handle permission denial, device unavailability, and other exceptions
|
|
147
|
+
|
|
148
|
+
**Dependent Components**: `livePusher`
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### 5. Implement Live Co-guest Feature (`CoGuestPanel`)
|
|
153
|
+
|
|
154
|
+
**Target Component**: `CoGuestPanel`
|
|
155
|
+
|
|
156
|
+
**Code Generation Instructions**:
|
|
157
|
+
- Generate complex components or logic modules for co-guest functionality based on real-time documentation examples
|
|
158
|
+
- **Auto-inject Test Credentials**: Configure test accounts separately for broadcaster and co-guest viewers
|
|
159
|
+
- **Core Logic**: Reference real-time documentation content in this tool's return results, code should demonstrate how to use `CoGuestPanel` to manage co-guest requests and coordinate pusher/player logic switching
|
|
160
|
+
- **State Management**: Handle state transitions for co-guest invitations, acceptance, rejection, disconnection, etc.
|
|
161
|
+
- **Multi-person Co-guest**: Support scenarios with multiple simultaneous co-guests
|
|
162
|
+
|
|
163
|
+
**Dependent Components**: `CoGuestPanel`, `livePusher`, `livePlayer`
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 🔄 Complete Automation Workflow Summary
|
|
168
|
+
|
|
169
|
+
```mermaid
|
|
170
|
+
graph TD
|
|
171
|
+
A[Receive User Requirements] --> B[Call get_web_live_uikit_integration to Fetch Latest Docs]
|
|
172
|
+
B --> C[Check package.json Dependencies]
|
|
173
|
+
C --> D[Auto-add Missing Dependencies]
|
|
174
|
+
D --> E[Execute npm install]
|
|
175
|
+
E --> F[Generate Code Based on Real-time Docs]
|
|
176
|
+
F --> G[Call get_usersig to Generate Test Credentials]
|
|
177
|
+
G --> H[Inject Test Credentials into Code]
|
|
178
|
+
H --> I[Add Security Comments and Warnings]
|
|
179
|
+
I --> J[Start Dev Server]
|
|
180
|
+
J --> K[Output Test Info to User]
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## 📋 Agent Checklist
|
|
186
|
+
|
|
187
|
+
After completing code generation, Agent MUST confirm:
|
|
188
|
+
|
|
189
|
+
- [x] Called `get_usersig` to generate test credentials
|
|
190
|
+
- [x] Embedded credentials into code configuration section
|
|
191
|
+
- [x] Added security warning comments in code
|
|
192
|
+
- [x] Checked `package.json` dependency completeness
|
|
193
|
+
- [x] Auto-executed `npm install`
|
|
194
|
+
- [x] Verified successful dependency installation
|
|
195
|
+
- [x] Used real-time documentation content (not external URLs)
|
|
196
|
+
- [x] Added error handling and logging output
|
|
197
|
+
- [x] Provided test account information to user
|
|
198
|
+
- [x] Prompted user to run `npm run dev`
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## 🚨 Security Warning (MUST be included in generated code comments)
|
|
203
|
+
|
|
204
|
+
```javascript
|
|
205
|
+
/**
|
|
206
|
+
* ⚠️ Important Security Notice
|
|
207
|
+
*
|
|
208
|
+
* 1. The current userSig is a test credential auto-generated by development tools
|
|
209
|
+
* 2. userSig validity period is 7 days, regeneration required after expiration
|
|
210
|
+
* 3. ❌ Frontend generation of userSig is STRICTLY PROHIBITED in production
|
|
211
|
+
* 4. ✅ Before going live, userSig MUST be generated on backend services
|
|
212
|
+
* 5. Reference documentation: https://trtc.io/document/34385
|
|
213
|
+
*
|
|
214
|
+
* SDKAppID and secretKey retrieval locations:
|
|
215
|
+
* - Chat Application: https://console.trtc.io
|
|
216
|
+
* - TRTC Application: https://console.trtc.io
|
|
217
|
+
*/
|
|
218
|
+
```
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# Tencent Cloud Live Streaming SDK V2TXLiveCode Error Code Documentation
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
`V2TXLiveCode.java` defines the error and warning codes for the Tencent Cloud Live Streaming (CSS) SDK on Android. This file categorizes error codes and provides detailed descriptions for features such as host (push), player (playback), stream mixing, and recording.
|
|
6
|
+
|
|
7
|
+
**File Path**: `com/tencent/live2/V2TXLiveCode.java`
|
|
8
|
+
**Platform Support**: Android
|
|
9
|
+
**Total Error Codes**: 20 core error and warning codes
|
|
10
|
+
|
|
11
|
+
## 📋 Table of Contents
|
|
12
|
+
|
|
13
|
+
### 1. [Error Code Categories](#错误码分类)
|
|
14
|
+
### 2. [General Error Codes](#通用错误码)
|
|
15
|
+
### 3. [Network-Related Warning Codes](#网络相关警告码)
|
|
16
|
+
### 4. [Camera-Related Warning Codes](#摄像头相关警告码)
|
|
17
|
+
### 5. [Microphone-Related Warning Codes](#麦克风相关警告码)
|
|
18
|
+
### 6. [Screen Sharing Warning Codes](#屏幕分享相关警告码)
|
|
19
|
+
### 7. [Codec Warning Codes](#编解码相关警告码)
|
|
20
|
+
### 8. [Error Code Usage Guide](#错误码使用指南)
|
|
21
|
+
### 9. [Error Handling Best Practices](#错误处理最佳实践)
|
|
22
|
+
|
|
23
|
+
## 1. Error Code Categories
|
|
24
|
+
|
|
25
|
+
### 🎯 Error Code Breakdown
|
|
26
|
+
|
|
27
|
+
| Category | Number of Codes | Main Functionality |
|
|
28
|
+
|----------------------------------|----------------|-------------------------------------------|
|
|
29
|
+
| General Error Codes | 9 | API calls, parameter validation, permission checks |
|
|
30
|
+
| Network-Related Warning Codes | 2 | Network status, video stutter monitoring |
|
|
31
|
+
| Camera-Related Warning Codes | 3 | Camera device status monitoring |
|
|
32
|
+
| Microphone-Related Warning Codes | 3 | Microphone device status monitoring |
|
|
33
|
+
| Screen Sharing Warning Codes | 3 | Screen sharing status monitoring |
|
|
34
|
+
| Codec Warning Codes | 2 | Audio/video codec status monitoring |
|
|
35
|
+
|
|
36
|
+
### 🔧 Technical Highlights
|
|
37
|
+
|
|
38
|
+
- **Hierarchical Categorization**: Error codes are organized by functional module.
|
|
39
|
+
- **Detailed Descriptions**: Each error code includes a clear explanation and usage scenario.
|
|
40
|
+
- **Platform-Specific**: Android-only error codes.
|
|
41
|
+
- **Debug-Friendly**: Comprehensive explanations and handling recommendations for each error code.
|
|
42
|
+
|
|
43
|
+
## 2. General Error Codes
|
|
44
|
+
|
|
45
|
+
### ✅ V2TXLIVE_OK - Operation Successful
|
|
46
|
+
|
|
47
|
+
```java
|
|
48
|
+
public static final int V2TXLIVE_OK = 0;
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Description**: Operation completed successfully; no error occurred.
|
|
52
|
+
|
|
53
|
+
**Typical Use Cases**:
|
|
54
|
+
- API call succeeded
|
|
55
|
+
- Operation executed and confirmed
|
|
56
|
+
- Status check returned normal
|
|
57
|
+
|
|
58
|
+
### ❌ V2TXLIVE_ERROR_FAILED - General Error
|
|
59
|
+
|
|
60
|
+
```java
|
|
61
|
+
public static final int V2TXLIVE_ERROR_FAILED = -1;
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Description**: Unclassified general error.
|
|
65
|
+
|
|
66
|
+
**Possible Causes**:
|
|
67
|
+
- Internal processing exception
|
|
68
|
+
|
|
69
|
+
### ❌ V2TXLIVE_ERROR_INVALID_PARAMETER - Invalid Parameter
|
|
70
|
+
|
|
71
|
+
```java
|
|
72
|
+
public static final int V2TXLIVE_ERROR_INVALID_PARAMETER = -2;
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Description**: Invalid parameters were provided in the API call.
|
|
76
|
+
|
|
77
|
+
**Common Scenarios**:
|
|
78
|
+
- Incorrect stream push URL format
|
|
79
|
+
- Unsupported parameter value
|
|
80
|
+
|
|
81
|
+
### ❌ V2TXLIVE_ERROR_REFUSED - API Call Refused
|
|
82
|
+
|
|
83
|
+
```java
|
|
84
|
+
public static final int V2TXLIVE_ERROR_REFUSED = -3;
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Description**: API call was refused.
|
|
88
|
+
|
|
89
|
+
**Possible Causes**:
|
|
90
|
+
- Incorrect call timing
|
|
91
|
+
|
|
92
|
+
### ❌ V2TXLIVE_ERROR_NOT_SUPPORTED - API Not Supported
|
|
93
|
+
|
|
94
|
+
```java
|
|
95
|
+
public static final int V2TXLIVE_ERROR_NOT_SUPPORTED = -4;
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Description**: This API is not supported.
|
|
99
|
+
|
|
100
|
+
**Common Scenarios**:
|
|
101
|
+
- Feature not supported on the current platform
|
|
102
|
+
- SDK version is too low
|
|
103
|
+
- Hardware does not support the feature
|
|
104
|
+
|
|
105
|
+
### ❌ V2TXLIVE_ERROR_INVALID_LICENSE - Invalid License
|
|
106
|
+
|
|
107
|
+
```java
|
|
108
|
+
public static final int V2TXLIVE_ERROR_INVALID_LICENSE = -5;
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Description**: License is invalid; the call failed.
|
|
112
|
+
|
|
113
|
+
**Possible Causes**:
|
|
114
|
+
- License file not set
|
|
115
|
+
- License expired
|
|
116
|
+
- License does not match the package name
|
|
117
|
+
|
|
118
|
+
### ❌ V2TXLIVE_ERROR_REQUEST_TIMEOUT - Request Timeout
|
|
119
|
+
|
|
120
|
+
```java
|
|
121
|
+
public static final int V2TXLIVE_ERROR_REQUEST_TIMEOUT = -6;
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Description**: Request to the server timed out.
|
|
125
|
+
|
|
126
|
+
**Common Scenarios**:
|
|
127
|
+
- Unstable network connection
|
|
128
|
+
- Slow server response
|
|
129
|
+
|
|
130
|
+
### ❌ V2TXLIVE_ERROR_SERVER_PROCESS_FAILED - Server Processing Failed
|
|
131
|
+
|
|
132
|
+
```java
|
|
133
|
+
public static final int V2TXLIVE_ERROR_SERVER_PROCESS_FAILED = -7;
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Description**: The server was unable to process your request.
|
|
137
|
+
|
|
138
|
+
**Possible Causes**:
|
|
139
|
+
- Internal server error
|
|
140
|
+
- Incorrect request format
|
|
141
|
+
- Insufficient server resources
|
|
142
|
+
|
|
143
|
+
### ❌ V2TXLIVE_ERROR_DISCONNECTED - Disconnected
|
|
144
|
+
|
|
145
|
+
```java
|
|
146
|
+
public static final int V2TXLIVE_ERROR_DISCONNECTED = -8;
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Description**: Network connection was lost.
|
|
150
|
+
|
|
151
|
+
**Common Scenarios**:
|
|
152
|
+
- Push stream network disconnected
|
|
153
|
+
- Playback network disconnected
|
|
154
|
+
|
|
155
|
+
### ❌ V2TXLIVE_ERROR_NO_AVAILABLE_HEVC_DECODERS - No Available HEVC Decoders
|
|
156
|
+
|
|
157
|
+
```java
|
|
158
|
+
public static final int V2TXLIVE_ERROR_NO_AVAILABLE_HEVC_DECODERS = -2304;
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Description**: No available HEVC decoders found.
|
|
162
|
+
|
|
163
|
+
**Possible Causes**:
|
|
164
|
+
- Device does not support HEVC Hardware Decoding
|
|
165
|
+
- HEVC decoder initialization failed
|
|
166
|
+
- System version is too low
|
|
167
|
+
|
|
168
|
+
## 3. Network-Related Warning Codes
|
|
169
|
+
|
|
170
|
+
### ⚠️ V2TXLIVE_WARNING_NETWORK_BUSY - Network Busy
|
|
171
|
+
|
|
172
|
+
```java
|
|
173
|
+
public static final int V2TXLIVE_WARNING_NETWORK_BUSY = 1101;
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Description**: Poor network conditions detected; insufficient upstream bandwidth is causing data upload to be blocked.
|
|
177
|
+
|
|
178
|
+
**Monitoring Indicators**:
|
|
179
|
+
- Upstream bandwidth limitations
|
|
180
|
+
- Increased network latency
|
|
181
|
+
- High packet loss rate
|
|
182
|
+
|
|
183
|
+
### ⚠️ V2TXLIVE_WARNING_VIDEO_BLOCK - Video Stutter
|
|
184
|
+
|
|
185
|
+
```java
|
|
186
|
+
public static final int V2TXLIVE_WARNING_VIDEO_BLOCK = 2105;
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Description**: Video playback is experiencing stutter.
|
|
190
|
+
|
|
191
|
+
**Possible Causes**:
|
|
192
|
+
- Insufficient network bandwidth
|
|
193
|
+
- Decoding performance bottleneck
|
|
194
|
+
- Rendering performance issues
|
|
195
|
+
|
|
196
|
+
## 4. Camera-Related Warning Codes
|
|
197
|
+
|
|
198
|
+
### ⚠️ V2TXLIVE_WARNING_CAMERA_START_FAILED - Camera Start Failed
|
|
199
|
+
|
|
200
|
+
```java
|
|
201
|
+
public static final int V2TXLIVE_WARNING_CAMERA_START_FAILED = -1301;
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Description**: Failed to start the camera.
|
|
205
|
+
|
|
206
|
+
**Possible Causes**:
|
|
207
|
+
- Hardware malfunction
|
|
208
|
+
- Driver issues
|
|
209
|
+
- Resource conflicts
|
|
210
|
+
|
|
211
|
+
### ⚠️ V2TXLIVE_WARNING_CAMERA_OCCUPIED - Camera Occupied
|
|
212
|
+
|
|
213
|
+
```java
|
|
214
|
+
public static final int V2TXLIVE_WARNING_CAMERA_OCCUPIED = -1316;
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
**Description**: Camera is currently in use.
|
|
218
|
+
|
|
219
|
+
**Possible Scenarios**:
|
|
220
|
+
- Another app is using the camera
|
|
221
|
+
- System camera app is running
|
|
222
|
+
- Video call is in progress
|
|
223
|
+
|
|
224
|
+
### ⚠️ V2TXLIVE_WARNING_CAMERA_NO_PERMISSION - Camera Not Authorized
|
|
225
|
+
|
|
226
|
+
```java
|
|
227
|
+
public static final int V2TXLIVE_WARNING_CAMERA_NO_PERMISSION = -1314;
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**Description**: Camera access not authorized. This typically occurs on mobile devices when the user denies permission.
|
|
231
|
+
|
|
232
|
+
## 5. Microphone-Related Warning Codes
|
|
233
|
+
|
|
234
|
+
### ⚠️ V2TXLIVE_WARNING_MICROPHONE_START_FAILED - Microphone Start Failed
|
|
235
|
+
|
|
236
|
+
```java
|
|
237
|
+
public static final int V2TXLIVE_WARNING_MICROPHONE_START_FAILED = -1302;
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Description**: Failed to start the microphone.
|
|
241
|
+
|
|
242
|
+
**Possible Causes**:
|
|
243
|
+
- Hardware connection issues
|
|
244
|
+
- Abnormal system audio settings
|
|
245
|
+
- Audio session initialization failed
|
|
246
|
+
|
|
247
|
+
### ⚠️ V2TXLIVE_WARNING_MICROPHONE_OCCUPIED - Microphone Occupied
|
|
248
|
+
|
|
249
|
+
```java
|
|
250
|
+
public static final int V2TXLIVE_WARNING_MICROPHONE_OCCUPIED = -1319;
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Description**: Microphone is currently in use. For example, opening the microphone will fail if the device is in a call.
|
|
254
|
+
|
|
255
|
+
**Possible Scenarios**:
|
|
256
|
+
- Device is in a call
|
|
257
|
+
- Another audio app is using the microphone
|
|
258
|
+
- Audio session conflict
|
|
259
|
+
|
|
260
|
+
### ⚠️ V2TXLIVE_WARNING_MICROPHONE_NO_PERMISSION - Microphone Not Authorized
|
|
261
|
+
|
|
262
|
+
```java
|
|
263
|
+
public static final int V2TXLIVE_WARNING_MICROPHONE_NO_PERMISSION = -1317;
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**Description**: Microphone access not authorized. This typically occurs on mobile devices when the user denies permission.
|
|
267
|
+
|
|
268
|
+
## 6. Screen Sharing Warning Codes
|
|
269
|
+
|
|
270
|
+
### ⚠️ V2TXLIVE_WARNING_SCREEN_CAPTURE_NOT_SUPPORTED - Screen Sharing Not Supported by System
|
|
271
|
+
|
|
272
|
+
```java
|
|
273
|
+
public static final int V2TXLIVE_WARNING_SCREEN_CAPTURE_NOT_SUPPORTED = -1309;
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
**Description**: The current system does not support screen sharing.
|
|
277
|
+
|
|
278
|
+
### ⚠️ V2TXLIVE_WARNING_SCREEN_CAPTURE_START_FAILED - Failed to Start Screen Capture
|
|
279
|
+
|
|
280
|
+
```java
|
|
281
|
+
public static final int V2TXLIVE_WARNING_SCREEN_CAPTURE_START_FAILED = -1308;
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**Description**: Failed to start screen capture. On mobile devices, this may be due to the user denying permission.
|
|
285
|
+
|
|
286
|
+
### ⚠️ V2TXLIVE_WARNING_SCREEN_CAPTURE_INTERRUPTED - Screen Capture Interrupted by System
|
|
287
|
+
|
|
288
|
+
```java
|
|
289
|
+
public static final int V2TXLIVE_WARNING_SCREEN_CAPTURE_INTERRUPTED = -7001;
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
**Description**: Screen capture was interrupted by the system.
|
|
293
|
+
|
|
294
|
+
## 7. Codec Warning Codes
|
|
295
|
+
|
|
296
|
+
### ⚠️ V2TXLIVE_WARNING_CURRENT_ENCODE_TYPE_CHANGED - Encoder Changed
|
|
297
|
+
|
|
298
|
+
```java
|
|
299
|
+
public static final int V2TXLIVE_WARNING_CURRENT_ENCODE_TYPE_CHANGED = 1104;
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
**Description**: The encoder has changed. You can get the current codec format from the `codec_type` field in the extension info of the `onWarning` callback.
|
|
303
|
+
|
|
304
|
+
### ⚠️ V2TXLIVE_WARNING_CURRENT_DECODE_TYPE_CHANGED - Decoder Changed
|
|
305
|
+
|
|
306
|
+
```java
|
|
307
|
+
public static final int V2TXLIVE_WARNING_CURRENT_DECODE_TYPE_CHANGED = 2008;
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
**Description**: The decoder has changed. You can get the current decoding format from the `codec_type` field in the extension info of the `onWarning` callback.
|
|
311
|
+
|
|
312
|
+
**Note**: The extension info for this warning code is not supported on Windows.
|