@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.
Files changed (78) hide show
  1. package/package.json +1 -1
  2. package/resource/doc/chatuikit/faq/common/server.md +44 -0
  3. package/resource/doc/chatuikit/faq/web_sdk/faq.md +57 -0
  4. package/resource/doc/livekit/vue/components/co-guest-panel.md +3 -3
  5. package/resource/doc/livekit/vue/components/live-view.md +4 -4
  6. package/resource/doc/livekit/vue/{components/live-list.md → live-list-integration.md} +7 -7
  7. package/resource/doc/livekit/vue/{components/live-player.md → live-player-desk-integration.md} +8 -8
  8. package/resource/doc/livekit/vue/live-player-h5-integration.md +269 -0
  9. package/resource/doc/livekit/vue/workflow.md +218 -0
  10. package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +312 -0
  11. package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +430 -0
  12. package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +679 -0
  13. package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +671 -0
  14. package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +271 -0
  15. package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +849 -0
  16. package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +1046 -0
  17. package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +460 -0
  18. package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +558 -0
  19. package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +865 -0
  20. package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +657 -0
  21. package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +437 -0
  22. package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +335 -0
  23. package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +748 -0
  24. package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +327 -0
  25. package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +507 -0
  26. package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +507 -0
  27. package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +659 -0
  28. package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +284 -0
  29. package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +814 -0
  30. package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +1000 -0
  31. package/resource/doc/trtc/C++/ITRTCCloud.md +4119 -0
  32. package/resource/doc/trtc/C++/ITRTCStatistics.md +325 -0
  33. package/resource/doc/trtc/C++/ITXAudioEffectManager.md +1289 -0
  34. package/resource/doc/trtc/C++/ITXDeviceManager.md +1028 -0
  35. package/resource/doc/trtc/C++/TRTCCloudCallback.md +2650 -0
  36. package/resource/doc/trtc/C++/TRTCTypeDef.md +3600 -0
  37. package/resource/doc/trtc/C++/TXLiteAVCode.md +921 -0
  38. package/resource/doc/trtc/android/TRTCCloud.md +3782 -0
  39. package/resource/doc/trtc/android/TRTCCloudDef.md +3880 -0
  40. package/resource/doc/trtc/android/TRTCCloudListener.md +2431 -0
  41. package/resource/doc/trtc/android/TRTCStatistics.md +295 -0
  42. package/resource/doc/trtc/android/TXAudioEffectManager.md +1289 -0
  43. package/resource/doc/trtc/android/TXBeautyManager.md +979 -0
  44. package/resource/doc/trtc/android/TXDeviceManager.md +440 -0
  45. package/resource/doc/trtc/android/TXLiteAVCode.md +905 -0
  46. package/resource/doc/trtc/iOS/TRTCCloud.md +4238 -0
  47. package/resource/doc/trtc/iOS/TRTCCloudDef.md +3730 -0
  48. package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +2531 -0
  49. package/resource/doc/trtc/iOS/TRTCStatistics.md +295 -0
  50. package/resource/doc/trtc/iOS/TXAudioEffectManager.md +1100 -0
  51. package/resource/doc/trtc/iOS/TXBeautyManager.md +985 -0
  52. package/resource/doc/trtc/iOS/TXDeviceManager.md +1024 -0
  53. package/resource/doc/trtc/iOS/TXLiteAVCode.md +928 -0
  54. package/tools/definitions/get_faq_def.js +4 -0
  55. package/tools/definitions/get_faq_def.js.map +1 -1
  56. package/tools/definitions/get_native_live_api_def.js +23 -0
  57. package/tools/definitions/get_native_live_api_def.js.map +1 -0
  58. package/tools/definitions/get_trtc_native_api_def.js +16 -0
  59. package/tools/definitions/get_trtc_native_api_def.js.map +1 -0
  60. package/tools/definitions/get_web_live_uikit_component_detail_def.js +13 -8
  61. package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -1
  62. package/tools/definitions/get_web_live_uikit_integration_def.js +32 -0
  63. package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -0
  64. package/tools/index.js +8 -0
  65. package/tools/index.js.map +1 -1
  66. package/tools/live/get-web-live-uikit-integration.js +52 -0
  67. package/tools/live/get-web-live-uikit-integration.js.map +1 -0
  68. package/tools/native_live/get-native-live-api.js +31 -0
  69. package/tools/native_live/get-native-live-api.js.map +1 -0
  70. package/tools/trtc/get-trtc-native-api.js +31 -0
  71. package/tools/trtc/get-trtc-native-api.js.map +1 -0
  72. package/utils/generate-structured-result.js +34 -0
  73. package/utils/generate-structured-result.js.map +1 -0
  74. package/utils/handle-component-name.js +0 -8
  75. package/utils/handle-component-name.js.map +1 -1
  76. package/utils/report-cls-client.js +1 -1
  77. package/utils/report-es-client.js +1 -1
  78. /package/resource/doc/livekit/vue/{components/broadcast.md → live-pusher-integration.md} +0 -0
@@ -0,0 +1,327 @@
1
+ # Tencent Cloud Live Streaming SDK V2TXLiveCode Error Code Documentation
2
+
3
+ ## Overview
4
+
5
+ `V2TXLiveCode.h` defines the error and warning codes for the Tencent Cloud Live Streaming (CSS) SDK on iOS and macOS. This file covers error code categories and detailed descriptions for modules such as host, player, stream mixing, and recording.
6
+
7
+ **Platform Support**: iOS, macOS
8
+ **Total Error Codes**: 20 core error and warning codes
9
+
10
+ ## 📋 Table of Contents
11
+
12
+ ### 1. [Error Code Categories](#错误码分类)
13
+ ### 2. [General Error Codes](#通用错误码)
14
+ ### 3. [Network-Related Warning Codes](#网络相关警告码)
15
+ ### 4. [Camera-Related Warning Codes](#摄像头相关警告码)
16
+ ### 5. [Microphone-Related Warning Codes](#麦克风相关警告码)
17
+ ### 6. [Screen Sharing Warning Codes](#屏幕分享相关警告码)
18
+ ### 7. [Codec Warning Codes](#编解码相关警告码)
19
+ ### 8. [Error Code Usage Guide](#错误码使用指南)
20
+
21
+ ## 1. Error Code Categories
22
+
23
+ ### 🎯 Error Code Statistics
24
+
25
+ | Category | Number of Codes | Main Functions |
26
+ |----------------------------------|----------------|---------------------------------------|
27
+ | General Error Codes | 9 | API calls, parameter validation, permission checks |
28
+ | Network-Related Warning Codes | 2 | Network status, video stutter monitoring |
29
+ | Camera-Related Warning Codes | 3 | Camera device status monitoring |
30
+ | Microphone-Related Warning Codes | 3 | Microphone device status monitoring |
31
+ | Screen Sharing Warning Codes | 3 | Screen sharing feature status monitoring |
32
+ | Codec Warning Codes | 2 | Audio/video codec status monitoring |
33
+
34
+ ### 🔧 Technical Features
35
+
36
+ - **Hierarchical Categorization**: Error codes are organized by functional module.
37
+ - **Detailed Descriptions**: Each error code includes a clear explanation and usage scenario.
38
+ - **Platform-Specific**: Error codes are tailored for iOS and macOS.
39
+ - **Debug-Friendly**: Each code provides detailed explanations and troubleshooting suggestions.
40
+
41
+ ## 2. General Error Codes
42
+
43
+ ### ✅ V2TXLIVE_OK - Operation Successful
44
+
45
+ ```objc
46
+ V2TXLIVE_OK = 0
47
+ ```
48
+
49
+ **Description**: No error occurred; the operation completed successfully.
50
+
51
+ **Typical Scenarios**:
52
+ - API call succeeded
53
+ - Operation executed and confirmed
54
+ - Status check returned normal
55
+
56
+ ### ❌ V2TXLIVE_ERROR_FAILED - General Error
57
+
58
+ ```objc
59
+ V2TXLIVE_ERROR_FAILED = -1
60
+ ```
61
+
62
+ **Description**: A general error occurred that does not fit into a specific category.
63
+
64
+ **Possible Causes**:
65
+ - Internal processing exception
66
+ - Unclassified error
67
+
68
+ ### ❌ V2TXLIVE_ERROR_INVALID_PARAMETER - Invalid Parameter
69
+
70
+ ```objc
71
+ V2TXLIVE_ERROR_INVALID_PARAMETER = -2
72
+ ```
73
+
74
+ **Description**: An invalid parameter was passed to the API.
75
+
76
+ **Common Causes**:
77
+ - Incorrect stream URL format
78
+ - Unsupported parameter value
79
+
80
+ ### ❌ V2TXLIVE_ERROR_REFUSED - API Call Refused
81
+
82
+ ```objc
83
+ V2TXLIVE_ERROR_REFUSED = -3
84
+ ```
85
+
86
+ **Description**: The API call was refused.
87
+
88
+ **Possible Causes**:
89
+ - Incorrect call timing
90
+
91
+ ### ❌ V2TXLIVE_ERROR_NOT_SUPPORTED - API Not Supported
92
+
93
+ ```objc
94
+ V2TXLIVE_ERROR_NOT_SUPPORTED = -4
95
+ ```
96
+
97
+ **Description**: The current API is not supported.
98
+
99
+ **Common Causes**:
100
+ - Feature not supported on this platform
101
+ - SDK version is outdated
102
+ - Hardware does not support the feature
103
+
104
+ ### ❌ V2TXLIVE_ERROR_INVALID_LICENSE - Invalid License
105
+
106
+ ```objc
107
+ V2TXLIVE_ERROR_INVALID_LICENSE = -5
108
+ ```
109
+
110
+ **Description**: The license is invalid; the call failed.
111
+
112
+ **Possible Causes**:
113
+ - License file not set
114
+ - License expired
115
+ - License does not match the bundle identifier
116
+
117
+ ### ❌ V2TXLIVE_ERROR_REQUEST_TIMEOUT - Request Timeout
118
+
119
+ ```objc
120
+ V2TXLIVE_ERROR_REQUEST_TIMEOUT = -6
121
+ ```
122
+
123
+ **Description**: The request to the server timed out.
124
+
125
+ **Common Causes**:
126
+ - Unstable network connection
127
+ - Slow server response
128
+
129
+ ### ❌ V2TXLIVE_ERROR_SERVER_PROCESS_FAILED - Server Processing Failed
130
+
131
+ ```objc
132
+ V2TXLIVE_ERROR_SERVER_PROCESS_FAILED = -7
133
+ ```
134
+
135
+ **Description**: The server failed to process the request.
136
+
137
+ **Possible Causes**:
138
+ - Internal server error
139
+ - Incorrect request format
140
+ - Insufficient server resources
141
+
142
+ ### ❌ V2TXLIVE_ERROR_DISCONNECTED - Disconnected
143
+
144
+ ```objc
145
+ V2TXLIVE_ERROR_DISCONNECTED = -8
146
+ ```
147
+
148
+ **Description**: Network connection was lost.
149
+
150
+ **Common Causes**:
151
+ - Stream push network disconnected
152
+ - Stream pull network disconnected
153
+
154
+ ### ❌ V2TXLIVE_ERROR_NO_AVAILABLE_HEVC_DECODERS - No Available HEVC Decoders
155
+
156
+ ```objc
157
+ V2TXLIVE_ERROR_NO_AVAILABLE_HEVC_DECODERS = -2304
158
+ ```
159
+
160
+ **Description**: No available HEVC decoder found.
161
+
162
+ **Possible Causes**:
163
+ - Device does not support HEVC Hardware Decoding
164
+ - Failed to initialize HEVC decoder
165
+ - System version is too low
166
+
167
+ ## 3. Network-Related Warning Codes
168
+
169
+ ### ⚠️ V2TXLIVE_WARNING_NETWORK_BUSY - Network Busy
170
+
171
+ ```objc
172
+ V2TXLIVE_WARNING_NETWORK_BUSY = 1101
173
+ ```
174
+
175
+ **Description**: Network conditions are poor. Uplink bandwidth is insufficient, causing data upload to be blocked.
176
+
177
+ **Monitoring Indicators**:
178
+ - Uplink bandwidth limitation
179
+ - Increased network latency
180
+ - High packet loss rate
181
+
182
+ ### ⚠️ V2TXLIVE_WARNING_VIDEO_BLOCK - Video Stutter
183
+
184
+ ```objc
185
+ V2TXLIVE_WARNING_VIDEO_BLOCK = 2105
186
+ ```
187
+
188
+ **Description**: Video playback is currently stuttering.
189
+
190
+ **Possible Causes**:
191
+ - Insufficient network bandwidth
192
+ - Decoding performance bottleneck
193
+ - Rendering performance issues
194
+
195
+ ## 4. Camera-Related Warning Codes
196
+
197
+ ### ⚠️ V2TXLIVE_WARNING_CAMERA_START_FAILED - Camera Start Failed
198
+
199
+ ```objc
200
+ V2TXLIVE_WARNING_CAMERA_START_FAILED = -1301
201
+ ```
202
+
203
+ **Description**: Failed to start the camera.
204
+
205
+ **Possible Causes**:
206
+ - Hardware malfunction
207
+ - Driver issues
208
+ - Resource conflict
209
+
210
+ ### ⚠️ V2TXLIVE_WARNING_CAMERA_OCCUPIED - Camera Occupied
211
+
212
+ ```objc
213
+ V2TXLIVE_WARNING_CAMERA_OCCUPIED = -1316
214
+ ```
215
+
216
+ **Description**: The camera is currently in use. Try switching to another camera.
217
+
218
+ **Possible Scenarios**:
219
+ - Another app is using the camera
220
+ - System camera app is running
221
+ - Video call in progress
222
+
223
+ ### ⚠️ V2TXLIVE_WARNING_CAMERA_NO_PERMISSION - Camera Not Authorized
224
+
225
+ ```objc
226
+ V2TXLIVE_WARNING_CAMERA_NO_PERMISSION = -1314
227
+ ```
228
+
229
+ **Description**: The camera is not authorized. This usually occurs when the user denies camera permission on a mobile device.
230
+
231
+ ## 5. Microphone-Related Warning Codes
232
+
233
+ ### ⚠️ V2TXLIVE_WARNING_MICROPHONE_START_FAILED - Microphone Start Failed
234
+
235
+ ```objc
236
+ V2TXLIVE_WARNING_MICROPHONE_START_FAILED = -1302
237
+ ```
238
+
239
+ **Description**: Failed to start the microphone.
240
+
241
+ **Possible Causes**:
242
+ - Hardware connection issues
243
+ - Abnormal system audio settings
244
+ - Failed to initialize audio session
245
+
246
+ ### ⚠️ V2TXLIVE_WARNING_MICROPHONE_OCCUPIED - Microphone Occupied
247
+
248
+ ```objc
249
+ V2TXLIVE_WARNING_MICROPHONE_OCCUPIED = -1319
250
+ ```
251
+
252
+ **Description**: The microphone is currently in use. For example, opening the microphone fails when the device is in a call.
253
+
254
+ **Possible Scenarios**:
255
+ - Device is in a call
256
+ - Another audio app is using the microphone
257
+ - Audio session conflict
258
+
259
+ ### ⚠️ V2TXLIVE_WARNING_MICROPHONE_NO_PERMISSION - Microphone Not Authorized
260
+
261
+ ```objc
262
+ V2TXLIVE_WARNING_MICROPHONE_NO_PERMISSION = -1317
263
+ ```
264
+
265
+ **Description**: The microphone is not authorized. This usually occurs when the user denies microphone permission on a mobile device.
266
+
267
+ ## 6. Screen Sharing Warning Codes
268
+
269
+ ### ⚠️ V2TXLIVE_WARNING_SCREEN_CAPTURE_NOT_SUPPORTED - Screen Sharing Not Supported by System
270
+
271
+ ```objc
272
+ V2TXLIVE_WARNING_SCREEN_CAPTURE_NOT_SUPPORTED = -1309
273
+ ```
274
+
275
+ **Description**: The current system does not support screen sharing.
276
+
277
+ **Compatibility Requirements**:
278
+ - iOS 11.0 or later supports ReplayKit screen recording
279
+ - ReplayKit feature must be available
280
+
281
+ ### ⚠️ V2TXLIVE_WARNING_SCREEN_CAPTURE_START_FAILED - Failed to Start Screen Recording
282
+
283
+ ```objc
284
+ V2TXLIVE_WARNING_SCREEN_CAPTURE_START_FAILED = -1308
285
+ ```
286
+
287
+ **Description**: Failed to start screen recording. On mobile devices, this may occur if the user denies permission.
288
+
289
+ **Possible Causes**:
290
+ - User denied screen recording permission
291
+ - Screen recording feature unavailable
292
+ - System restrictions
293
+
294
+ ### ⚠️ V2TXLIVE_WARNING_SCREEN_CAPTURE_INTERRUPTED - Screen Recording Interrupted by System
295
+
296
+ ```objc
297
+ V2TXLIVE_WARNING_SCREEN_CAPTURE_INTERRUPTED = -7001
298
+ ```
299
+
300
+ **Description**: Screen recording was interrupted by the system.
301
+
302
+ **Possible Causes**:
303
+ - System events (such as incoming calls or screen lock)
304
+ - User manually stopped screen recording
305
+ - System resource limitations
306
+
307
+ ## 7. Codec Warning Codes
308
+
309
+ ### ⚠️ V2TXLIVE_WARNING_CURRENT_ENCODE_TYPE_CHANGED - Encoder Changed
310
+
311
+ ```objc
312
+ V2TXLIVE_WARNING_CURRENT_ENCODE_TYPE_CHANGED = 1104
313
+ ```
314
+
315
+ **Description**: The encoder type has changed. You can retrieve the current codec format from the `codec_type` field in the extended info of the `onWarning` callback.
316
+
317
+ **Note**: Extended info for this warning code is not supported on Windows.
318
+
319
+ ### ⚠️ V2TXLIVE_WARNING_CURRENT_DECODE_TYPE_CHANGED - Decoder Changed
320
+
321
+ ```objc
322
+ V2TXLIVE_WARNING_CURRENT_DECODE_TYPE_CHANGED = 2008
323
+ ```
324
+
325
+ **Description**: The decoder type has changed. You can retrieve the current decoding format from the `codec_type` field in the extended info of the `onWarning` callback.
326
+
327
+ **Note**: Extended info for this warning code is not supported on Windows.