@tencent-rtc/mcp 1.2.9 → 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 (54) 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/trtc/C++/ITRTCCloud.md +4119 -0
  11. package/resource/doc/trtc/C++/ITRTCStatistics.md +325 -0
  12. package/resource/doc/trtc/C++/ITXAudioEffectManager.md +1289 -0
  13. package/resource/doc/trtc/C++/ITXDeviceManager.md +1028 -0
  14. package/resource/doc/trtc/C++/TRTCCloudCallback.md +2650 -0
  15. package/resource/doc/trtc/C++/TRTCTypeDef.md +3600 -0
  16. package/resource/doc/trtc/C++/TXLiteAVCode.md +921 -0
  17. package/resource/doc/trtc/android/TRTCCloud.md +3782 -0
  18. package/resource/doc/trtc/android/TRTCCloudDef.md +3880 -0
  19. package/resource/doc/trtc/android/TRTCCloudListener.md +2431 -0
  20. package/resource/doc/trtc/android/TRTCStatistics.md +295 -0
  21. package/resource/doc/trtc/android/TXAudioEffectManager.md +1289 -0
  22. package/resource/doc/trtc/android/TXBeautyManager.md +979 -0
  23. package/resource/doc/trtc/android/TXDeviceManager.md +440 -0
  24. package/resource/doc/trtc/android/TXLiteAVCode.md +905 -0
  25. package/resource/doc/trtc/iOS/TRTCCloud.md +4238 -0
  26. package/resource/doc/trtc/iOS/TRTCCloudDef.md +3730 -0
  27. package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +2531 -0
  28. package/resource/doc/trtc/iOS/TRTCStatistics.md +295 -0
  29. package/resource/doc/trtc/iOS/TXAudioEffectManager.md +1100 -0
  30. package/resource/doc/trtc/iOS/TXBeautyManager.md +985 -0
  31. package/resource/doc/trtc/iOS/TXDeviceManager.md +1024 -0
  32. package/resource/doc/trtc/iOS/TXLiteAVCode.md +928 -0
  33. package/tools/definitions/get_faq_def.js +4 -0
  34. package/tools/definitions/get_faq_def.js.map +1 -1
  35. package/tools/definitions/get_native_live_api_def.js +1 -1
  36. package/tools/definitions/get_trtc_native_api_def.js +16 -0
  37. package/tools/definitions/get_trtc_native_api_def.js.map +1 -0
  38. package/tools/definitions/get_web_live_uikit_component_detail_def.js +13 -8
  39. package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -1
  40. package/tools/definitions/get_web_live_uikit_integration_def.js +32 -0
  41. package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -0
  42. package/tools/index.js +6 -2
  43. package/tools/index.js.map +1 -1
  44. package/tools/live/get-web-live-uikit-integration.js +52 -0
  45. package/tools/live/get-web-live-uikit-integration.js.map +1 -0
  46. package/tools/trtc/get-trtc-native-api.js +31 -0
  47. package/tools/trtc/get-trtc-native-api.js.map +1 -0
  48. package/utils/generate-structured-result.js +34 -0
  49. package/utils/generate-structured-result.js.map +1 -0
  50. package/utils/handle-component-name.js +0 -8
  51. package/utils/handle-component-name.js.map +1 -1
  52. package/utils/report-cls-client.js +1 -1
  53. package/utils/report-es-client.js +1 -1
  54. /package/resource/doc/livekit/vue/{components/broadcast.md → live-pusher-integration.md} +0 -0
@@ -0,0 +1,440 @@
1
+ # TRTC SDK Documentation
2
+ ## Feature Overview
3
+ `TXDeviceManager.java` provides audio and video device management for the TRTC (Real-Time Communication) SDK on Android. Use this module to control hardware devices such as cameras, microphones, and speakers.
4
+
5
+
6
+ ## TXDeviceManager
7
+ <table>
8
+ <tr>
9
+ <td rowspan="1" colSpan="1" >Function List</td>
10
+
11
+ <td rowspan="1" colSpan="1" >Description</td>
12
+ </tr>
13
+
14
+ <tr>
15
+ <td rowspan="1" colSpan="1" >[isFrontCamera](https://write.woa.com/document/87029980188905472)</td>
16
+
17
+ <td rowspan="1" colSpan="1" >Determine whether the current camera is front-facing (only for mobile terminal)</td>
18
+ </tr>
19
+
20
+ <tr>
21
+ <td rowspan="1" colSpan="1" >[switchCamera](https://write.woa.com/document/87029980188905472)</td>
22
+
23
+ <td rowspan="1" colSpan="1" >Switch between front and rear cameras (only for mobile terminal)</td>
24
+ </tr>
25
+
26
+ <tr>
27
+ <td rowspan="1" colSpan="1" >[getCameraZoomMaxRatio](https://write.woa.com/document/87029980188905472)</td>
28
+
29
+ <td rowspan="1" colSpan="1" >Get the maximum zoom level of the camera (only for mobile terminal)</td>
30
+ </tr>
31
+
32
+ <tr>
33
+ <td rowspan="1" colSpan="1" >[setCameraZoomRatio](https://write.woa.com/document/87029980188905472)</td>
34
+
35
+ <td rowspan="1" colSpan="1" >Set the zoom level of the camera (only for mobile terminal)</td>
36
+ </tr>
37
+
38
+ <tr>
39
+ <td rowspan="1" colSpan="1" >[isAutoFocusEnabled](https://write.woa.com/document/87029980188905472)</td>
40
+
41
+ <td rowspan="1" colSpan="1" >Check if automatic face position recognition is supported (only for mobile terminal)</td>
42
+ </tr>
43
+
44
+ <tr>
45
+ <td rowspan="1" colSpan="1" >[enableCameraAutoFocus](https://write.woa.com/document/87029980188905472)</td>
46
+
47
+ <td rowspan="1" colSpan="1" >Enable autofocus feature (only for mobile terminal)</td>
48
+ </tr>
49
+
50
+ <tr>
51
+ <td rowspan="1" colSpan="1" >[setCameraFocusPosition](https://write.woa.com/document/87029980188905472)</td>
52
+
53
+ <td rowspan="1" colSpan="1" >Set the focus position of the camera (only for mobile terminal)</td>
54
+ </tr>
55
+
56
+ <tr>
57
+ <td rowspan="1" colSpan="1" >[enableCameraTorch](https://write.woa.com/document/87029980188905472)</td>
58
+
59
+ <td rowspan="1" colSpan="1" >Turn the flash on/off, also known as flashlight mode (only for mobile terminal)</td>
60
+ </tr>
61
+
62
+ <tr>
63
+ <td rowspan="1" colSpan="1" >[setAudioRoute](https://write.woa.com/document/87029980188905472)</td>
64
+
65
+ <td rowspan="1" colSpan="1" >Set audio routing (only for mobile terminal)</td>
66
+ </tr>
67
+
68
+ <tr>
69
+ <td rowspan="1" colSpan="1" >[setExposureCompensation](https://write.woa.com/document/87029980188905472)</td>
70
+
71
+ <td rowspan="1" colSpan="1" >Set the exposure parameters of the camera, ranging from -1 to 1</td>
72
+ </tr>
73
+
74
+ <tr>
75
+ <td rowspan="1" colSpan="1" >[setCameraCapturerParam](https://write.woa.com/document/87029980188905472)</td>
76
+
77
+ <td rowspan="1" colSpan="1" >Set camera capture preferences</td>
78
+ </tr>
79
+
80
+ <tr>
81
+ <td rowspan="1" colSpan="1" >[setSystemVolumeType](https://write.woa.com/document/87029980188905472)</td>
82
+
83
+ <td rowspan="1" colSpan="1" >Set system volume type (only for mobile terminal)</td>
84
+ </tr>
85
+ </table>
86
+
87
+
88
+ ## Struct Type
89
+ <table>
90
+ <tr>
91
+ <td rowspan="1" colSpan="1" >Function List</td>
92
+
93
+ <td rowspan="1" colSpan="1" >Description</td>
94
+ </tr>
95
+
96
+ <tr>
97
+ <td rowspan="1" colSpan="1" >[TXCameraCaptureParam](https://write.woa.com/document/87029980188905472)</td>
98
+
99
+ <td rowspan="1" colSpan="1" >Camera collection parameters</td>
100
+ </tr>
101
+ </table>
102
+
103
+
104
+ ## Enumeration Types
105
+ <table>
106
+ <tr>
107
+ <td rowspan="1" colSpan="1" >Enumeration Types</td>
108
+
109
+ <td rowspan="1" colSpan="1" >Description</td>
110
+ </tr>
111
+
112
+ <tr>
113
+ <td rowspan="1" colSpan="1" >[TXSystemVolumeType](https://write.woa.com/document/87029980188905472)</td>
114
+
115
+ <td rowspan="1" colSpan="1" >System Volume Type (Only applicable to mobile devices)</td>
116
+ </tr>
117
+
118
+ <tr>
119
+ <td rowspan="1" colSpan="1" >[TXAudioRoute](https://write.woa.com/document/87029980188905472)</td>
120
+
121
+ <td rowspan="1" colSpan="1" >Audio routing (i.e., the sound playback mode)</td>
122
+ </tr>
123
+
124
+ <tr>
125
+ <td rowspan="1" colSpan="1" >[TXCameraCaptureMode](https://write.woa.com/document/87029980188905472)</td>
126
+
127
+ <td rowspan="1" colSpan="1" >Camera capture preferences</td>
128
+ </tr>
129
+ </table>
130
+
131
+
132
+ ## isFrontCamera
133
+
134
+
135
+
136
+ #### Determine whether the current camera is front-facing (only for mobile terminal)
137
+
138
+ ## switchCamera
139
+
140
+
141
+
142
+ #### Switch between front and rear cameras (only for mobile terminal)
143
+
144
+ ## getCameraZoomMaxRatio
145
+
146
+
147
+
148
+ #### Get the maximum zoom level of the camera (only for mobile terminal)
149
+
150
+ ## setCameraZoomRatio
151
+
152
+
153
+
154
+ #### Set the zoom level of the camera (only for mobile terminal)
155
+ <table>
156
+ <tr>
157
+ <td rowspan="1" colSpan="1" >Parameters</td>
158
+
159
+ <td rowspan="1" colSpan="1" >Description</td>
160
+ </tr>
161
+
162
+ <tr>
163
+ <td rowspan="1" colSpan="1" >zoomRatio</td>
164
+
165
+ <td rowspan="1" colSpan="1" >Value range 1 - 5, with 1 representing the farthest view (normal lens) and 5 representing the closest view (magnifier lens). The recommended maximum value is 5; exceeding 5 may cause video data to become blurry.</td>
166
+ </tr>
167
+ </table>
168
+
169
+
170
+ ## isAutoFocusEnabled
171
+
172
+
173
+
174
+ #### Check if automatic face position recognition is supported (only for mobile terminal)
175
+
176
+ ## enableCameraAutoFocus
177
+
178
+
179
+
180
+ #### Enable autofocus feature (only for mobile terminal)
181
+
182
+ Once enabled, the SDK will automatically detect the face position in the frame and keep the camera focus on the face position.
183
+
184
+ ## setCameraFocusPosition
185
+
186
+
187
+
188
+ #### Set the focus position of the camera (only for mobile terminal)
189
+
190
+ You can achieve the following interactions with this interface:
191
+
192
+ 1. Allow users to click on the local camera preview screen.
193
+
194
+ 2. Display a rectangular box at the click position to indicate that the camera will focus on this point.
195
+
196
+ 3. Then, pass the coordinates of the user's click position through this interface to the SDK. The SDK will control the camera to focus on the user's desired location.
197
+ <table>
198
+ <tr>
199
+ <td rowspan="1" colSpan="1" >Parameters</td>
200
+
201
+ <td rowspan="1" colSpan="1" >Description</td>
202
+ </tr>
203
+
204
+ <tr>
205
+ <td rowspan="1" colSpan="1" >position</td>
206
+
207
+ <td rowspan="1" colSpan="1" >Focus position, please pass the coordinates of the desired focus point</td>
208
+ </tr>
209
+ </table>
210
+
211
+
212
+ > **Note**
213
+ >
214
+
215
+ > The prerequisite for using this interface is to disable the auto-focus feature through [enableCameraAutoFocus](https://write.woa.com/document/87029980188905472).
216
+ >
217
+
218
+
219
+ #### Return value description:
220
+
221
+ 0: Operation successful; Negative value: Operation failed.
222
+
223
+ ## enableCameraTorch
224
+
225
+
226
+
227
+ #### Turn the flash on/off, also known as flashlight mode (only for mobile terminal)
228
+
229
+ ## setAudioRoute
230
+
231
+
232
+
233
+ #### Set audio routing (only for mobile terminal)
234
+
235
+ A phone has two audio playback devices: one is the earpiece at the top of the phone, and the other is the stereo speaker at the bottom of the phone.
236
+
237
+ When the audio routing is set to the earpiece, the sound is relatively low, and you need to bring your ear close to hear it clearly, ensuring better privacy. It is suitable for phone calls.
238
+
239
+ When the audio routing is set to the speaker, the sound is relatively loud. You can hear it clearly without holding the phone to your face, thus enabling the "hands-free" feature.
240
+
241
+ ## setExposureCompensation
242
+
243
+
244
+
245
+ #### Set the exposure parameters of the camera, ranging from -1 to 1
246
+
247
+ ## setCameraCapturerParam
248
+
249
+
250
+
251
+ #### Set camera capture preferences
252
+
253
+ ## setSystemVolumeType
254
+
255
+
256
+
257
+ #### Set system volume type (only for mobile terminal)
258
+
259
+ @deprecated Not recommended starting from version 9.5. It is advised to use the startLocalAudio(quality) interface in ` TRTCCloud ` as a replacement, and decide the sound quality via the quality parameter.
260
+
261
+ ## TXSystemVolumeType(Deprecated)
262
+
263
+
264
+
265
+ #### System Volume Type (Only applicable to mobile devices)
266
+
267
+ @deprecated Not recommended starting from version 9.5.
268
+
269
+
270
+
271
+ Modern smartphones generally have two types of system volume: "Call Volume" and "Media Volume".
272
+ - Call Volume: A volume type designed specifically for making and receiving phone calls, featuring built-in echo cancellation (AEC), and supporting microphone input via Bluetooth headphones. However, the sound quality is relatively average.
273
+
274
+
275
+ If you press the volume button on the side of your phone to lower the volume and it cannot be set to zero (completely silent), it indicates that your phone is currently in Call Volume mode.
276
+ - Media Volume: A volume type designed specifically for music scenarios, which cannot use the system's AEC feature, and does not support microphone input via Bluetooth headphones, but provides better music playback quality.
277
+
278
+
279
+ If you press the volume button on the side of your phone to lower the volume and it can be set to completely silent, it indicates that your phone is currently in Media Volume mode.
280
+
281
+
282
+
283
+ The SDK currently offers three control modes for system volume types: Automatic Switching Mode, Full Call Volume Mode, Full Media Volume Mode.
284
+ <table>
285
+ <tr>
286
+ <td rowspan="1" colSpan="1" >Enumeration</td>
287
+
288
+ <td rowspan="1" colSpan="1" >Value</td>
289
+
290
+ <td rowspan="1" colSpan="1" >Description</td>
291
+ </tr>
292
+
293
+ <tr>
294
+ <td rowspan="1" colSpan="1" >TXSystemVolumeTypeAuto</td>
295
+
296
+ <td rowspan="1" colSpan="1" >Not Defined</td>
297
+
298
+ <td rowspan="1" colSpan="1" >Automatic Switching Mode</td>
299
+ </tr>
300
+
301
+ <tr>
302
+ <td rowspan="1" colSpan="1" >TXSystemVolumeTypeMedia</td>
303
+
304
+ <td rowspan="1" colSpan="1" >Not Defined</td>
305
+
306
+ <td rowspan="1" colSpan="1" >Full Media Volume</td>
307
+ </tr>
308
+
309
+ <tr>
310
+ <td rowspan="1" colSpan="1" >TXSystemVolumeTypeVOIP</td>
311
+
312
+ <td rowspan="1" colSpan="1" >Not Defined</td>
313
+
314
+ <td rowspan="1" colSpan="1" >Full Call Volume</td>
315
+ </tr>
316
+ </table>
317
+
318
+
319
+ ## TXAudioRoute
320
+
321
+
322
+
323
+ #### Audio routing (i.e., the sound playback mode)
324
+
325
+ Audio routing, that is, whether the sound is played through the phone's speaker or earpiece. Therefore, this interface is only applicable to mobile devices.
326
+
327
+ A mobile phone has two speakers: one is the earpiece located at the top of the phone, and the other is the stereo speaker located at the bottom.
328
+ - When the audio routing is set to the earpiece, the sound is relatively low, and you need to bring your ear close to hear it clearly, ensuring better privacy. It is suitable for phone calls.
329
+
330
+ - When the audio routing is set to the speaker, the sound is relatively loud. You can hear it clearly without holding the phone to your face, thus enabling the "hands-free" feature.
331
+
332
+ <table>
333
+ <tr>
334
+ <td rowspan="1" colSpan="1" >Enumeration</td>
335
+
336
+ <td rowspan="1" colSpan="1" >Value</td>
337
+
338
+ <td rowspan="1" colSpan="1" >Description</td>
339
+ </tr>
340
+
341
+ <tr>
342
+ <td rowspan="1" colSpan="1" >TXAudioRouteSpeakerphone</td>
343
+
344
+ <td rowspan="1" colSpan="1" >Not Defined</td>
345
+
346
+ <td rowspan="1" colSpan="1" >Speakerphone: Play sound through the speaker (i.e., "hands-free"), which is located at the bottom of the phone. The volume tends to be loud, suitable for playing music out loud.</td>
347
+ </tr>
348
+
349
+ <tr>
350
+ <td rowspan="1" colSpan="1" >TXAudioRouteEarpiece</td>
351
+
352
+ <td rowspan="1" colSpan="1" >Not Defined</td>
353
+
354
+ <td rowspan="1" colSpan="1" >Earpiece: Plays through the earpiece, the earpiece is located at the top of the phone, the sound is small, suitable for privacy-protected call scenarios.</td>
355
+ </tr>
356
+ </table>
357
+
358
+
359
+ ## TXCameraCaptureMode
360
+
361
+
362
+
363
+ #### Camera capture preferences
364
+
365
+ This enumeration type is used for camera collection parameter settings.
366
+ <table>
367
+ <tr>
368
+ <td rowspan="1" colSpan="1" >Enumeration</td>
369
+
370
+ <td rowspan="1" colSpan="1" >Value</td>
371
+
372
+ <td rowspan="1" colSpan="1" >Description</td>
373
+ </tr>
374
+
375
+ <tr>
376
+ <td rowspan="1" colSpan="1" >TXCameraResolutionStrategyAuto</td>
377
+
378
+ <td rowspan="1" colSpan="1" >Not Defined</td>
379
+
380
+ <td rowspan="1" colSpan="1" >Auto-adjust collection parameters.<br>The SDK selects appropriate camera output parameters based on the performance of the actual capture device and network conditions, maintaining a balance between device performance and video preview quality.</td>
381
+ </tr>
382
+
383
+ <tr>
384
+ <td rowspan="1" colSpan="1" >TXCameraResolutionStrategyPerformance</td>
385
+
386
+ <td rowspan="1" colSpan="1" >Not Defined</td>
387
+
388
+ <td rowspan="1" colSpan="1" >Prioritize device performance.<br>The SDK selects the closest camera output parameters based on the encoder resolution and frame rate set by the user, thus ensuring device performance.</td>
389
+ </tr>
390
+
391
+ <tr>
392
+ <td rowspan="1" colSpan="1" >TXCameraResolutionStrategyHighQuality</td>
393
+
394
+ <td rowspan="1" colSpan="1" >Not Defined</td>
395
+
396
+ <td rowspan="1" colSpan="1" >Priority is given to ensuring video preview quality.<br>The SDK selects higher camera output parameters to improve the quality of preview video. In this case, more CPU and memory will be consumed for video preprocessing.</td>
397
+ </tr>
398
+
399
+ <tr>
400
+ <td rowspan="1" colSpan="1" >TXCameraCaptureManual</td>
401
+
402
+ <td rowspan="1" colSpan="1" >Not Defined</td>
403
+
404
+ <td rowspan="1" colSpan="1" >Users are allowed to set the video aspect ratio captured by the local camera.</td>
405
+ </tr>
406
+ </table>
407
+
408
+
409
+ ## TXCameraCaptureParam
410
+
411
+
412
+
413
+ #### Camera collection parameters
414
+
415
+ This setting determines the image quality of the local preview.
416
+ <table>
417
+ <tr>
418
+ <td rowspan="1" colSpan="1" >Enumeration Types</td>
419
+
420
+ <td rowspan="1" colSpan="1" >Description</td>
421
+ </tr>
422
+
423
+ <tr>
424
+ <td rowspan="1" colSpan="1" >height</td>
425
+
426
+ <td rowspan="1" colSpan="1" >**Field Definition:** Captured Image Width</td>
427
+ </tr>
428
+
429
+ <tr>
430
+ <td rowspan="1" colSpan="1" >mode</td>
431
+
432
+ <td rowspan="1" colSpan="1" >**Field Definition:** Camera Capture Preferences, refer to [TXCameraCaptureMode](https://write.woa.com/document/87029980188905472)</td>
433
+ </tr>
434
+
435
+ <tr>
436
+ <td rowspan="1" colSpan="1" >width</td>
437
+
438
+ <td rowspan="1" colSpan="1" >**Field Definition:** Captured Image Length</td>
439
+ </tr>
440
+ </table>