@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,3730 @@
|
|
|
1
|
+
# TRTC Real-Time Communication (TRTC SDK) Documentation
|
|
2
|
+
## Overview
|
|
3
|
+
`TRTCCloudDef.h` provides type definitions for TRTC Real-Time Communication (TRTC SDK) on iOS.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Struct Type
|
|
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" >[TRTCParams](https://write.woa.com/document/87029873782558720)</td>
|
|
16
|
+
|
|
17
|
+
<td rowspan="1" colSpan="1" >Room entry parameters</td>
|
|
18
|
+
</tr>
|
|
19
|
+
|
|
20
|
+
<tr>
|
|
21
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoEncParam](https://write.woa.com/document/87029873782558720)</td>
|
|
22
|
+
|
|
23
|
+
<td rowspan="1" colSpan="1" >Video encoding parameters</td>
|
|
24
|
+
</tr>
|
|
25
|
+
|
|
26
|
+
<tr>
|
|
27
|
+
<td rowspan="1" colSpan="1" >[TRTCNetworkQosParam](https://write.woa.com/document/87029873782558720)</td>
|
|
28
|
+
|
|
29
|
+
<td rowspan="1" colSpan="1" >Network flow control (Qos) parameter set</td>
|
|
30
|
+
</tr>
|
|
31
|
+
|
|
32
|
+
<tr>
|
|
33
|
+
<td rowspan="1" colSpan="1" >[TRTCRenderParams](https://write.woa.com/document/87029873782558720)</td>
|
|
34
|
+
|
|
35
|
+
<td rowspan="1" colSpan="1" >Rendering parameters for video footage</td>
|
|
36
|
+
</tr>
|
|
37
|
+
|
|
38
|
+
<tr>
|
|
39
|
+
<td rowspan="1" colSpan="1" >[TRTCQualityInfo](https://write.woa.com/document/87029873782558720)</td>
|
|
40
|
+
|
|
41
|
+
<td rowspan="1" colSpan="1" >Network quality</td>
|
|
42
|
+
</tr>
|
|
43
|
+
|
|
44
|
+
<tr>
|
|
45
|
+
<td rowspan="1" colSpan="1" >[TRTCVolumeInfo](https://write.woa.com/document/87029873782558720)</td>
|
|
46
|
+
|
|
47
|
+
<td rowspan="1" colSpan="1" >Volume level</td>
|
|
48
|
+
</tr>
|
|
49
|
+
|
|
50
|
+
<tr>
|
|
51
|
+
<td rowspan="1" colSpan="1" >[TRTCSpeedTestParams](https://write.woa.com/document/87029873782558720)</td>
|
|
52
|
+
|
|
53
|
+
<td rowspan="1" colSpan="1" >Speed Test Parameters</td>
|
|
54
|
+
</tr>
|
|
55
|
+
|
|
56
|
+
<tr>
|
|
57
|
+
<td rowspan="1" colSpan="1" >[TRTCSpeedTestResult](https://write.woa.com/document/87029873782558720)</td>
|
|
58
|
+
|
|
59
|
+
<td rowspan="1" colSpan="1" >Network speed test results</td>
|
|
60
|
+
</tr>
|
|
61
|
+
|
|
62
|
+
<tr>
|
|
63
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoFrame](https://write.woa.com/document/87029873782558720)</td>
|
|
64
|
+
|
|
65
|
+
<td rowspan="1" colSpan="1" >Video frame information</td>
|
|
66
|
+
</tr>
|
|
67
|
+
|
|
68
|
+
<tr>
|
|
69
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioFrame](https://write.woa.com/document/87029873782558720)</td>
|
|
70
|
+
|
|
71
|
+
<td rowspan="1" colSpan="1" >Audio frame data</td>
|
|
72
|
+
</tr>
|
|
73
|
+
|
|
74
|
+
<tr>
|
|
75
|
+
<td rowspan="1" colSpan="1" >[TRTCMixUser](https://write.woa.com/document/87029873782558720)</td>
|
|
76
|
+
|
|
77
|
+
<td rowspan="1" colSpan="1" >Description information of each screen in Cloud Mixed Streaming</td>
|
|
78
|
+
</tr>
|
|
79
|
+
|
|
80
|
+
<tr>
|
|
81
|
+
<td rowspan="1" colSpan="1" >[TRTCTranscodingConfig](https://write.woa.com/document/87029873782558720)</td>
|
|
82
|
+
|
|
83
|
+
<td rowspan="1" colSpan="1" >Layout and Transcoding Parameters of Cloud Mixed Streaming</td>
|
|
84
|
+
</tr>
|
|
85
|
+
|
|
86
|
+
<tr>
|
|
87
|
+
<td rowspan="1" colSpan="1" >[TRTCPublishCDNParam](https://write.woa.com/document/87029873782558720)</td>
|
|
88
|
+
|
|
89
|
+
<td rowspan="1" colSpan="1" >The relay parameters to be set when publishing audio and video streams to non-Tencent Cloud CDN</td>
|
|
90
|
+
</tr>
|
|
91
|
+
|
|
92
|
+
<tr>
|
|
93
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioRecordingParams](https://write.woa.com/document/87029873782558720)</td>
|
|
94
|
+
|
|
95
|
+
<td rowspan="1" colSpan="1" >Local audio file recording parameters</td>
|
|
96
|
+
</tr>
|
|
97
|
+
|
|
98
|
+
<tr>
|
|
99
|
+
<td rowspan="1" colSpan="1" >[TRTCLocalRecordingParams](https://write.woa.com/document/87029873782558720)</td>
|
|
100
|
+
|
|
101
|
+
<td rowspan="1" colSpan="1" >Local media file recording parameters</td>
|
|
102
|
+
</tr>
|
|
103
|
+
|
|
104
|
+
<tr>
|
|
105
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioEffectParam](https://write.woa.com/document/87029873782558720)</td>
|
|
106
|
+
|
|
107
|
+
<td rowspan="1" colSpan="1" >Audio Effect Parameters (Deprecated)</td>
|
|
108
|
+
</tr>
|
|
109
|
+
|
|
110
|
+
<tr>
|
|
111
|
+
<td rowspan="1" colSpan="1" >[TRTCSwitchRoomConfig](https://write.woa.com/document/87029873782558720)</td>
|
|
112
|
+
|
|
113
|
+
<td rowspan="1" colSpan="1" >Room switching parameters</td>
|
|
114
|
+
</tr>
|
|
115
|
+
|
|
116
|
+
<tr>
|
|
117
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioFrameDelegateFormat](https://write.woa.com/document/87029873782558720)</td>
|
|
118
|
+
|
|
119
|
+
<td rowspan="1" colSpan="1" >Audio self Definition callback format parameters</td>
|
|
120
|
+
</tr>
|
|
121
|
+
|
|
122
|
+
<tr>
|
|
123
|
+
<td rowspan="1" colSpan="1" >[TRTCScreenCaptureSourceInfo](https://write.woa.com/document/87029873782558720)</td>
|
|
124
|
+
|
|
125
|
+
<td rowspan="1" colSpan="1" >Target information for screen sharing (only applicable to desktop systems)</td>
|
|
126
|
+
</tr>
|
|
127
|
+
|
|
128
|
+
<tr>
|
|
129
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioParallelParams](https://write.woa.com/document/87029873782558720)</td>
|
|
130
|
+
|
|
131
|
+
<td rowspan="1" colSpan="1" >Parameters of the intelligent concurrent playback strategy for remote audio streams</td>
|
|
132
|
+
</tr>
|
|
133
|
+
|
|
134
|
+
<tr>
|
|
135
|
+
<td rowspan="1" colSpan="1" >[TRTCUser](https://write.woa.com/document/87029873782558720)</td>
|
|
136
|
+
|
|
137
|
+
<td rowspan="1" colSpan="1" >User information related to media stream publishing settings</td>
|
|
138
|
+
</tr>
|
|
139
|
+
|
|
140
|
+
<tr>
|
|
141
|
+
<td rowspan="1" colSpan="1" >[TRTCPublishCdnUrl](https://write.woa.com/document/87029873782558720)</td>
|
|
142
|
+
|
|
143
|
+
<td rowspan="1" colSpan="1" >URL configuration required when publishing audio and video streams to Tencent or third-party CDNs</td>
|
|
144
|
+
</tr>
|
|
145
|
+
|
|
146
|
+
<tr>
|
|
147
|
+
<td rowspan="1" colSpan="1" >[TRTCPublishTarget](https://write.woa.com/document/87029873782558720)</td>
|
|
148
|
+
|
|
149
|
+
<td rowspan="1" colSpan="1" >Target Streaming Configuration</td>
|
|
150
|
+
</tr>
|
|
151
|
+
|
|
152
|
+
<tr>
|
|
153
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoLayout](https://write.woa.com/document/87029873782558720)</td>
|
|
154
|
+
|
|
155
|
+
<td rowspan="1" colSpan="1" >Transcoding Video Layout</td>
|
|
156
|
+
</tr>
|
|
157
|
+
|
|
158
|
+
<tr>
|
|
159
|
+
<td rowspan="1" colSpan="1" >[TRTCWatermark](https://write.woa.com/document/87029873782558720)</td>
|
|
160
|
+
|
|
161
|
+
<td rowspan="1" colSpan="1" >Watermark Layout</td>
|
|
162
|
+
</tr>
|
|
163
|
+
|
|
164
|
+
<tr>
|
|
165
|
+
<td rowspan="1" colSpan="1" >[TRTCStreamEncoderParam](https://write.woa.com/document/87029873782558720)</td>
|
|
166
|
+
|
|
167
|
+
<td rowspan="1" colSpan="1" >Media Stream Encoding Output Parameters</td>
|
|
168
|
+
</tr>
|
|
169
|
+
|
|
170
|
+
<tr>
|
|
171
|
+
<td rowspan="1" colSpan="1" >[TRTCStreamMixingConfig](https://write.woa.com/document/87029873782558720)</td>
|
|
172
|
+
|
|
173
|
+
<td rowspan="1" colSpan="1" >Media Stream Transcoding Configuration Parameters</td>
|
|
174
|
+
</tr>
|
|
175
|
+
|
|
176
|
+
<tr>
|
|
177
|
+
<td rowspan="1" colSpan="1" >[TRTCPayloadPrivateEncryptionConfig](https://write.woa.com/document/87029873782558720)</td>
|
|
178
|
+
|
|
179
|
+
<td rowspan="1" colSpan="1" >Private media stream encryption configuration</td>
|
|
180
|
+
</tr>
|
|
181
|
+
|
|
182
|
+
<tr>
|
|
183
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioVolumeEvaluateParams](https://write.woa.com/document/87029873782558720)</td>
|
|
184
|
+
|
|
185
|
+
<td rowspan="1" colSpan="1" >Volume assessment and related parameter settings</td>
|
|
186
|
+
</tr>
|
|
187
|
+
</table>
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## Enumeration Types
|
|
191
|
+
<table>
|
|
192
|
+
<tr>
|
|
193
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
194
|
+
|
|
195
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
196
|
+
</tr>
|
|
197
|
+
|
|
198
|
+
<tr>
|
|
199
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoResolution](https://write.woa.com/document/87029873782558720)</td>
|
|
200
|
+
|
|
201
|
+
<td rowspan="1" colSpan="1" >Video Resolution</td>
|
|
202
|
+
</tr>
|
|
203
|
+
|
|
204
|
+
<tr>
|
|
205
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoResolutionMode](https://write.woa.com/document/87029873782558720)</td>
|
|
206
|
+
|
|
207
|
+
<td rowspan="1" colSpan="1" >Video aspect ratio mode</td>
|
|
208
|
+
</tr>
|
|
209
|
+
|
|
210
|
+
<tr>
|
|
211
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoStreamType](https://write.woa.com/document/87029873782558720)</td>
|
|
212
|
+
|
|
213
|
+
<td rowspan="1" colSpan="1" >Video stream type</td>
|
|
214
|
+
</tr>
|
|
215
|
+
|
|
216
|
+
<tr>
|
|
217
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoFillMode](https://write.woa.com/document/87029873782558720)</td>
|
|
218
|
+
|
|
219
|
+
<td rowspan="1" colSpan="1" >Video fill mode</td>
|
|
220
|
+
</tr>
|
|
221
|
+
|
|
222
|
+
<tr>
|
|
223
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoRotation](https://write.woa.com/document/87029873782558720)</td>
|
|
224
|
+
|
|
225
|
+
<td rowspan="1" colSpan="1" >Video rotation direction</td>
|
|
226
|
+
</tr>
|
|
227
|
+
|
|
228
|
+
<tr>
|
|
229
|
+
<td rowspan="1" colSpan="1" >[TRTCBeautyStyle](https://write.woa.com/document/87029873782558720)</td>
|
|
230
|
+
|
|
231
|
+
<td rowspan="1" colSpan="1" >Beauty Filter (Skin Smoothing) algorithm</td>
|
|
232
|
+
</tr>
|
|
233
|
+
|
|
234
|
+
<tr>
|
|
235
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoPixelFormat](https://write.woa.com/document/87029873782558720)</td>
|
|
236
|
+
|
|
237
|
+
<td rowspan="1" colSpan="1" >Video pixel format</td>
|
|
238
|
+
</tr>
|
|
239
|
+
|
|
240
|
+
<tr>
|
|
241
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoBufferType](https://write.woa.com/document/87029873782558720)</td>
|
|
242
|
+
|
|
243
|
+
<td rowspan="1" colSpan="1" >Video data transfer method</td>
|
|
244
|
+
</tr>
|
|
245
|
+
|
|
246
|
+
<tr>
|
|
247
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoMirrorType](https://write.woa.com/document/87029873782558720)</td>
|
|
248
|
+
|
|
249
|
+
<td rowspan="1" colSpan="1" >Video mirroring type</td>
|
|
250
|
+
</tr>
|
|
251
|
+
|
|
252
|
+
<tr>
|
|
253
|
+
<td rowspan="1" colSpan="1" >[TRTCSnapshotSourceType](https://write.woa.com/document/87029873782558720)</td>
|
|
254
|
+
|
|
255
|
+
<td rowspan="1" colSpan="1" >Data source for local video screenshot</td>
|
|
256
|
+
</tr>
|
|
257
|
+
|
|
258
|
+
<tr>
|
|
259
|
+
<td rowspan="1" colSpan="1" >[TRTCAppScene](https://write.woa.com/document/87029873782558720)</td>
|
|
260
|
+
|
|
261
|
+
<td rowspan="1" colSpan="1" >Use Cases</td>
|
|
262
|
+
</tr>
|
|
263
|
+
|
|
264
|
+
<tr>
|
|
265
|
+
<td rowspan="1" colSpan="1" >[TRTCRoleType](https://write.woa.com/document/87029873782558720)</td>
|
|
266
|
+
|
|
267
|
+
<td rowspan="1" colSpan="1" >Roles</td>
|
|
268
|
+
</tr>
|
|
269
|
+
|
|
270
|
+
<tr>
|
|
271
|
+
<td rowspan="1" colSpan="1" >[TRTCQosControlMode](https://write.woa.com/document/87029873782558720)</td>
|
|
272
|
+
|
|
273
|
+
<td rowspan="1" colSpan="1" >Traffic control mode (deprecated)</td>
|
|
274
|
+
</tr>
|
|
275
|
+
|
|
276
|
+
<tr>
|
|
277
|
+
<td rowspan="1" colSpan="1" >[TRTCVideoQosPreference](https://write.woa.com/document/87029873782558720)</td>
|
|
278
|
+
|
|
279
|
+
<td rowspan="1" colSpan="1" >Image quality preference</td>
|
|
280
|
+
</tr>
|
|
281
|
+
|
|
282
|
+
<tr>
|
|
283
|
+
<td rowspan="1" colSpan="1" >[TRTCQuality](https://write.woa.com/document/87029873782558720)</td>
|
|
284
|
+
|
|
285
|
+
<td rowspan="1" colSpan="1" >Network quality</td>
|
|
286
|
+
</tr>
|
|
287
|
+
|
|
288
|
+
<tr>
|
|
289
|
+
<td rowspan="1" colSpan="1" >[TRTCAVStatusType](https://write.woa.com/document/87029873782558720)</td>
|
|
290
|
+
|
|
291
|
+
<td rowspan="1" colSpan="1" >Audio/Video status type</td>
|
|
292
|
+
</tr>
|
|
293
|
+
|
|
294
|
+
<tr>
|
|
295
|
+
<td rowspan="1" colSpan="1" >[TRTCAVStatusChangeReason](https://write.woa.com/document/87029873782558720)</td>
|
|
296
|
+
|
|
297
|
+
<td rowspan="1" colSpan="1" >Audio/Video status change reason type</td>
|
|
298
|
+
</tr>
|
|
299
|
+
|
|
300
|
+
<tr>
|
|
301
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioSampleRate](https://write.woa.com/document/87029873782558720)</td>
|
|
302
|
+
|
|
303
|
+
<td rowspan="1" colSpan="1" >Audio sample rate</td>
|
|
304
|
+
</tr>
|
|
305
|
+
|
|
306
|
+
<tr>
|
|
307
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioQuality](https://write.woa.com/document/87029873782558720)</td>
|
|
308
|
+
|
|
309
|
+
<td rowspan="1" colSpan="1" >Sound quality</td>
|
|
310
|
+
</tr>
|
|
311
|
+
|
|
312
|
+
<tr>
|
|
313
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioRoute](https://write.woa.com/document/87029873782558720)</td>
|
|
314
|
+
|
|
315
|
+
<td rowspan="1" colSpan="1" >Audio routing (i.e., the sound playback mode)</td>
|
|
316
|
+
</tr>
|
|
317
|
+
|
|
318
|
+
<tr>
|
|
319
|
+
<td rowspan="1" colSpan="1" >[TRTCReverbType](https://write.woa.com/document/87029873782558720)</td>
|
|
320
|
+
|
|
321
|
+
<td rowspan="1" colSpan="1" >Sound Reverb Mode</td>
|
|
322
|
+
</tr>
|
|
323
|
+
|
|
324
|
+
<tr>
|
|
325
|
+
<td rowspan="1" colSpan="1" >[TRTCVoiceChangerType](https://write.woa.com/document/87029873782558720)</td>
|
|
326
|
+
|
|
327
|
+
<td rowspan="1" colSpan="1" >Voice Changing Type</td>
|
|
328
|
+
</tr>
|
|
329
|
+
|
|
330
|
+
<tr>
|
|
331
|
+
<td rowspan="1" colSpan="1" >[TRTCSystemVolumeType](https://write.woa.com/document/87029873782558720)</td>
|
|
332
|
+
|
|
333
|
+
<td rowspan="1" colSpan="1" >System Volume Type (Only applicable to mobile devices)</td>
|
|
334
|
+
</tr>
|
|
335
|
+
|
|
336
|
+
<tr>
|
|
337
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioFrameOperationMode](https://write.woa.com/document/87029873782558720)</td>
|
|
338
|
+
|
|
339
|
+
<td rowspan="1" colSpan="1" >Audio Callback Data Read/Write Mode</td>
|
|
340
|
+
</tr>
|
|
341
|
+
|
|
342
|
+
<tr>
|
|
343
|
+
<td rowspan="1" colSpan="1" >[TRTCLogLevel](https://write.woa.com/document/87029873782558720)</td>
|
|
344
|
+
|
|
345
|
+
<td rowspan="1" colSpan="1" >Log Level</td>
|
|
346
|
+
</tr>
|
|
347
|
+
|
|
348
|
+
<tr>
|
|
349
|
+
<td rowspan="1" colSpan="1" >[TRTCGSensorMode](https://write.woa.com/document/87029873782558720)</td>
|
|
350
|
+
|
|
351
|
+
<td rowspan="1" colSpan="1" >Gravity Sensor Switch (Only applicable to mobile devices)</td>
|
|
352
|
+
</tr>
|
|
353
|
+
|
|
354
|
+
<tr>
|
|
355
|
+
<td rowspan="1" colSpan="1" >[TRTCScreenCaptureSourceType](https://write.woa.com/document/87029873782558720)</td>
|
|
356
|
+
|
|
357
|
+
<td rowspan="1" colSpan="1" >Target Type for Screen Sharing (Only applicable to desktop devices)</td>
|
|
358
|
+
</tr>
|
|
359
|
+
|
|
360
|
+
<tr>
|
|
361
|
+
<td rowspan="1" colSpan="1" >[TRTCTranscodingConfigMode](https://write.woa.com/document/87029873782558720)</td>
|
|
362
|
+
|
|
363
|
+
<td rowspan="1" colSpan="1" >Layout Mode for Cloud Mixed Streaming</td>
|
|
364
|
+
</tr>
|
|
365
|
+
|
|
366
|
+
<tr>
|
|
367
|
+
<td rowspan="1" colSpan="1" >[TRTCRecordType](https://write.woa.com/document/87029873782558720)</td>
|
|
368
|
+
|
|
369
|
+
<td rowspan="1" colSpan="1" >Media Recording Type</td>
|
|
370
|
+
</tr>
|
|
371
|
+
|
|
372
|
+
<tr>
|
|
373
|
+
<td rowspan="1" colSpan="1" >[TRTCMixInputType](https://write.woa.com/document/87029873782558720)</td>
|
|
374
|
+
|
|
375
|
+
<td rowspan="1" colSpan="1" >Mixed Streaming Input Type</td>
|
|
376
|
+
</tr>
|
|
377
|
+
|
|
378
|
+
<tr>
|
|
379
|
+
<td rowspan="1" colSpan="1" >[TRTCAudioRecordingContent](https://write.woa.com/document/87029873782558720)</td>
|
|
380
|
+
|
|
381
|
+
<td rowspan="1" colSpan="1" >Audio Recording Content Type</td>
|
|
382
|
+
</tr>
|
|
383
|
+
|
|
384
|
+
<tr>
|
|
385
|
+
<td rowspan="1" colSpan="1" >[TRTCPublishMode](https://write.woa.com/document/87029873782558720)</td>
|
|
386
|
+
|
|
387
|
+
<td rowspan="1" colSpan="1" >Media Stream Publication Mode</td>
|
|
388
|
+
</tr>
|
|
389
|
+
|
|
390
|
+
<tr>
|
|
391
|
+
<td rowspan="1" colSpan="1" >[TRTCEncryptionAlgorithm](https://write.woa.com/document/87029873782558720)</td>
|
|
392
|
+
|
|
393
|
+
<td rowspan="1" colSpan="1" >Encryption Algorithm</td>
|
|
394
|
+
</tr>
|
|
395
|
+
|
|
396
|
+
<tr>
|
|
397
|
+
<td rowspan="1" colSpan="1" >[TRTCSpeedTestScene](https://write.woa.com/document/87029873782558720)</td>
|
|
398
|
+
|
|
399
|
+
<td rowspan="1" colSpan="1" >Speed Test Scenario</td>
|
|
400
|
+
</tr>
|
|
401
|
+
|
|
402
|
+
<tr>
|
|
403
|
+
<td rowspan="1" colSpan="1" >[TRTCGravitySensorAdaptiveMode](https://write.woa.com/document/87029873782558720)</td>
|
|
404
|
+
|
|
405
|
+
<td rowspan="1" colSpan="1" >Set Adaptation Mode for Gravity Sensor (Only applicable to mobile devices)</td>
|
|
406
|
+
</tr>
|
|
407
|
+
</table>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
## TRTCVideoResolution
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
#### Video Resolution
|
|
415
|
+
|
|
416
|
+
Only Definition is in landscape resolution (e.g., 640 × 360). To use portrait resolution (e.g., 360 × 640), you also need to set TRTCVideoResolutionMode to Portrait.
|
|
417
|
+
<table>
|
|
418
|
+
<tr>
|
|
419
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
420
|
+
|
|
421
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
422
|
+
|
|
423
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
424
|
+
</tr>
|
|
425
|
+
|
|
426
|
+
<tr>
|
|
427
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_120_120</td>
|
|
428
|
+
|
|
429
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
430
|
+
|
|
431
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 1:1; Resolution 120x120; Suggested Bitrate (VideoCall) 80kbps; Suggested Bitrate (LIVE) 120kbps.</td>
|
|
432
|
+
</tr>
|
|
433
|
+
|
|
434
|
+
<tr>
|
|
435
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_160_160</td>
|
|
436
|
+
|
|
437
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
438
|
+
|
|
439
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 1:1; Resolution 160x160; Suggested Bitrate (VideoCall) 100kbps; Suggested Bitrate (LIVE) 150kbps.</td>
|
|
440
|
+
</tr>
|
|
441
|
+
|
|
442
|
+
<tr>
|
|
443
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_270_270</td>
|
|
444
|
+
|
|
445
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
446
|
+
|
|
447
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 1:1; Resolution 270x270; Suggested Bitrate (VideoCall) 200kbps; Suggested Bitrate (LIVE) 300kbps.</td>
|
|
448
|
+
</tr>
|
|
449
|
+
|
|
450
|
+
<tr>
|
|
451
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_480_480</td>
|
|
452
|
+
|
|
453
|
+
<td rowspan="1" colSpan="1" >7</td>
|
|
454
|
+
|
|
455
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 1:1; Resolution 480x480; Suggested Bitrate (VideoCall) 350kbps; Suggested Bitrate (LIVE) 500kbps.</td>
|
|
456
|
+
</tr>
|
|
457
|
+
|
|
458
|
+
<tr>
|
|
459
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_160_120</td>
|
|
460
|
+
|
|
461
|
+
<td rowspan="1" colSpan="1" >50</td>
|
|
462
|
+
|
|
463
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 160x120; Suggested Bitrate (VideoCall) 100kbps; Suggested Bitrate (LIVE) 150kbps.</td>
|
|
464
|
+
</tr>
|
|
465
|
+
|
|
466
|
+
<tr>
|
|
467
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_240_180</td>
|
|
468
|
+
|
|
469
|
+
<td rowspan="1" colSpan="1" >52</td>
|
|
470
|
+
|
|
471
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 240x180; Suggested Bitrate (VideoCall) 150kbps; Suggested Bitrate (LIVE) 250kbps.</td>
|
|
472
|
+
</tr>
|
|
473
|
+
|
|
474
|
+
<tr>
|
|
475
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_280_210</td>
|
|
476
|
+
|
|
477
|
+
<td rowspan="1" colSpan="1" >54</td>
|
|
478
|
+
|
|
479
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 280x210; Suggested Bitrate (VideoCall) 200kbps; Suggested Bitrate (LIVE) 300kbps.</td>
|
|
480
|
+
</tr>
|
|
481
|
+
|
|
482
|
+
<tr>
|
|
483
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_320_240</td>
|
|
484
|
+
|
|
485
|
+
<td rowspan="1" colSpan="1" >56</td>
|
|
486
|
+
|
|
487
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 320x240; Suggested Bitrate (VideoCall) 250kbps; Suggested Bitrate (LIVE) 375kbps.</td>
|
|
488
|
+
</tr>
|
|
489
|
+
|
|
490
|
+
<tr>
|
|
491
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_400_300</td>
|
|
492
|
+
|
|
493
|
+
<td rowspan="1" colSpan="1" >58</td>
|
|
494
|
+
|
|
495
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 400x300; Suggested Bitrate (VideoCall) 300kbps; Suggested Bitrate (LIVE) 450kbps.</td>
|
|
496
|
+
</tr>
|
|
497
|
+
|
|
498
|
+
<tr>
|
|
499
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_480_360</td>
|
|
500
|
+
|
|
501
|
+
<td rowspan="1" colSpan="1" >60</td>
|
|
502
|
+
|
|
503
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 480x360; Suggested Bitrate (VideoCall) 400kbps; Suggested Bitrate (LIVE) 600kbps.</td>
|
|
504
|
+
</tr>
|
|
505
|
+
|
|
506
|
+
<tr>
|
|
507
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_640_480</td>
|
|
508
|
+
|
|
509
|
+
<td rowspan="1" colSpan="1" >62</td>
|
|
510
|
+
|
|
511
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 640x480; Suggested Bitrate (VideoCall) 600kbps; Suggested Bitrate (LIVE) 900kbps.</td>
|
|
512
|
+
</tr>
|
|
513
|
+
|
|
514
|
+
<tr>
|
|
515
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_960_720</td>
|
|
516
|
+
|
|
517
|
+
<td rowspan="1" colSpan="1" >64</td>
|
|
518
|
+
|
|
519
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 4:3; Resolution 960x720; Suggested Bitrate (VideoCall) 1000kbps; Suggested Bitrate (LIVE) 1500kbps.</td>
|
|
520
|
+
</tr>
|
|
521
|
+
|
|
522
|
+
<tr>
|
|
523
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_160_90</td>
|
|
524
|
+
|
|
525
|
+
<td rowspan="1" colSpan="1" >100</td>
|
|
526
|
+
|
|
527
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 160x90; Suggested Bitrate (VideoCall) 150kbps; Suggested Bitrate (LIVE) 250kbps.</td>
|
|
528
|
+
</tr>
|
|
529
|
+
|
|
530
|
+
<tr>
|
|
531
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_256_144</td>
|
|
532
|
+
|
|
533
|
+
<td rowspan="1" colSpan="1" >102</td>
|
|
534
|
+
|
|
535
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 256x144; Suggested Bitrate (VideoCall) 200kbps; Suggested Bitrate (LIVE) 300kbps.</td>
|
|
536
|
+
</tr>
|
|
537
|
+
|
|
538
|
+
<tr>
|
|
539
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_320_180</td>
|
|
540
|
+
|
|
541
|
+
<td rowspan="1" colSpan="1" >104</td>
|
|
542
|
+
|
|
543
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 320x180; Suggested Bitrate (VideoCall) 250kbps; Suggested Bitrate (LIVE) 400kbps.</td>
|
|
544
|
+
</tr>
|
|
545
|
+
|
|
546
|
+
<tr>
|
|
547
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_480_270</td>
|
|
548
|
+
|
|
549
|
+
<td rowspan="1" colSpan="1" >106</td>
|
|
550
|
+
|
|
551
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 480x270; Suggested Bitrate (VideoCall) 350kbps; Suggested Bitrate (LIVE) 550kbps.</td>
|
|
552
|
+
</tr>
|
|
553
|
+
|
|
554
|
+
<tr>
|
|
555
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_640_360</td>
|
|
556
|
+
|
|
557
|
+
<td rowspan="1" colSpan="1" >108</td>
|
|
558
|
+
|
|
559
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 640x360; Suggested Bitrate (VideoCall) 500kbps; Suggested Bitrate (LIVE) 900kbps.</td>
|
|
560
|
+
</tr>
|
|
561
|
+
|
|
562
|
+
<tr>
|
|
563
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_960_540</td>
|
|
564
|
+
|
|
565
|
+
<td rowspan="1" colSpan="1" >110</td>
|
|
566
|
+
|
|
567
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 960x540; Suggested Bitrate (VideoCall) 850kbps; Suggested Bitrate (LIVE) 1300kbps.</td>
|
|
568
|
+
</tr>
|
|
569
|
+
|
|
570
|
+
<tr>
|
|
571
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_1280_720</td>
|
|
572
|
+
|
|
573
|
+
<td rowspan="1" colSpan="1" >112</td>
|
|
574
|
+
|
|
575
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 1280x720; Suggested Bitrate (VideoCall) 1200kbps; Suggested Bitrate (LIVE) 1800kbps.</td>
|
|
576
|
+
</tr>
|
|
577
|
+
|
|
578
|
+
<tr>
|
|
579
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolution_1920_1080</td>
|
|
580
|
+
|
|
581
|
+
<td rowspan="1" colSpan="1" >114</td>
|
|
582
|
+
|
|
583
|
+
<td rowspan="1" colSpan="1" >Aspect Ratio 16:9; Resolution 1920x1080; Suggested Bitrate (VideoCall) 2000kbps; Suggested Bitrate (LIVE) 3000kbps.</td>
|
|
584
|
+
</tr>
|
|
585
|
+
</table>
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
## TRTCVideoResolutionMode
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
#### Video aspect ratio mode
|
|
593
|
+
|
|
594
|
+
In TRTCVideoResolution, only landscape resolution (e.g., 640 × 360) is defined. To use portrait resolution (e.g., 360 × 640), you also need to set TRTCVideoResolutionMode to Portrait.
|
|
595
|
+
<table>
|
|
596
|
+
<tr>
|
|
597
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
598
|
+
|
|
599
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
600
|
+
|
|
601
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
602
|
+
</tr>
|
|
603
|
+
|
|
604
|
+
<tr>
|
|
605
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolutionModeLandscape</td>
|
|
606
|
+
|
|
607
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
608
|
+
|
|
609
|
+
<td rowspan="1" colSpan="1" >Landscape resolution, e.g., TRTCVideoResolution_640_360 + TRTCVideoResolutionModeLandscape = 640 × 360.</td>
|
|
610
|
+
</tr>
|
|
611
|
+
|
|
612
|
+
<tr>
|
|
613
|
+
<td rowspan="1" colSpan="1" >TRTCVideoResolutionModePortrait</td>
|
|
614
|
+
|
|
615
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
616
|
+
|
|
617
|
+
<td rowspan="1" colSpan="1" >Portrait resolution, e.g., TRTCVideoResolution_640_360 + TRTCVideoResolutionModePortrait = 360 × 640.</td>
|
|
618
|
+
</tr>
|
|
619
|
+
</table>
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
## TRTCVideoStreamType
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
#### Video stream type
|
|
627
|
+
|
|
628
|
+
There are three different video streams in TRTC:
|
|
629
|
+
- HD large screen: Generally used for transmitting video data from the camera.
|
|
630
|
+
|
|
631
|
+
- Low-definition small picture: The content of the small picture is the same as the large picture, but the resolution and bitrate are lower than those of the large picture, resulting in lower clarity.
|
|
632
|
+
|
|
633
|
+
- Auxiliary stream picture: Generally used for screen sharing. Only one user can publish auxiliary stream video in the same room at the same time. Other users must wait until the current user stops before they can publish their own auxiliary stream.
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
> **Note**
|
|
637
|
+
>
|
|
638
|
+
|
|
639
|
+
> Low-definition small picture cannot be enabled independently. The small picture must rely on the large picture, and the SDK will automatically set the resolution and bitrate of the low-definition small picture.
|
|
640
|
+
>
|
|
641
|
+
|
|
642
|
+
<table>
|
|
643
|
+
<tr>
|
|
644
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
645
|
+
|
|
646
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
647
|
+
|
|
648
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
649
|
+
</tr>
|
|
650
|
+
|
|
651
|
+
<tr>
|
|
652
|
+
<td rowspan="1" colSpan="1" >TRTCVideoStreamTypeBig</td>
|
|
653
|
+
|
|
654
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
655
|
+
|
|
656
|
+
<td rowspan="1" colSpan="1" >HD large screen: Generally used for transmitting video data from the camera.</td>
|
|
657
|
+
</tr>
|
|
658
|
+
|
|
659
|
+
<tr>
|
|
660
|
+
<td rowspan="1" colSpan="1" >TRTCVideoStreamTypeSmall</td>
|
|
661
|
+
|
|
662
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
663
|
+
|
|
664
|
+
<td rowspan="1" colSpan="1" >Low-definition small picture: The content of the small picture is the same as the large picture, but the resolution and bitrate are lower than those of the large picture, resulting in lower clarity.</td>
|
|
665
|
+
</tr>
|
|
666
|
+
|
|
667
|
+
<tr>
|
|
668
|
+
<td rowspan="1" colSpan="1" >TRTCVideoStreamTypeSub</td>
|
|
669
|
+
|
|
670
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
671
|
+
|
|
672
|
+
<td rowspan="1" colSpan="1" >Auxiliary stream picture: Generally used for screen sharing. Only one user can publish auxiliary stream video in the same room at the same time. Other users must wait until the current user stops before they can publish their own auxiliary stream.</td>
|
|
673
|
+
</tr>
|
|
674
|
+
</table>
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
## TRTCVideoFillMode
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
#### Video fill mode
|
|
682
|
+
|
|
683
|
+
When the aspect ratio of the video display area is not equal to the aspect ratio of the video content, you need to specify the fill mode.
|
|
684
|
+
<table>
|
|
685
|
+
<tr>
|
|
686
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
687
|
+
|
|
688
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
689
|
+
|
|
690
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
691
|
+
</tr>
|
|
692
|
+
|
|
693
|
+
<tr>
|
|
694
|
+
<td rowspan="1" colSpan="1" >TRTCVideoFillMode_Fill</td>
|
|
695
|
+
|
|
696
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
697
|
+
|
|
698
|
+
<td rowspan="1" colSpan="1" >Fill mode: The content is scaled to fill the entire display area while maintaining the aspect ratio. The parts that exceed the display area will be cropped, so the image may be incomplete.</td>
|
|
699
|
+
</tr>
|
|
700
|
+
|
|
701
|
+
<tr>
|
|
702
|
+
<td rowspan="1" colSpan="1" >TRTCVideoFillMode_Fit</td>
|
|
703
|
+
|
|
704
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
705
|
+
|
|
706
|
+
<td rowspan="1" colSpan="1" >Adaptive mode: The image is scaled according to the long side to fit the display area. The short sides will be filled with black bars, so the image will be complete but may have black bars.</td>
|
|
707
|
+
</tr>
|
|
708
|
+
</table>
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
## TRTCVideoRotation
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
#### Video rotation direction
|
|
716
|
+
|
|
717
|
+
TRTC provides APIs for setting the rotation angle of local and remote video. The angles listed below are in a clockwise direction.
|
|
718
|
+
<table>
|
|
719
|
+
<tr>
|
|
720
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
721
|
+
|
|
722
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
723
|
+
|
|
724
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
725
|
+
</tr>
|
|
726
|
+
|
|
727
|
+
<tr>
|
|
728
|
+
<td rowspan="1" colSpan="1" >TRTCVideoRotation_0</td>
|
|
729
|
+
|
|
730
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
731
|
+
|
|
732
|
+
<td rowspan="1" colSpan="1" >No rotation.</td>
|
|
733
|
+
</tr>
|
|
734
|
+
|
|
735
|
+
<tr>
|
|
736
|
+
<td rowspan="1" colSpan="1" >TRTCVideoRotation_90</td>
|
|
737
|
+
|
|
738
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
739
|
+
|
|
740
|
+
<td rowspan="1" colSpan="1" >Rotate clockwise by 90 degrees.</td>
|
|
741
|
+
</tr>
|
|
742
|
+
|
|
743
|
+
<tr>
|
|
744
|
+
<td rowspan="1" colSpan="1" >TRTCVideoRotation_180</td>
|
|
745
|
+
|
|
746
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
747
|
+
|
|
748
|
+
<td rowspan="1" colSpan="1" >Rotate clockwise by 180 degrees.</td>
|
|
749
|
+
</tr>
|
|
750
|
+
|
|
751
|
+
<tr>
|
|
752
|
+
<td rowspan="1" colSpan="1" >TRTCVideoRotation_270</td>
|
|
753
|
+
|
|
754
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
755
|
+
|
|
756
|
+
<td rowspan="1" colSpan="1" >Rotate clockwise by 270 degrees.</td>
|
|
757
|
+
</tr>
|
|
758
|
+
</table>
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
## TRTCBeautyStyle
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
#### Beauty Filter (Skin Smoothing) algorithm
|
|
766
|
+
|
|
767
|
+
TRTC offers various skin smoothing algorithms. You can choose the one that best fits your product positioning.
|
|
768
|
+
<table>
|
|
769
|
+
<tr>
|
|
770
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
771
|
+
|
|
772
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
773
|
+
|
|
774
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
775
|
+
</tr>
|
|
776
|
+
|
|
777
|
+
<tr>
|
|
778
|
+
<td rowspan="1" colSpan="1" >TRTCBeautyStyleSmooth</td>
|
|
779
|
+
|
|
780
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
781
|
+
|
|
782
|
+
<td rowspan="1" colSpan="1" >Smooth: This aggressive algorithm results in a more pronounced skin smoothing effect, suitable for show live streaming.</td>
|
|
783
|
+
</tr>
|
|
784
|
+
|
|
785
|
+
<tr>
|
|
786
|
+
<td rowspan="1" colSpan="1" >TRTCBeautyStyleNature</td>
|
|
787
|
+
|
|
788
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
789
|
+
|
|
790
|
+
<td rowspan="1" colSpan="1" >Natural: This algorithm retains more facial details, resulting in a more natural smoothing effect, suitable for most live streaming scenarios.</td>
|
|
791
|
+
</tr>
|
|
792
|
+
|
|
793
|
+
<tr>
|
|
794
|
+
<td rowspan="1" colSpan="1" >TRTCBeautyStylePitu</td>
|
|
795
|
+
|
|
796
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
797
|
+
|
|
798
|
+
<td rowspan="1" colSpan="1" >YouTu: Provided by YouTu Laboratory, this algorithm balances between smooth and natural, retaining more skin details than smooth and providing more smoothing than natural.</td>
|
|
799
|
+
</tr>
|
|
800
|
+
</table>
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
## TRTCVideoPixelFormat
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
#### Video pixel format
|
|
808
|
+
|
|
809
|
+
TRTC provides custom data collection and custom rendering features for video:
|
|
810
|
+
- In the custom data collection feature, you can use the following enumeration values to describe the pixel format of your captured video.
|
|
811
|
+
|
|
812
|
+
- In the custom rendering feature, you can specify the pixel format you expect the SDK to call back.
|
|
813
|
+
|
|
814
|
+
<table>
|
|
815
|
+
<tr>
|
|
816
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
817
|
+
|
|
818
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
819
|
+
|
|
820
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
821
|
+
</tr>
|
|
822
|
+
|
|
823
|
+
<tr>
|
|
824
|
+
<td rowspan="1" colSpan="1" >TRTCVideoPixelFormat_Unknown</td>
|
|
825
|
+
|
|
826
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
827
|
+
|
|
828
|
+
<td rowspan="1" colSpan="1" >Undefined format.</td>
|
|
829
|
+
</tr>
|
|
830
|
+
|
|
831
|
+
<tr>
|
|
832
|
+
<td rowspan="1" colSpan="1" >TRTCVideoPixelFormat_I420</td>
|
|
833
|
+
|
|
834
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
835
|
+
|
|
836
|
+
<td rowspan="1" colSpan="1" >YUV420P (I420) format.</td>
|
|
837
|
+
</tr>
|
|
838
|
+
|
|
839
|
+
<tr>
|
|
840
|
+
<td rowspan="1" colSpan="1" >TRTCVideoPixelFormat_Texture_2D</td>
|
|
841
|
+
|
|
842
|
+
<td rowspan="1" colSpan="1" >7</td>
|
|
843
|
+
|
|
844
|
+
<td rowspan="1" colSpan="1" >OpenGL 2D texture format.</td>
|
|
845
|
+
</tr>
|
|
846
|
+
|
|
847
|
+
<tr>
|
|
848
|
+
<td rowspan="1" colSpan="1" >TRTCVideoPixelFormat_32BGRA</td>
|
|
849
|
+
|
|
850
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
851
|
+
|
|
852
|
+
<td rowspan="1" colSpan="1" >BGRA format</td>
|
|
853
|
+
</tr>
|
|
854
|
+
|
|
855
|
+
<tr>
|
|
856
|
+
<td rowspan="1" colSpan="1" >TRTCVideoPixelFormat_NV12</td>
|
|
857
|
+
|
|
858
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
859
|
+
|
|
860
|
+
<td rowspan="1" colSpan="1" >YUV420SP (NV12) format.</td>
|
|
861
|
+
</tr>
|
|
862
|
+
</table>
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
## TRTCVideoBufferType
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
#### Video data transfer method
|
|
870
|
+
|
|
871
|
+
In custom data collection and custom rendering features, you need to use the following enumerated values to specify how you want to transmit video data:
|
|
872
|
+
- Option 1: Transmit video data using Memory Buffer. This method is efficient on iOS, but less efficient on Android, and Windows currently only supports Memory Buffer transmission.
|
|
873
|
+
|
|
874
|
+
- Option 2: Transmit video data using Texture. This method is highly efficient on both iOS and Android, but not supported on Windows. A certain level of OpenGL programming knowledge is required.
|
|
875
|
+
|
|
876
|
+
<table>
|
|
877
|
+
<tr>
|
|
878
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
879
|
+
|
|
880
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
881
|
+
|
|
882
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
883
|
+
</tr>
|
|
884
|
+
|
|
885
|
+
<tr>
|
|
886
|
+
<td rowspan="1" colSpan="1" >TRTCVideoBufferType_Unknown</td>
|
|
887
|
+
|
|
888
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
889
|
+
|
|
890
|
+
<td rowspan="1" colSpan="1" >Undefined transmission method.</td>
|
|
891
|
+
</tr>
|
|
892
|
+
|
|
893
|
+
<tr>
|
|
894
|
+
<td rowspan="1" colSpan="1" >TRTCVideoBufferType_PixelBuffer</td>
|
|
895
|
+
|
|
896
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
897
|
+
|
|
898
|
+
<td rowspan="1" colSpan="1" >Transmit video data using Memory Buffer, iOS: PixelBuffer; Android: Direct Buffer for JNI layer; Win: Memory Data Block.</td>
|
|
899
|
+
</tr>
|
|
900
|
+
|
|
901
|
+
<tr>
|
|
902
|
+
<td rowspan="1" colSpan="1" >TRTCVideoBufferType_NSData</td>
|
|
903
|
+
|
|
904
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
905
|
+
|
|
906
|
+
<td rowspan="1" colSpan="1" >Transmit video data using Memory Buffer, iOS: More compact NSData type memory block after an extra rearrangement; Android: byte[] for JAVA layer.<br>This transmission method is the least efficient of all the options.</td>
|
|
907
|
+
</tr>
|
|
908
|
+
|
|
909
|
+
<tr>
|
|
910
|
+
<td rowspan="1" colSpan="1" >TRTCVideoBufferType_Texture</td>
|
|
911
|
+
|
|
912
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
913
|
+
|
|
914
|
+
<td rowspan="1" colSpan="1" >Transmit video data using OpenGL texture.</td>
|
|
915
|
+
</tr>
|
|
916
|
+
</table>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
## TRTCVideoMirrorType
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
#### Video mirroring type
|
|
924
|
+
|
|
925
|
+
Video mirroring refers to flipping the video content horizontally, especially for the local camera preview video. Enabling mirroring can provide the host with a familiar "mirror" experience.
|
|
926
|
+
<table>
|
|
927
|
+
<tr>
|
|
928
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
929
|
+
|
|
930
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
931
|
+
|
|
932
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
933
|
+
</tr>
|
|
934
|
+
|
|
935
|
+
<tr>
|
|
936
|
+
<td rowspan="1" colSpan="1" >TRTCVideoMirrorTypeAuto</td>
|
|
937
|
+
|
|
938
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
939
|
+
|
|
940
|
+
<td rowspan="1" colSpan="1" >Automatic Mode: If using the front-facing camera, enable mirroring; if using the rear-facing camera, disable mirroring (only applicable to mobile devices).</td>
|
|
941
|
+
</tr>
|
|
942
|
+
|
|
943
|
+
<tr>
|
|
944
|
+
<td rowspan="1" colSpan="1" >TRTCVideoMirrorTypeEnable</td>
|
|
945
|
+
|
|
946
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
947
|
+
|
|
948
|
+
<td rowspan="1" colSpan="1" >Force On mirroring, regardless of whether the current camera is front-facing or rear-facing.</td>
|
|
949
|
+
</tr>
|
|
950
|
+
|
|
951
|
+
<tr>
|
|
952
|
+
<td rowspan="1" colSpan="1" >TRTCVideoMirrorTypeDisable</td>
|
|
953
|
+
|
|
954
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
955
|
+
|
|
956
|
+
<td rowspan="1" colSpan="1" >Force Off mirroring, regardless of whether the current camera is front-facing or rear-facing.</td>
|
|
957
|
+
</tr>
|
|
958
|
+
</table>
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
## TRTCSnapshotSourceType
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
#### Data source for local video screenshot
|
|
966
|
+
|
|
967
|
+
The SDK supports capturing images from the following two data sources and saving them as local files:
|
|
968
|
+
- Video Stream: Capture native video content from the video stream. The captured content is not controlled by the rendering controls.
|
|
969
|
+
|
|
970
|
+
- Rendering Layer: Capture the displayed video content from the rendering controls, achieving a What You See Is What You Get (WYSIWYG) effect. However, if the display area is too small, the captured image will also be small.
|
|
971
|
+
|
|
972
|
+
- Capture Layer: Capture the video content collected by the capture controls, allowing for the extraction of high-definition screenshots.
|
|
973
|
+
|
|
974
|
+
<table>
|
|
975
|
+
<tr>
|
|
976
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
977
|
+
|
|
978
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
979
|
+
|
|
980
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
981
|
+
</tr>
|
|
982
|
+
|
|
983
|
+
<tr>
|
|
984
|
+
<td rowspan="1" colSpan="1" >TRTCSnapshotSourceTypeStream</td>
|
|
985
|
+
|
|
986
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
987
|
+
|
|
988
|
+
<td rowspan="1" colSpan="1" >Capture native video content from the video stream. The captured content is not controlled by the rendering controls.</td>
|
|
989
|
+
</tr>
|
|
990
|
+
|
|
991
|
+
<tr>
|
|
992
|
+
<td rowspan="1" colSpan="1" >TRTCSnapshotSourceTypeView</td>
|
|
993
|
+
|
|
994
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
995
|
+
|
|
996
|
+
<td rowspan="1" colSpan="1" >Capture the displayed video content from the rendering controls, achieving a What You See Is What You Get (WYSIWYG) effect. However, if the display area is too small, the captured image will also be small.</td>
|
|
997
|
+
</tr>
|
|
998
|
+
|
|
999
|
+
<tr>
|
|
1000
|
+
<td rowspan="1" colSpan="1" >TRTCSnapshotSourceTypeCapture</td>
|
|
1001
|
+
|
|
1002
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1003
|
+
|
|
1004
|
+
<td rowspan="1" colSpan="1" >Capture the video content collected by the capture controls, allowing for the extraction of high-definition screenshots.</td>
|
|
1005
|
+
</tr>
|
|
1006
|
+
</table>
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
## TRTCAppScene
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
#### Use Cases
|
|
1014
|
+
|
|
1015
|
+
TRTC has optimized for common audio and video application scenarios to meet the differentiated requirements of various vertical scenarios. The main scenarios can be categorized into two types:
|
|
1016
|
+
- Live Streaming (LIVE) Scenario: Includes LIVE and VoiceChatRoom. The former is audio + video, while the latter is audio only.
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
In the live streaming scenario, users are divided into two roles: "Anchors" and "Audience." A single room can support up to 100,000 people online simultaneously, making it suitable for live streaming scenarios with a large audience.
|
|
1020
|
+
- Real-Time (RTC) Scenario: Includes VideoCall and AudioCall. The former is audio + video, while the latter is audio only.
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
In the real-time scenario, there is no role differentiation among users, but a single room can support up to 300 people online simultaneously, making it suitable for small-scale real-time communication.
|
|
1024
|
+
<table>
|
|
1025
|
+
<tr>
|
|
1026
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1027
|
+
|
|
1028
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1029
|
+
|
|
1030
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1031
|
+
</tr>
|
|
1032
|
+
|
|
1033
|
+
<tr>
|
|
1034
|
+
<td rowspan="1" colSpan="1" >TRTCAppSceneVideoCall</td>
|
|
1035
|
+
|
|
1036
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1037
|
+
|
|
1038
|
+
<td rowspan="1" colSpan="1" >Video call scenario, supports 720p and 1080p HD quality, each room can have up to 300 concurrent users, with a maximum of 50 users speaking simultaneously.<br>Applicable to [One-to-one video call], [300-person video conference], [Online consultation], [Educational small class], [Remote interview], and other business scenarios.</td>
|
|
1039
|
+
</tr>
|
|
1040
|
+
|
|
1041
|
+
<tr>
|
|
1042
|
+
<td rowspan="1" colSpan="1" >TRTCAppSceneLIVE</td>
|
|
1043
|
+
|
|
1044
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1045
|
+
|
|
1046
|
+
<td rowspan="1" colSpan="1" >Video interactive live streaming, supports smooth mic switching without waiting, anchor delay less than 300 ms; supports up to 100,000 concurrent viewers, with playback latency as low as 1,000 ms.<br>Applicable to [Low-latency interactive live streaming], [Large class], [Host PK], [Video blind dating], [Online interactive classroom], [Remote training], [Large-scale conferences], and other business scenarios.<br>**Note**<br>In this scenario, you must specify the current user's role through the role field in TRTCParams.<br></td>
|
|
1047
|
+
</tr>
|
|
1048
|
+
|
|
1049
|
+
<tr>
|
|
1050
|
+
<td rowspan="1" colSpan="1" >TRTCAppSceneAudioCall</td>
|
|
1051
|
+
|
|
1052
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1053
|
+
|
|
1054
|
+
<td rowspan="1" colSpan="1" >Voice call scenario, default uses SPEECH quality, each room can have up to 300 concurrent users, with a maximum of 50 users speaking simultaneously.<br>Applicable to [One-to-one voice call], [300-person voice conference], [Voice chat], [Voice conference], [Online Werewolf Game], and other business scenarios.</td>
|
|
1055
|
+
</tr>
|
|
1056
|
+
|
|
1057
|
+
<tr>
|
|
1058
|
+
<td rowspan="1" colSpan="1" >TRTCAppSceneVoiceChatRoom</td>
|
|
1059
|
+
|
|
1060
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1061
|
+
|
|
1062
|
+
<td rowspan="1" colSpan="1" >Voice interactive live streaming, supports smooth mic switching without waiting, anchor delay less than 300 ms; supports up to 100,000 concurrent viewers, with playback latency as low as 1,000 ms.<br>Applicable to [Voice club], [Online KTV room], [Music live broadcast room], [FM radio station], and other business scenarios.<br>**Note**<br>In this scenario, you must specify the current user's role through the role field in TRTCParams.<br></td>
|
|
1063
|
+
</tr>
|
|
1064
|
+
</table>
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
## TRTCRoleType
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
#### Roles
|
|
1072
|
+
|
|
1073
|
+
Only applicable to live streaming scenarios (i.e., TRTCAppSceneLIVE and TRTCAppSceneVoiceChatRoom), distinguishing users into two different identities:
|
|
1074
|
+
- Anchors: Can publish their own audio and video streams at any time, but the number of anchors is limited. A maximum of 50 anchors can publish their audio and video streams simultaneously in the same room.
|
|
1075
|
+
|
|
1076
|
+
- Audience: Can only watch other users' audio and video streams. To publish audio and video streams, they need to switch their role to anchor using [switchRole](https://write.woa.com/document/87029727163494400). A single room can accommodate up to 100,000 audience members.
|
|
1077
|
+
|
|
1078
|
+
<table>
|
|
1079
|
+
<tr>
|
|
1080
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1081
|
+
|
|
1082
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1083
|
+
|
|
1084
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1085
|
+
</tr>
|
|
1086
|
+
|
|
1087
|
+
<tr>
|
|
1088
|
+
<td rowspan="1" colSpan="1" >TRTCRoleAnchor</td>
|
|
1089
|
+
|
|
1090
|
+
<td rowspan="1" colSpan="1" >20</td>
|
|
1091
|
+
|
|
1092
|
+
<td rowspan="1" colSpan="1" >Anchors: Can publish their own audio and video streams at any time, but the number of anchors is limited. A maximum of 50 anchors can publish their audio and video streams simultaneously in the same room.</td>
|
|
1093
|
+
</tr>
|
|
1094
|
+
|
|
1095
|
+
<tr>
|
|
1096
|
+
<td rowspan="1" colSpan="1" >TRTCRoleAudience</td>
|
|
1097
|
+
|
|
1098
|
+
<td rowspan="1" colSpan="1" >21</td>
|
|
1099
|
+
|
|
1100
|
+
<td rowspan="1" colSpan="1" >Audience: Can only watch other users' audio and video streams. To publish audio and video streams, they need to switch their role to anchor using [switchRole](https://write.woa.com/document/87029727163494400). A single room can accommodate up to 100,000 audience members.</td>
|
|
1101
|
+
</tr>
|
|
1102
|
+
</table>
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
## TRTCQosControlMode(Deprecated)
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
#### Traffic control mode (deprecated)
|
|
1110
|
+
<table>
|
|
1111
|
+
<tr>
|
|
1112
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1113
|
+
|
|
1114
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1115
|
+
|
|
1116
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1117
|
+
</tr>
|
|
1118
|
+
|
|
1119
|
+
<tr>
|
|
1120
|
+
<td rowspan="1" colSpan="1" >TRTCQosControlModeClient</td>
|
|
1121
|
+
|
|
1122
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1123
|
+
|
|
1124
|
+
<td rowspan="1" colSpan="1" >Local Control, used for SDK development internal debugging, please do not use for customers.</td>
|
|
1125
|
+
</tr>
|
|
1126
|
+
|
|
1127
|
+
<tr>
|
|
1128
|
+
<td rowspan="1" colSpan="1" >TRTCQosControlModeServer</td>
|
|
1129
|
+
|
|
1130
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1131
|
+
|
|
1132
|
+
<td rowspan="1" colSpan="1" >Cloud Control, the default mode, is recommended.</td>
|
|
1133
|
+
</tr>
|
|
1134
|
+
</table>
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
## TRTCVideoQosPreference
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
#### Image quality preference
|
|
1142
|
+
|
|
1143
|
+
TRTC offers two adjustment modes under a weak network environment: "Prioritize Clear Picture" or "Prioritize Smooth Picture". Both modes will primarily ensure audio data transmission.
|
|
1144
|
+
<table>
|
|
1145
|
+
<tr>
|
|
1146
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1147
|
+
|
|
1148
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1149
|
+
|
|
1150
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1151
|
+
</tr>
|
|
1152
|
+
|
|
1153
|
+
<tr>
|
|
1154
|
+
<td rowspan="1" colSpan="1" >TRTCVideoQosPreferenceSmooth</td>
|
|
1155
|
+
|
|
1156
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1157
|
+
|
|
1158
|
+
<td rowspan="1" colSpan="1" >Smooth Priority: When the current network is insufficient to transmit both clear and smooth images, it prioritizes the smoothness of the picture, which results in a blurrier image with more mosaics.</td>
|
|
1159
|
+
</tr>
|
|
1160
|
+
|
|
1161
|
+
<tr>
|
|
1162
|
+
<td rowspan="1" colSpan="1" >TRTCVideoQosPreferenceClear</td>
|
|
1163
|
+
|
|
1164
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1165
|
+
|
|
1166
|
+
<td rowspan="1" colSpan="1" >Clarity Priority (default): When the current network is insufficient to transmit both clear and smooth images, it prioritizes the clarity of the picture, which results in more stuttering.</td>
|
|
1167
|
+
</tr>
|
|
1168
|
+
</table>
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
## TRTCQuality
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
#### Network quality
|
|
1176
|
+
|
|
1177
|
+
TRTC evaluates the current network quality every two seconds, with six evaluation levels: Excellent indicating the best, and Down indicating the worst.
|
|
1178
|
+
<table>
|
|
1179
|
+
<tr>
|
|
1180
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1181
|
+
|
|
1182
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1183
|
+
|
|
1184
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1185
|
+
</tr>
|
|
1186
|
+
|
|
1187
|
+
<tr>
|
|
1188
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Unknown</td>
|
|
1189
|
+
|
|
1190
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1191
|
+
|
|
1192
|
+
<td rowspan="1" colSpan="1" >Undefined.</td>
|
|
1193
|
+
</tr>
|
|
1194
|
+
|
|
1195
|
+
<tr>
|
|
1196
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Excellent</td>
|
|
1197
|
+
|
|
1198
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1199
|
+
|
|
1200
|
+
<td rowspan="1" colSpan="1" >The current network is excellent.</td>
|
|
1201
|
+
</tr>
|
|
1202
|
+
|
|
1203
|
+
<tr>
|
|
1204
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Good</td>
|
|
1205
|
+
|
|
1206
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1207
|
+
|
|
1208
|
+
<td rowspan="1" colSpan="1" >The current network is good.</td>
|
|
1209
|
+
</tr>
|
|
1210
|
+
|
|
1211
|
+
<tr>
|
|
1212
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Poor</td>
|
|
1213
|
+
|
|
1214
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1215
|
+
|
|
1216
|
+
<td rowspan="1" colSpan="1" >The current network is average.</td>
|
|
1217
|
+
</tr>
|
|
1218
|
+
|
|
1219
|
+
<tr>
|
|
1220
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Bad</td>
|
|
1221
|
+
|
|
1222
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
1223
|
+
|
|
1224
|
+
<td rowspan="1" colSpan="1" >The current network is poor.</td>
|
|
1225
|
+
</tr>
|
|
1226
|
+
|
|
1227
|
+
<tr>
|
|
1228
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Vbad</td>
|
|
1229
|
+
|
|
1230
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
1231
|
+
|
|
1232
|
+
<td rowspan="1" colSpan="1" >The current network is very poor.</td>
|
|
1233
|
+
</tr>
|
|
1234
|
+
|
|
1235
|
+
<tr>
|
|
1236
|
+
<td rowspan="1" colSpan="1" >TRTCQuality_Down</td>
|
|
1237
|
+
|
|
1238
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
1239
|
+
|
|
1240
|
+
<td rowspan="1" colSpan="1" >The current network does not meet the minimum requirements of TRTC.</td>
|
|
1241
|
+
</tr>
|
|
1242
|
+
</table>
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
## TRTCAVStatusType
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
#### Audio/Video status type
|
|
1250
|
+
|
|
1251
|
+
This enumeration type is used for audio status change callback interfaces ([onRemoteAudioStatusUpdated](https://write.woa.com/document/87029742770499584)) and video status change callback interfaces ([onRemoteVideoStatusUpdated](https://write.woa.com/document/87029742770499584)) to specify the current audio or video status.
|
|
1252
|
+
<table>
|
|
1253
|
+
<tr>
|
|
1254
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1255
|
+
|
|
1256
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1257
|
+
|
|
1258
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1259
|
+
</tr>
|
|
1260
|
+
|
|
1261
|
+
<tr>
|
|
1262
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusStopped</td>
|
|
1263
|
+
|
|
1264
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1265
|
+
|
|
1266
|
+
<td rowspan="1" colSpan="1" >Stops playback.</td>
|
|
1267
|
+
</tr>
|
|
1268
|
+
|
|
1269
|
+
<tr>
|
|
1270
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusPlaying</td>
|
|
1271
|
+
|
|
1272
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1273
|
+
|
|
1274
|
+
<td rowspan="1" colSpan="1" >Playing.</td>
|
|
1275
|
+
</tr>
|
|
1276
|
+
|
|
1277
|
+
<tr>
|
|
1278
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusLoading</td>
|
|
1279
|
+
|
|
1280
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1281
|
+
|
|
1282
|
+
<td rowspan="1" colSpan="1" >Loading.</td>
|
|
1283
|
+
</tr>
|
|
1284
|
+
</table>
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
## TRTCAVStatusChangeReason
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
#### Audio/Video status change reason type
|
|
1292
|
+
|
|
1293
|
+
This enumeration type is used for audio status change callback interfaces ([onRemoteAudioStatusUpdated](https://write.woa.com/document/87029742770499584)) and video status change callback interfaces ([onRemoteVideoStatusUpdated](https://write.woa.com/document/87029742770499584)) to specify the reason for the current audio or video status change.
|
|
1294
|
+
<table>
|
|
1295
|
+
<tr>
|
|
1296
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1297
|
+
|
|
1298
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1299
|
+
|
|
1300
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1301
|
+
</tr>
|
|
1302
|
+
|
|
1303
|
+
<tr>
|
|
1304
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonInternal</td>
|
|
1305
|
+
|
|
1306
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1307
|
+
|
|
1308
|
+
<td rowspan="1" colSpan="1" >Default value.</td>
|
|
1309
|
+
</tr>
|
|
1310
|
+
|
|
1311
|
+
<tr>
|
|
1312
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonBufferingBegin</td>
|
|
1313
|
+
|
|
1314
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1315
|
+
|
|
1316
|
+
<td rowspan="1" colSpan="1" >Network buffering.</td>
|
|
1317
|
+
</tr>
|
|
1318
|
+
|
|
1319
|
+
<tr>
|
|
1320
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonBufferingEnd</td>
|
|
1321
|
+
|
|
1322
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1323
|
+
|
|
1324
|
+
<td rowspan="1" colSpan="1" >End buffering.</td>
|
|
1325
|
+
</tr>
|
|
1326
|
+
|
|
1327
|
+
<tr>
|
|
1328
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonLocalStarted</td>
|
|
1329
|
+
|
|
1330
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1331
|
+
|
|
1332
|
+
<td rowspan="1" colSpan="1" >Locally starts playing the audio or video stream.</td>
|
|
1333
|
+
</tr>
|
|
1334
|
+
|
|
1335
|
+
<tr>
|
|
1336
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonLocalStopped</td>
|
|
1337
|
+
|
|
1338
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
1339
|
+
|
|
1340
|
+
<td rowspan="1" colSpan="1" >Locally stops playing the audio or video stream.</td>
|
|
1341
|
+
</tr>
|
|
1342
|
+
|
|
1343
|
+
<tr>
|
|
1344
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonRemoteStarted</td>
|
|
1345
|
+
|
|
1346
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
1347
|
+
|
|
1348
|
+
<td rowspan="1" colSpan="1" >Starts (or resumes) the remote audio or video stream.</td>
|
|
1349
|
+
</tr>
|
|
1350
|
+
|
|
1351
|
+
<tr>
|
|
1352
|
+
<td rowspan="1" colSpan="1" >TRTCAVStatusChangeReasonRemoteStopped</td>
|
|
1353
|
+
|
|
1354
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
1355
|
+
|
|
1356
|
+
<td rowspan="1" colSpan="1" >Stops (or interrupts) the remote audio or video stream.</td>
|
|
1357
|
+
</tr>
|
|
1358
|
+
</table>
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
## TRTCAudioSampleRate
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
#### Audio sample rate
|
|
1366
|
+
|
|
1367
|
+
The audio sampling rate is used to measure sound fidelity. The higher the sampling rate, the better the fidelity. If your application scenario involves music, it is recommended to use TRTCAudioSampleRate48000.
|
|
1368
|
+
<table>
|
|
1369
|
+
<tr>
|
|
1370
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1371
|
+
|
|
1372
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1373
|
+
|
|
1374
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1375
|
+
</tr>
|
|
1376
|
+
|
|
1377
|
+
<tr>
|
|
1378
|
+
<td rowspan="1" colSpan="1" >TRTCAudioSampleRate16000</td>
|
|
1379
|
+
|
|
1380
|
+
<td rowspan="1" colSpan="1" >16000</td>
|
|
1381
|
+
|
|
1382
|
+
<td rowspan="1" colSpan="1" >16k Sampling Rate.</td>
|
|
1383
|
+
</tr>
|
|
1384
|
+
|
|
1385
|
+
<tr>
|
|
1386
|
+
<td rowspan="1" colSpan="1" >TRTCAudioSampleRate32000</td>
|
|
1387
|
+
|
|
1388
|
+
<td rowspan="1" colSpan="1" >32000</td>
|
|
1389
|
+
|
|
1390
|
+
<td rowspan="1" colSpan="1" >32k Sampling Rate.</td>
|
|
1391
|
+
</tr>
|
|
1392
|
+
|
|
1393
|
+
<tr>
|
|
1394
|
+
<td rowspan="1" colSpan="1" >TRTCAudioSampleRate44100</td>
|
|
1395
|
+
|
|
1396
|
+
<td rowspan="1" colSpan="1" >44100</td>
|
|
1397
|
+
|
|
1398
|
+
<td rowspan="1" colSpan="1" >44.1k Sampling Rate.</td>
|
|
1399
|
+
</tr>
|
|
1400
|
+
|
|
1401
|
+
<tr>
|
|
1402
|
+
<td rowspan="1" colSpan="1" >TRTCAudioSampleRate48000</td>
|
|
1403
|
+
|
|
1404
|
+
<td rowspan="1" colSpan="1" >48000</td>
|
|
1405
|
+
|
|
1406
|
+
<td rowspan="1" colSpan="1" >48k Sampling Rate</td>
|
|
1407
|
+
</tr>
|
|
1408
|
+
</table>
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
## TRTCAudioQuality
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
#### Sound quality
|
|
1416
|
+
|
|
1417
|
+
TRTC provides three carefully calibrated modes to meet the diverse pursuit of audio quality in various vertical scenarios:
|
|
1418
|
+
- Vocal Mode (Speech): Suitable for applications focused on voice communication. This mode offers strong audio transmission resistance, ensuring optimal smoothness in weak network environments through various voice processing techniques.
|
|
1419
|
+
|
|
1420
|
+
- Music Mode (Music): Suitable for scenarios with high vocal demands. This mode transmits a large amount of audio data, ensuring high-fidelity detail reproduction of music signals across all frequency bands through various technologies.
|
|
1421
|
+
|
|
1422
|
+
- Default Mode (Default): Positioned between Speech and Music, this mode offers better music reproduction than the Vocal Mode but transmits much less data than the Music Mode. It is well-suited for various scenarios.
|
|
1423
|
+
|
|
1424
|
+
<table>
|
|
1425
|
+
<tr>
|
|
1426
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1427
|
+
|
|
1428
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1429
|
+
|
|
1430
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1431
|
+
</tr>
|
|
1432
|
+
|
|
1433
|
+
<tr>
|
|
1434
|
+
<td rowspan="1" colSpan="1" >TRTCAudioQualitySpeech</td>
|
|
1435
|
+
|
|
1436
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1437
|
+
|
|
1438
|
+
<td rowspan="1" colSpan="1" >Vocal Mode: Sampling Rate: 16k; Mono; Encoding Bitrate: 16kbps; Offers the strongest network resistance among the modes, suitable for voice-focused scenarios such as online meetings and voice calls.</td>
|
|
1439
|
+
</tr>
|
|
1440
|
+
|
|
1441
|
+
<tr>
|
|
1442
|
+
<td rowspan="1" colSpan="1" >TRTCAudioQualityDefault</td>
|
|
1443
|
+
|
|
1444
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1445
|
+
|
|
1446
|
+
<td rowspan="1" colSpan="1" >Default Mode: Sampling Rate: 48k; Mono; Encoding Bitrate: 50kbps; A tier between Speech and Music, the default level of the SDK, recommended.</td>
|
|
1447
|
+
</tr>
|
|
1448
|
+
|
|
1449
|
+
<tr>
|
|
1450
|
+
<td rowspan="1" colSpan="1" >TRTCAudioQualityMusic</td>
|
|
1451
|
+
|
|
1452
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1453
|
+
|
|
1454
|
+
<td rowspan="1" colSpan="1" >Music Mode: Sampling Rate: 48k; Full-band Stereo; Encoding Bitrate: 128kbps; Suitable for scenarios requiring high-fidelity music transmission, such as online karaoke and music live streaming.</td>
|
|
1455
|
+
</tr>
|
|
1456
|
+
</table>
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
## TRTCAudioRoute
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
#### Audio routing (i.e., the sound playback mode)
|
|
1464
|
+
|
|
1465
|
+
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.
|
|
1466
|
+
|
|
1467
|
+
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.
|
|
1468
|
+
- 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.
|
|
1469
|
+
|
|
1470
|
+
- 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.
|
|
1471
|
+
|
|
1472
|
+
- Audio routing to wired headphones.
|
|
1473
|
+
|
|
1474
|
+
- Audio routing to Bluetooth headphones.
|
|
1475
|
+
|
|
1476
|
+
- Audio routing to USB professional sound card device.
|
|
1477
|
+
|
|
1478
|
+
<table>
|
|
1479
|
+
<tr>
|
|
1480
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1481
|
+
|
|
1482
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1483
|
+
|
|
1484
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1485
|
+
</tr>
|
|
1486
|
+
|
|
1487
|
+
<tr>
|
|
1488
|
+
<td rowspan="1" colSpan="1" >TRTCAudioModeUnknown</td>
|
|
1489
|
+
|
|
1490
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1491
|
+
|
|
1492
|
+
<td rowspan="1" colSpan="1" >Unknown: The default routing device.</td>
|
|
1493
|
+
</tr>
|
|
1494
|
+
|
|
1495
|
+
<tr>
|
|
1496
|
+
<td rowspan="1" colSpan="1" >TRTCAudioModeSpeakerphone</td>
|
|
1497
|
+
|
|
1498
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1499
|
+
|
|
1500
|
+
<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>
|
|
1501
|
+
</tr>
|
|
1502
|
+
|
|
1503
|
+
<tr>
|
|
1504
|
+
<td rowspan="1" colSpan="1" >TRTCAudioModeEarpiece</td>
|
|
1505
|
+
|
|
1506
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1507
|
+
|
|
1508
|
+
<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>
|
|
1509
|
+
</tr>
|
|
1510
|
+
|
|
1511
|
+
<tr>
|
|
1512
|
+
<td rowspan="1" colSpan="1" >TRTCAudioModeWiredHeadset</td>
|
|
1513
|
+
|
|
1514
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1515
|
+
|
|
1516
|
+
<td rowspan="1" colSpan="1" >WiredHeadset: Plays through wired headphones.</td>
|
|
1517
|
+
</tr>
|
|
1518
|
+
|
|
1519
|
+
<tr>
|
|
1520
|
+
<td rowspan="1" colSpan="1" >TRTCAudioModeBluetoothHeadset</td>
|
|
1521
|
+
|
|
1522
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1523
|
+
|
|
1524
|
+
<td rowspan="1" colSpan="1" >BluetoothHeadset: Plays through Bluetooth headphones.</td>
|
|
1525
|
+
</tr>
|
|
1526
|
+
|
|
1527
|
+
<tr>
|
|
1528
|
+
<td rowspan="1" colSpan="1" >TRTCAudioModeSoundCard</td>
|
|
1529
|
+
|
|
1530
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
1531
|
+
|
|
1532
|
+
<td rowspan="1" colSpan="1" >SoundCard: Plays through USB sound card.</td>
|
|
1533
|
+
</tr>
|
|
1534
|
+
</table>
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
## TRTCReverbType
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
#### Sound Reverb Mode
|
|
1542
|
+
|
|
1543
|
+
This enumeration value is used to set the reverb mode in live streaming scenarios and is commonly used in live shows.
|
|
1544
|
+
<table>
|
|
1545
|
+
<tr>
|
|
1546
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1547
|
+
|
|
1548
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1549
|
+
|
|
1550
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1551
|
+
</tr>
|
|
1552
|
+
|
|
1553
|
+
<tr>
|
|
1554
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_0</td>
|
|
1555
|
+
|
|
1556
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1557
|
+
|
|
1558
|
+
<td rowspan="1" colSpan="1" >Disable Reverb.</td>
|
|
1559
|
+
</tr>
|
|
1560
|
+
|
|
1561
|
+
<tr>
|
|
1562
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_1</td>
|
|
1563
|
+
|
|
1564
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1565
|
+
|
|
1566
|
+
<td rowspan="1" colSpan="1" >KTV.</td>
|
|
1567
|
+
</tr>
|
|
1568
|
+
|
|
1569
|
+
<tr>
|
|
1570
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_2</td>
|
|
1571
|
+
|
|
1572
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1573
|
+
|
|
1574
|
+
<td rowspan="1" colSpan="1" >Small room.</td>
|
|
1575
|
+
</tr>
|
|
1576
|
+
|
|
1577
|
+
<tr>
|
|
1578
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_3</td>
|
|
1579
|
+
|
|
1580
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1581
|
+
|
|
1582
|
+
<td rowspan="1" colSpan="1" >Great Hall.</td>
|
|
1583
|
+
</tr>
|
|
1584
|
+
|
|
1585
|
+
<tr>
|
|
1586
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_4</td>
|
|
1587
|
+
|
|
1588
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
1589
|
+
|
|
1590
|
+
<td rowspan="1" colSpan="1" >Deep.</td>
|
|
1591
|
+
</tr>
|
|
1592
|
+
|
|
1593
|
+
<tr>
|
|
1594
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_5</td>
|
|
1595
|
+
|
|
1596
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
1597
|
+
|
|
1598
|
+
<td rowspan="1" colSpan="1" >Loud and Clear.</td>
|
|
1599
|
+
</tr>
|
|
1600
|
+
|
|
1601
|
+
<tr>
|
|
1602
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_6</td>
|
|
1603
|
+
|
|
1604
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
1605
|
+
|
|
1606
|
+
<td rowspan="1" colSpan="1" >Metallic Sound.</td>
|
|
1607
|
+
</tr>
|
|
1608
|
+
|
|
1609
|
+
<tr>
|
|
1610
|
+
<td rowspan="1" colSpan="1" >TRTCReverbType_7</td>
|
|
1611
|
+
|
|
1612
|
+
<td rowspan="1" colSpan="1" >7</td>
|
|
1613
|
+
|
|
1614
|
+
<td rowspan="1" colSpan="1" >Magnetic.</td>
|
|
1615
|
+
</tr>
|
|
1616
|
+
</table>
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
## TRTCVoiceChangerType
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
#### Voice Changing Type
|
|
1624
|
+
|
|
1625
|
+
This enumeration value is used to set the voice change mode in live streaming scenarios and is commonly used in live shows.
|
|
1626
|
+
<table>
|
|
1627
|
+
<tr>
|
|
1628
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1629
|
+
|
|
1630
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1631
|
+
|
|
1632
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1633
|
+
</tr>
|
|
1634
|
+
|
|
1635
|
+
<tr>
|
|
1636
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_0</td>
|
|
1637
|
+
|
|
1638
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1639
|
+
|
|
1640
|
+
<td rowspan="1" colSpan="1" >Disable Voice Change.</td>
|
|
1641
|
+
</tr>
|
|
1642
|
+
|
|
1643
|
+
<tr>
|
|
1644
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_1</td>
|
|
1645
|
+
|
|
1646
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1647
|
+
|
|
1648
|
+
<td rowspan="1" colSpan="1" >Mischievous Child.</td>
|
|
1649
|
+
</tr>
|
|
1650
|
+
|
|
1651
|
+
<tr>
|
|
1652
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_2</td>
|
|
1653
|
+
|
|
1654
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1655
|
+
|
|
1656
|
+
<td rowspan="1" colSpan="1" >Lolita.</td>
|
|
1657
|
+
</tr>
|
|
1658
|
+
|
|
1659
|
+
<tr>
|
|
1660
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_3</td>
|
|
1661
|
+
|
|
1662
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1663
|
+
|
|
1664
|
+
<td rowspan="1" colSpan="1" >Uncle.</td>
|
|
1665
|
+
</tr>
|
|
1666
|
+
|
|
1667
|
+
<tr>
|
|
1668
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_4</td>
|
|
1669
|
+
|
|
1670
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
1671
|
+
|
|
1672
|
+
<td rowspan="1" colSpan="1" >Heavy Metal.</td>
|
|
1673
|
+
</tr>
|
|
1674
|
+
|
|
1675
|
+
<tr>
|
|
1676
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_5</td>
|
|
1677
|
+
|
|
1678
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
1679
|
+
|
|
1680
|
+
<td rowspan="1" colSpan="1" >Cold.</td>
|
|
1681
|
+
</tr>
|
|
1682
|
+
|
|
1683
|
+
<tr>
|
|
1684
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_6</td>
|
|
1685
|
+
|
|
1686
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
1687
|
+
|
|
1688
|
+
<td rowspan="1" colSpan="1" >Foreigner.</td>
|
|
1689
|
+
</tr>
|
|
1690
|
+
|
|
1691
|
+
<tr>
|
|
1692
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_7</td>
|
|
1693
|
+
|
|
1694
|
+
<td rowspan="1" colSpan="1" >7</td>
|
|
1695
|
+
|
|
1696
|
+
<td rowspan="1" colSpan="1" >Trapped Beast.</td>
|
|
1697
|
+
</tr>
|
|
1698
|
+
|
|
1699
|
+
<tr>
|
|
1700
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_8</td>
|
|
1701
|
+
|
|
1702
|
+
<td rowspan="1" colSpan="1" >8</td>
|
|
1703
|
+
|
|
1704
|
+
<td rowspan="1" colSpan="1" >Fat Kid.</td>
|
|
1705
|
+
</tr>
|
|
1706
|
+
|
|
1707
|
+
<tr>
|
|
1708
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_9</td>
|
|
1709
|
+
|
|
1710
|
+
<td rowspan="1" colSpan="1" >9</td>
|
|
1711
|
+
|
|
1712
|
+
<td rowspan="1" colSpan="1" >Strong electric current.</td>
|
|
1713
|
+
</tr>
|
|
1714
|
+
|
|
1715
|
+
<tr>
|
|
1716
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_10</td>
|
|
1717
|
+
|
|
1718
|
+
<td rowspan="1" colSpan="1" >10</td>
|
|
1719
|
+
|
|
1720
|
+
<td rowspan="1" colSpan="1" >Heavy machinery.</td>
|
|
1721
|
+
</tr>
|
|
1722
|
+
|
|
1723
|
+
<tr>
|
|
1724
|
+
<td rowspan="1" colSpan="1" >TRTCVoiceChangerType_11</td>
|
|
1725
|
+
|
|
1726
|
+
<td rowspan="1" colSpan="1" >11</td>
|
|
1727
|
+
|
|
1728
|
+
<td rowspan="1" colSpan="1" >Ethereal voice.</td>
|
|
1729
|
+
</tr>
|
|
1730
|
+
</table>
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
## TRTCSystemVolumeType
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
#### System Volume Type (Only applicable to mobile devices)
|
|
1738
|
+
|
|
1739
|
+
Modern smartphones generally have two types of system volume: "Call Volume" and "Media Volume".
|
|
1740
|
+
- Call Volume: This type of volume is specifically designed for making and receiving calls. It includes a built-in Echo Cancellation (AEC) feature and supports audio pickup through the microphone of a Bluetooth headset. However, the sound quality is generally average. If you lower the phone volume using the side volume buttons and cannot turn it to zero (i.e., mute it completely), it indicates that your phone is currently in call volume mode.
|
|
1741
|
+
|
|
1742
|
+
- Media Volume: This type of volume is specifically designed for music scenarios. It does not support the system's AEC feature and cannot use the Bluetooth headset's microphone for audio pickup, but it provides better music playback quality. If you lower the phone volume using the side volume buttons and can turn it to silence completely, it indicates that your phone is currently in media volume mode.
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
The SDK currently offers three control modes for system volume types: Automatic Switching Mode, Full Call Volume Mode, Full Media Volume Mode.
|
|
1746
|
+
<table>
|
|
1747
|
+
<tr>
|
|
1748
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1749
|
+
|
|
1750
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1751
|
+
|
|
1752
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1753
|
+
</tr>
|
|
1754
|
+
|
|
1755
|
+
<tr>
|
|
1756
|
+
<td rowspan="1" colSpan="1" >TRTCSystemVolumeTypeAuto</td>
|
|
1757
|
+
|
|
1758
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1759
|
+
|
|
1760
|
+
<td rowspan="1" colSpan="1" >Automatic Switching Mode:<br>Also known as "Call Volume during Mic On, Media Volume during Mic Off". It uses call volume when the host is on the mic and media volume when the audience is off the mic, suitable for online live streaming scenarios.<br>If you choose the TRTCAppSceneLIVE or TRTCAppSceneVoiceChatRoom scenario when entering the room, the SDK will automatically use this mode.</td>
|
|
1761
|
+
</tr>
|
|
1762
|
+
|
|
1763
|
+
<tr>
|
|
1764
|
+
<td rowspan="1" colSpan="1" >TRTCSystemVolumeTypeMedia</td>
|
|
1765
|
+
|
|
1766
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1767
|
+
|
|
1768
|
+
<td rowspan="1" colSpan="1" >Full Media Volume:<br>Using media volume throughout the call is not a commonly used volume type; it is suitable for music scenarios with stringent sound quality requirements.<br>If most of your users use external devices (such as external sound cards), you can use this mode; otherwise, please use it cautiously.</td>
|
|
1769
|
+
</tr>
|
|
1770
|
+
|
|
1771
|
+
<tr>
|
|
1772
|
+
<td rowspan="1" colSpan="1" >TRTCSystemVolumeTypeVOIP</td>
|
|
1773
|
+
|
|
1774
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1775
|
+
|
|
1776
|
+
<td rowspan="1" colSpan="1" >Full call volume:<br>The advantage of this solution is that the audio module does not need to switch operation modes when users join/leave the mic, achieving seamless mic transitions. It is suitable for applications where users need to join/leave the mic frequently.<br>If you choose TRTCAppSceneVideoCall or TRTCAppSceneAudioCall when entering the room, the SDK will automatically use this mode.</td>
|
|
1777
|
+
</tr>
|
|
1778
|
+
</table>
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
## TRTCAudioFrameOperationMode
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
#### Audio Callback Data Read/Write Mode
|
|
1786
|
+
|
|
1787
|
+
TRTC provides two operation modes for audio callback data.
|
|
1788
|
+
- Read-Write Mode: You can retrieve and modify the callback audio data. This is the default mode.
|
|
1789
|
+
|
|
1790
|
+
- Read-Only Mode: You can only retrieve the audio data from the callback.
|
|
1791
|
+
|
|
1792
|
+
<table>
|
|
1793
|
+
<tr>
|
|
1794
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1795
|
+
|
|
1796
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1797
|
+
|
|
1798
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1799
|
+
</tr>
|
|
1800
|
+
|
|
1801
|
+
<tr>
|
|
1802
|
+
<td rowspan="1" colSpan="1" >TRTCAudioFrameOperationModeReadWrite</td>
|
|
1803
|
+
|
|
1804
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1805
|
+
|
|
1806
|
+
<td rowspan="1" colSpan="1" >Read-Write Mode: You can retrieve and modify the callback audio data.</td>
|
|
1807
|
+
</tr>
|
|
1808
|
+
|
|
1809
|
+
<tr>
|
|
1810
|
+
<td rowspan="1" colSpan="1" >TRTCAudioFrameOperationModeReadOnly</td>
|
|
1811
|
+
|
|
1812
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1813
|
+
|
|
1814
|
+
<td rowspan="1" colSpan="1" >Read-Only Mode: You can only retrieve the audio data from the callback.</td>
|
|
1815
|
+
</tr>
|
|
1816
|
+
</table>
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
## TRTCLogLevel
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
#### Log Level
|
|
1824
|
+
|
|
1825
|
+
Different log levels define different levels of detail and log quantities. It is recommended to set the log level to TRTCLogLevelInfo under normal circumstances.
|
|
1826
|
+
<table>
|
|
1827
|
+
<tr>
|
|
1828
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1829
|
+
|
|
1830
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1831
|
+
|
|
1832
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1833
|
+
</tr>
|
|
1834
|
+
|
|
1835
|
+
<tr>
|
|
1836
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelVerbose</td>
|
|
1837
|
+
|
|
1838
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1839
|
+
|
|
1840
|
+
<td rowspan="1" colSpan="1" >Output all levels of logs.</td>
|
|
1841
|
+
</tr>
|
|
1842
|
+
|
|
1843
|
+
<tr>
|
|
1844
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelDebug</td>
|
|
1845
|
+
|
|
1846
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1847
|
+
|
|
1848
|
+
<td rowspan="1" colSpan="1" >Output DEBUG, INFO, WARNING, ERROR, and FATAL levels of logs.</td>
|
|
1849
|
+
</tr>
|
|
1850
|
+
|
|
1851
|
+
<tr>
|
|
1852
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelInfo</td>
|
|
1853
|
+
|
|
1854
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1855
|
+
|
|
1856
|
+
<td rowspan="1" colSpan="1" >Output INFO, WARNING, ERROR, and FATAL levels of logs.</td>
|
|
1857
|
+
</tr>
|
|
1858
|
+
|
|
1859
|
+
<tr>
|
|
1860
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelWarn</td>
|
|
1861
|
+
|
|
1862
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
1863
|
+
|
|
1864
|
+
<td rowspan="1" colSpan="1" >Output WARNING, ERROR, and FATAL levels of logs.</td>
|
|
1865
|
+
</tr>
|
|
1866
|
+
|
|
1867
|
+
<tr>
|
|
1868
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelError</td>
|
|
1869
|
+
|
|
1870
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
1871
|
+
|
|
1872
|
+
<td rowspan="1" colSpan="1" >Output ERROR and FATAL levels of logs.</td>
|
|
1873
|
+
</tr>
|
|
1874
|
+
|
|
1875
|
+
<tr>
|
|
1876
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelFatal</td>
|
|
1877
|
+
|
|
1878
|
+
<td rowspan="1" colSpan="1" >5</td>
|
|
1879
|
+
|
|
1880
|
+
<td rowspan="1" colSpan="1" >Output only FATAL level logs.</td>
|
|
1881
|
+
</tr>
|
|
1882
|
+
|
|
1883
|
+
<tr>
|
|
1884
|
+
<td rowspan="1" colSpan="1" >TRTCLogLevelNone</td>
|
|
1885
|
+
|
|
1886
|
+
<td rowspan="1" colSpan="1" >6</td>
|
|
1887
|
+
|
|
1888
|
+
<td rowspan="1" colSpan="1" >Do not output any SDK logs.</td>
|
|
1889
|
+
</tr>
|
|
1890
|
+
</table>
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
## TRTCGSensorMode
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
#### Gravity Sensor Switch (Only applicable to mobile devices)
|
|
1898
|
+
<table>
|
|
1899
|
+
<tr>
|
|
1900
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1901
|
+
|
|
1902
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1903
|
+
|
|
1904
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1905
|
+
</tr>
|
|
1906
|
+
|
|
1907
|
+
<tr>
|
|
1908
|
+
<td rowspan="1" colSpan="1" >TRTCGSensorMode_Disable</td>
|
|
1909
|
+
|
|
1910
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1911
|
+
|
|
1912
|
+
<td rowspan="1" colSpan="1" >No gravity sensing adaptation. This mode is the default on the Desktop Platform. In this mode, the video published by the current user is not affected by changes in gravity sensing direction.</td>
|
|
1913
|
+
</tr>
|
|
1914
|
+
|
|
1915
|
+
<tr>
|
|
1916
|
+
<td rowspan="1" colSpan="1" >TRTCGSensorMode_UIAutoLayout</td>
|
|
1917
|
+
|
|
1918
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1919
|
+
|
|
1920
|
+
<td rowspan="1" colSpan="1" >Adapt gravity sensing. This mode is the default on the Mobile Platform. In this mode, the video published by the current user will adjust according to the gravity sensing direction of the device, while the local preview screen remains unchanged.<br>One adaptation mode currently supported by the SDK is: when the phone or Pad is upside down, to ensure that the remote user sees the correct direction, the SDK will automatically rotate the published screen 180 degrees. If your app's interface layer has gravity sensing auto-adaptation enabled, it is recommended to use UIFixLayout mode.</td>
|
|
1921
|
+
</tr>
|
|
1922
|
+
|
|
1923
|
+
<tr>
|
|
1924
|
+
<td rowspan="1" colSpan="1" >TRTCGSensorMode_UIFixLayout</td>
|
|
1925
|
+
|
|
1926
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
1927
|
+
|
|
1928
|
+
<td rowspan="1" colSpan="1" >Adapt gravity sensing<br>In this mode, the video published by the current user will adjust according to the gravity sensing direction of the device, and the local preview screen will also rotate accordingly.<br>One feature currently supported is that when the phone or Pad is upside down, to ensure that the remote user sees the correct direction, the SDK will automatically rotate the published screen 180 degrees.<br>If your app's interface layer does not support gravity sensing auto-adaptation and you want the SDK's video to adapt to gravity sensing direction, it is recommended to use UIFixLayout mode.<br>@deprecated From version v11.5, TRTCGSensorMode_UIFixLayout is no longer supported, only the above two modes are supported.</td>
|
|
1929
|
+
</tr>
|
|
1930
|
+
</table>
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
## TRTCScreenCaptureSourceType
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
#### Target Type for Screen Sharing (Only applicable to desktop devices)
|
|
1938
|
+
<table>
|
|
1939
|
+
<tr>
|
|
1940
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1941
|
+
|
|
1942
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1943
|
+
|
|
1944
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1945
|
+
</tr>
|
|
1946
|
+
|
|
1947
|
+
<tr>
|
|
1948
|
+
<td rowspan="1" colSpan="1" >TRTCScreenCaptureSourceTypeUnknown</td>
|
|
1949
|
+
|
|
1950
|
+
<td rowspan="1" colSpan="1" >-1</td>
|
|
1951
|
+
|
|
1952
|
+
<td rowspan="1" colSpan="1" >Undefined.</td>
|
|
1953
|
+
</tr>
|
|
1954
|
+
|
|
1955
|
+
<tr>
|
|
1956
|
+
<td rowspan="1" colSpan="1" >TRTCScreenCaptureSourceTypeWindow</td>
|
|
1957
|
+
|
|
1958
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1959
|
+
|
|
1960
|
+
<td rowspan="1" colSpan="1" >The share target is a window of an application.</td>
|
|
1961
|
+
</tr>
|
|
1962
|
+
|
|
1963
|
+
<tr>
|
|
1964
|
+
<td rowspan="1" colSpan="1" >TRTCScreenCaptureSourceTypeScreen</td>
|
|
1965
|
+
|
|
1966
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
1967
|
+
|
|
1968
|
+
<td rowspan="1" colSpan="1" >The share target is the screen of a monitor.</td>
|
|
1969
|
+
</tr>
|
|
1970
|
+
</table>
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
## TRTCTranscodingConfigMode
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
#### Layout Mode for Cloud Mixed Streaming
|
|
1978
|
+
|
|
1979
|
+
TRTC's cloud mixed streaming service can combine multiple audio and video streams in a room into one stream. Therefore, you need to specify a layout plan for the screen. We offer the following layout modes.
|
|
1980
|
+
<table>
|
|
1981
|
+
<tr>
|
|
1982
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
1983
|
+
|
|
1984
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
1985
|
+
|
|
1986
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
1987
|
+
</tr>
|
|
1988
|
+
|
|
1989
|
+
<tr>
|
|
1990
|
+
<td rowspan="1" colSpan="1" >TRTCTranscodingConfigMode_Unknown</td>
|
|
1991
|
+
|
|
1992
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
1993
|
+
|
|
1994
|
+
<td rowspan="1" colSpan="1" >Undefined.</td>
|
|
1995
|
+
</tr>
|
|
1996
|
+
|
|
1997
|
+
<tr>
|
|
1998
|
+
<td rowspan="1" colSpan="1" >TRTCTranscodingConfigMode_Manual</td>
|
|
1999
|
+
|
|
2000
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2001
|
+
|
|
2002
|
+
<td rowspan="1" colSpan="1" >Fully Manual Layout Mode.<br>In this mode, you need to specify the exact layout position for each screen. This mode offers the highest degree of freedom but is the least user-friendly:<br>- You need to fill in all parameters in TRTCTranscodingConfig, including the position coordinates for each screen (TRTCMixUser).<br>- You need to monitor the onUserVideoAvailable() and onUserAudioAvailable() event callbacks in TRTCCloudDelegate and constantly adjust the mixUsers parameters based on the audio and video status of each user in the room.</td>
|
|
2003
|
+
</tr>
|
|
2004
|
+
|
|
2005
|
+
<tr>
|
|
2006
|
+
<td rowspan="1" colSpan="1" >TRTCTranscodingConfigMode_Template_PureAudio</td>
|
|
2007
|
+
|
|
2008
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2009
|
+
|
|
2010
|
+
<td rowspan="1" colSpan="1" >Pure Audio Mode.<br>This mode is suitable for voice call (AudioCall) and voice chat room (VoiceChatRoom) audio-only applications.<br>- After entering the room, you only need to set up the mixing configuration once through the setMixTranscodingConfig interface. The SDK will then automatically mix the audio of all on-mic users in the room into the current user's live stream.<br>- You don't need to set the mixUsers parameters in TRTCTranscodingConfig. Just set the audioSampleRate, audioBitrate, and audioChannels parameters.</td>
|
|
2011
|
+
</tr>
|
|
2012
|
+
|
|
2013
|
+
<tr>
|
|
2014
|
+
<td rowspan="1" colSpan="1" >TRTCTranscodingConfigMode_Template_PresetLayout</td>
|
|
2015
|
+
|
|
2016
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
2017
|
+
|
|
2018
|
+
<td rowspan="1" colSpan="1" >Pre-layout Mode.<br>The most popular layout mode because it supports pre-setting the positions of each screen using placeholders, and then the SDK will automatically adapt and adjust based on the number of screens in the room.<br>In this mode, you still need to set the mixUsers parameters, but you can set the userId to "Placeholder". The available placeholders are:<br>- "$PLACE_HOLDER_REMOTE$" : Represents the remote user's screen. Multiple instances can be set.<br>- "$PLACE_HOLDER_LOCAL_MAIN$" : Represents the local camera screen. Only one instance is allowed.<br>- "$PLACE_HOLDER_LOCAL_SUB$" : Represents the local screen sharing. Only one instance is allowed.<br>In this mode, you do not need to listen to the onUserVideoAvailable and onUserAudioAvailable callbacks in TRTCCloudDelegate for real-time adjustment. Just call setMixTranscodingConfig once after entering the room successfully, and the SDK will automatically fill the real userId into the placeholders you set.</td>
|
|
2019
|
+
</tr>
|
|
2020
|
+
|
|
2021
|
+
<tr>
|
|
2022
|
+
<td rowspan="1" colSpan="1" >TRTCTranscodingConfigMode_Template_ScreenSharing</td>
|
|
2023
|
+
|
|
2024
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
2025
|
+
|
|
2026
|
+
<td rowspan="1" colSpan="1" >Screen Sharing Mode.<br>Suitable for online education scenarios and other screen sharing-centric applications, this mode is only supported on Windows and Mac SDKs.<br>In this mode, the SDK will first build a canvas based on the target resolution you set via the videoWidth and videoHeight parameters,<br>- If the teacher does not activate the screen sharing, the SDK will proportionally stretch and draw the teacher's camera feed onto the canvas;<br>- When the teacher activates screen sharing, the SDK will draw the screen sharing feed onto the same canvas.<br>The purpose of this layout is to ensure that the output resolution of the stream mixing module is consistent, avoiding screen tearing issues during course playback and web viewing (web players do not support variable resolutions).<br>Additionally, the students' audio will be mixed into the teacher's audio and video stream by default.<br>Since video content in teaching mode is primarily screen sharing, simultaneously transmitting the camera feed and the screen sharing feed is very bandwidth-intensive.<br>The recommended approach is to directly render the camera feed onto the current screen via the setLocalVideoRenderCallback interface.<br>In this mode, you don't need to set the mixUsers parameters in TRTCTranscodingConfig. The SDK will not mix the students' screens to prevent interference with the screen sharing effect.<br>You can set the width x height in TRTCTranscodingConfig to 0px × 0px. The SDK will automatically calculate a suitable resolution based on the user's current screen aspect ratio<br>- If the teacher's current screen width is <= 1920px, the SDK will use the actual resolution of the teacher's current screen.<br>- If the teacher's current screen width is > 1920px, the SDK will choose one of the three resolutions based on the current screen aspect ratio: 1920x1080 (16:9), 1920x1200 (16:10), or 1920x1440 (4:3).</td>
|
|
2027
|
+
</tr>
|
|
2028
|
+
</table>
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
## TRTCRecordType
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
#### Media Recording Type
|
|
2036
|
+
|
|
2037
|
+
This enumeration type is used for the local media recording interface [startLocalRecording](https://write.woa.com/document/87029727163494400) to specify whether to record audio and video files or pure audio files.
|
|
2038
|
+
<table>
|
|
2039
|
+
<tr>
|
|
2040
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2041
|
+
|
|
2042
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2043
|
+
|
|
2044
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2045
|
+
</tr>
|
|
2046
|
+
|
|
2047
|
+
<tr>
|
|
2048
|
+
<td rowspan="1" colSpan="1" >TRTCRecordTypeAudio</td>
|
|
2049
|
+
|
|
2050
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
2051
|
+
|
|
2052
|
+
<td rowspan="1" colSpan="1" >Audio recording only.</td>
|
|
2053
|
+
</tr>
|
|
2054
|
+
|
|
2055
|
+
<tr>
|
|
2056
|
+
<td rowspan="1" colSpan="1" >TRTCRecordTypeVideo</td>
|
|
2057
|
+
|
|
2058
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2059
|
+
|
|
2060
|
+
<td rowspan="1" colSpan="1" >Video recording only.</td>
|
|
2061
|
+
</tr>
|
|
2062
|
+
|
|
2063
|
+
<tr>
|
|
2064
|
+
<td rowspan="1" colSpan="1" >TRTCRecordTypeBoth</td>
|
|
2065
|
+
|
|
2066
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2067
|
+
|
|
2068
|
+
<td rowspan="1" colSpan="1" >Record both audio and video.</td>
|
|
2069
|
+
</tr>
|
|
2070
|
+
</table>
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
## TRTCMixInputType
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
#### Mixed Streaming Input Type
|
|
2078
|
+
<table>
|
|
2079
|
+
<tr>
|
|
2080
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2081
|
+
|
|
2082
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2083
|
+
|
|
2084
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2085
|
+
</tr>
|
|
2086
|
+
|
|
2087
|
+
<tr>
|
|
2088
|
+
<td rowspan="1" colSpan="1" >TRTCMixInputTypeUndefined</td>
|
|
2089
|
+
|
|
2090
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
2091
|
+
|
|
2092
|
+
<td rowspan="1" colSpan="1" >Default value. Considering compatibility with older versions, if you specify the inputType as Undefined, the SDK will determine the mixed input type based on the value of another parameter, pureAudio.</td>
|
|
2093
|
+
</tr>
|
|
2094
|
+
|
|
2095
|
+
<tr>
|
|
2096
|
+
<td rowspan="1" colSpan="1" >TRTCMixInputTypeAudioVideo</td>
|
|
2097
|
+
|
|
2098
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2099
|
+
|
|
2100
|
+
<td rowspan="1" colSpan="1" >Mix both audio and video.</td>
|
|
2101
|
+
</tr>
|
|
2102
|
+
|
|
2103
|
+
<tr>
|
|
2104
|
+
<td rowspan="1" colSpan="1" >TRTCMixInputTypePureVideo</td>
|
|
2105
|
+
|
|
2106
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2107
|
+
|
|
2108
|
+
<td rowspan="1" colSpan="1" >Mix video only.</td>
|
|
2109
|
+
</tr>
|
|
2110
|
+
|
|
2111
|
+
<tr>
|
|
2112
|
+
<td rowspan="1" colSpan="1" >TRTCMixInputTypePureAudio</td>
|
|
2113
|
+
|
|
2114
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
2115
|
+
|
|
2116
|
+
<td rowspan="1" colSpan="1" >Mix audio only.</td>
|
|
2117
|
+
</tr>
|
|
2118
|
+
|
|
2119
|
+
<tr>
|
|
2120
|
+
<td rowspan="1" colSpan="1" >TRTCMixInputTypeWatermark</td>
|
|
2121
|
+
|
|
2122
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
2123
|
+
|
|
2124
|
+
<td rowspan="1" colSpan="1" >Mix watermarks. In this case, you do not need to specify the userId field but need to specify the image field. Using png format images is recommended.</td>
|
|
2125
|
+
</tr>
|
|
2126
|
+
</table>
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
## TRTCAudioRecordingContent
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
#### Audio Recording Content Type
|
|
2134
|
+
|
|
2135
|
+
This enumeration type is used for the audio recording interface [startAudioRecording](https://write.woa.com/document/87029727163494400) to specify the content of the audio to be recorded.
|
|
2136
|
+
<table>
|
|
2137
|
+
<tr>
|
|
2138
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2139
|
+
|
|
2140
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2141
|
+
|
|
2142
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2143
|
+
</tr>
|
|
2144
|
+
|
|
2145
|
+
<tr>
|
|
2146
|
+
<td rowspan="1" colSpan="1" >TRTCAudioRecordingContentAll</td>
|
|
2147
|
+
|
|
2148
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
2149
|
+
|
|
2150
|
+
<td rowspan="1" colSpan="1" >Record all local and remote audio.</td>
|
|
2151
|
+
</tr>
|
|
2152
|
+
|
|
2153
|
+
<tr>
|
|
2154
|
+
<td rowspan="1" colSpan="1" >TRTCAudioRecordingContentLocal</td>
|
|
2155
|
+
|
|
2156
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2157
|
+
|
|
2158
|
+
<td rowspan="1" colSpan="1" >Record local audio only.</td>
|
|
2159
|
+
</tr>
|
|
2160
|
+
|
|
2161
|
+
<tr>
|
|
2162
|
+
<td rowspan="1" colSpan="1" >TRTCAudioRecordingContentRemote</td>
|
|
2163
|
+
|
|
2164
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2165
|
+
|
|
2166
|
+
<td rowspan="1" colSpan="1" >Record remote audio only.</td>
|
|
2167
|
+
</tr>
|
|
2168
|
+
</table>
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
## TRTCPublishMode
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
#### Media Stream Publication Mode
|
|
2176
|
+
|
|
2177
|
+
This enumeration type is used for the media stream publishing interface [startPublishMediaStream](https://write.woa.com/document/87029727163494400). TRTC's media stream publishing service can mix multiple audio and video streams in the room into one stream and publish it to a CDN or push it back to the room. You can also publish your current audio and video stream to Tencent or a third-party CDN. Therefore, you need to specify the publishing mode of the corresponding media stream. We provide the following modes.
|
|
2178
|
+
<table>
|
|
2179
|
+
<tr>
|
|
2180
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2181
|
+
|
|
2182
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2183
|
+
|
|
2184
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2185
|
+
</tr>
|
|
2186
|
+
|
|
2187
|
+
<tr>
|
|
2188
|
+
<td rowspan="1" colSpan="1" >TRTCPublishModeUnknown</td>
|
|
2189
|
+
|
|
2190
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
2191
|
+
|
|
2192
|
+
<td rowspan="1" colSpan="1" >Undefined.</td>
|
|
2193
|
+
</tr>
|
|
2194
|
+
|
|
2195
|
+
<tr>
|
|
2196
|
+
<td rowspan="1" colSpan="1" >TRTCPublishBigStreamToCdn</td>
|
|
2197
|
+
|
|
2198
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2199
|
+
|
|
2200
|
+
<td rowspan="1" colSpan="1" >You can set this parameter to publish the main stream ([TRTCVideoStreamTypeBig](https://write.woa.com/document/87029873782558720)) in your room to Tencent or third-party live streaming CDN services (only supports standard RTMP protocol).</td>
|
|
2201
|
+
</tr>
|
|
2202
|
+
|
|
2203
|
+
<tr>
|
|
2204
|
+
<td rowspan="1" colSpan="1" >TRTCPublishSubStreamToCdn</td>
|
|
2205
|
+
|
|
2206
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2207
|
+
|
|
2208
|
+
<td rowspan="1" colSpan="1" >You can set this parameter to publish the substream ([TRTCVideoStreamTypeSub](https://write.woa.com/document/87029873782558720)) in your room to Tencent or third-party live streaming CDN services (only supports standard RTMP protocol).</td>
|
|
2209
|
+
</tr>
|
|
2210
|
+
|
|
2211
|
+
<tr>
|
|
2212
|
+
<td rowspan="1" colSpan="1" >TRTCPublishMixStreamToCdn</td>
|
|
2213
|
+
|
|
2214
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
2215
|
+
|
|
2216
|
+
<td rowspan="1" colSpan="1" >You can set this parameter, together with encoding output parameters ([TRTCStreamEncoderParam](https://write.woa.com/document/87029873782558720)) and mix stream transcoding parameters ([TRTCStreamMixingConfig](https://write.woa.com/document/87029873782558720)), to transcode and publish your specified multiple audio and video streams to Tencent or third-party live streaming CDN services (only supports standard RTMP protocol).</td>
|
|
2217
|
+
</tr>
|
|
2218
|
+
|
|
2219
|
+
<tr>
|
|
2220
|
+
<td rowspan="1" colSpan="1" >TRTCPublishMixStreamToRoom</td>
|
|
2221
|
+
|
|
2222
|
+
<td rowspan="1" colSpan="1" >4</td>
|
|
2223
|
+
|
|
2224
|
+
<td rowspan="1" colSpan="1" >You can set this parameter, together with media stream encoding output parameters ([TRTCStreamEncoderParam](https://write.woa.com/document/87029873782558720)) and mix stream transcoding parameters ([TRTCStreamMixingConfig](https://write.woa.com/document/87029873782558720)), to transcode and publish your specified multiple audio and video streams into your specified room.<br>- Specify the robot information for the pushback room through [TRTCPublishTarget](https://write.woa.com/document/87029873782558720) TRTCUser.</td>
|
|
2225
|
+
</tr>
|
|
2226
|
+
</table>
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
## TRTCEncryptionAlgorithm
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
#### Encryption Algorithm
|
|
2234
|
+
|
|
2235
|
+
This enumeration type is used for the selection of the private encryption algorithm for media streams.
|
|
2236
|
+
<table>
|
|
2237
|
+
<tr>
|
|
2238
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2239
|
+
|
|
2240
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2241
|
+
|
|
2242
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2243
|
+
</tr>
|
|
2244
|
+
|
|
2245
|
+
<tr>
|
|
2246
|
+
<td rowspan="1" colSpan="1" >TRTCEncryptionAlgorithmAes128Gcm</td>
|
|
2247
|
+
|
|
2248
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
2249
|
+
|
|
2250
|
+
<td rowspan="1" colSpan="1" >AES GCM 128.</td>
|
|
2251
|
+
</tr>
|
|
2252
|
+
|
|
2253
|
+
<tr>
|
|
2254
|
+
<td rowspan="1" colSpan="1" >TRTCEncryptionAlgorithmAes256Gcm</td>
|
|
2255
|
+
|
|
2256
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2257
|
+
|
|
2258
|
+
<td rowspan="1" colSpan="1" >AES GCM 256.</td>
|
|
2259
|
+
</tr>
|
|
2260
|
+
</table>
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
## TRTCSpeedTestScene
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
#### Speed Test Scenario
|
|
2268
|
+
|
|
2269
|
+
This enumeration type is used for selecting the speed test scenario.
|
|
2270
|
+
<table>
|
|
2271
|
+
<tr>
|
|
2272
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2273
|
+
|
|
2274
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2275
|
+
|
|
2276
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2277
|
+
</tr>
|
|
2278
|
+
|
|
2279
|
+
<tr>
|
|
2280
|
+
<td rowspan="1" colSpan="1" >TRTCSpeedTestScene_DelayTesting</td>
|
|
2281
|
+
|
|
2282
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2283
|
+
|
|
2284
|
+
<td rowspan="1" colSpan="1" >Latency test.</td>
|
|
2285
|
+
</tr>
|
|
2286
|
+
|
|
2287
|
+
<tr>
|
|
2288
|
+
<td rowspan="1" colSpan="1" >TRTCSpeedTestScene_DelayAndBandwidthTesting</td>
|
|
2289
|
+
|
|
2290
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2291
|
+
|
|
2292
|
+
<td rowspan="1" colSpan="1" >Latency and bandwidth test.</td>
|
|
2293
|
+
</tr>
|
|
2294
|
+
|
|
2295
|
+
<tr>
|
|
2296
|
+
<td rowspan="1" colSpan="1" >TRTCSpeedTestScene_OnlineChorusTesting</td>
|
|
2297
|
+
|
|
2298
|
+
<td rowspan="1" colSpan="1" >3</td>
|
|
2299
|
+
|
|
2300
|
+
<td rowspan="1" colSpan="1" >Online chorus test.</td>
|
|
2301
|
+
</tr>
|
|
2302
|
+
</table>
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
## TRTCGravitySensorAdaptiveMode
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
#### Set Adaptation Mode for Gravity Sensor (Only applicable to mobile devices)
|
|
2310
|
+
<table>
|
|
2311
|
+
<tr>
|
|
2312
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
2313
|
+
|
|
2314
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
2315
|
+
|
|
2316
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2317
|
+
</tr>
|
|
2318
|
+
|
|
2319
|
+
<tr>
|
|
2320
|
+
<td rowspan="1" colSpan="1" >TRTCGravitySensorAdaptiveMode_Disable</td>
|
|
2321
|
+
|
|
2322
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
2323
|
+
|
|
2324
|
+
<td rowspan="1" colSpan="1" >Turn off gravity sensing. Based on the current captured resolution and the set encoding resolution, if they are inconsistent, rotate by 90 degrees to ensure the maximum frame size.</td>
|
|
2325
|
+
</tr>
|
|
2326
|
+
|
|
2327
|
+
<tr>
|
|
2328
|
+
<td rowspan="1" colSpan="1" >TRTCGravitySensorAdaptiveMode_FillByCenterCrop</td>
|
|
2329
|
+
|
|
2330
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
2331
|
+
|
|
2332
|
+
<td rowspan="1" colSpan="1" >Enable gravity sensing. Always ensure the remote screen image is correct. When there is a resolution inconsistency, use the centered cropping mode.</td>
|
|
2333
|
+
</tr>
|
|
2334
|
+
|
|
2335
|
+
<tr>
|
|
2336
|
+
<td rowspan="1" colSpan="1" >TRTCGravitySensorAdaptiveMode_FitWithBlackBorder</td>
|
|
2337
|
+
|
|
2338
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
2339
|
+
|
|
2340
|
+
<td rowspan="1" colSpan="1" >Enable gravity sensing. Always ensure the remote screen image is correct. When there is a resolution inconsistency, use the black border overlay mode.</td>
|
|
2341
|
+
</tr>
|
|
2342
|
+
</table>
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
## TRTCParams
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
#### Room entry parameters
|
|
2350
|
+
|
|
2351
|
+
As an entry parameter for the TRTC SDK, only if this parameter is filled in correctly can you successfully enter the audio and video room specified by roomId or strRoomId.
|
|
2352
|
+
|
|
2353
|
+
Due to historical reasons, TRTC supports two types of room numbers, numeric and string, which are roomId and strRoomId respectively.
|
|
2354
|
+
|
|
2355
|
+
Please note: Do not mix roomId and strRoomId, as they are not interchangeable. For example, the number 123 and the string "123" are considered two completely different rooms in TRTC.
|
|
2356
|
+
<table>
|
|
2357
|
+
<tr>
|
|
2358
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2359
|
+
|
|
2360
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2361
|
+
</tr>
|
|
2362
|
+
|
|
2363
|
+
<tr>
|
|
2364
|
+
<td rowspan="1" colSpan="1" >bussInfo</td>
|
|
2365
|
+
|
|
2366
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Business data field (optional). This field is required for some advanced features.<br>[Recommended Value] Please do not set this field yourself.</td>
|
|
2367
|
+
</tr>
|
|
2368
|
+
|
|
2369
|
+
<tr>
|
|
2370
|
+
<td rowspan="1" colSpan="1" >privateMapKey</td>
|
|
2371
|
+
|
|
2372
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Permission ticket used for permission control (optional). If you want only specific userIds to enter a room, you need to use privateMapKey for permission protection.<br>[Recommended Value] Only recommended for customers with high-level security requirements. For more details, please refer to [Room Entry Permission Protection](https://cloud.tencent.com/document/product/647/32240).</td>
|
|
2373
|
+
</tr>
|
|
2374
|
+
|
|
2375
|
+
<tr>
|
|
2376
|
+
<td rowspan="1" colSpan="1" >role</td>
|
|
2377
|
+
|
|
2378
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Role in live streaming scenarios, only applicable to live streaming scenarios ([TRTCAppSceneLIVE](https://write.woa.com/document/87029873782558720) and [TRTCAppSceneVoiceChatRoom](https://write.woa.com/document/87029873782558720)). Specifying this parameter in a calling scenario is ineffective.<br>[Recommended Value] Default value: Anchor ([TRTCRoleAnchor](https://write.woa.com/document/87029873782558720)).</td>
|
|
2379
|
+
</tr>
|
|
2380
|
+
|
|
2381
|
+
<tr>
|
|
2382
|
+
<td rowspan="1" colSpan="1" >roomId</td>
|
|
2383
|
+
|
|
2384
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Numeric room number, where users (userId) in the same room can see each other and make audio and video calls.<br>[Recommended Value] Value range: 1 - 4294967294.<br>[Special Explanation] roomId and strRoomId are mutually exclusive. If you choose strRoomId, roomId must be set to 0. If both are filled, the SDK will prioritize roomId.<br>[Please note] Do not mix roomId and strRoomId as they are not interchangeable. For example, the number 123 and the string `123` are considered two entirely different rooms in TRTC.</td>
|
|
2385
|
+
</tr>
|
|
2386
|
+
|
|
2387
|
+
<tr>
|
|
2388
|
+
<td rowspan="1" colSpan="1" >sdkAppId</td>
|
|
2389
|
+
|
|
2390
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Application Identifier (Required). Tencent Cloud uses sdkAppId for billing statistics.<br>[Recommended Value] This ID can be obtained from the account information page after creating an application in the [TRTC Console](https://console.cloud.tencent.com/rav/).</td>
|
|
2391
|
+
</tr>
|
|
2392
|
+
|
|
2393
|
+
<tr>
|
|
2394
|
+
<td rowspan="1" colSpan="1" >strRoomId</td>
|
|
2395
|
+
|
|
2396
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] String room number, where users (userId) in the same room can see each other and make audio and video calls.<br>[Special Explanation] roomId and strRoomId are mutually exclusive. If you choose strRoomId, roomId must be set to 0. If both are filled, the SDK will prioritize roomId.<br>[Please note] Do not mix roomId and strRoomId as they are not interchangeable. For example, the number 123 and the string `123` are considered two entirely different rooms in TRTC.<br>[Recommended Value] Length limit is 64 bytes. The following character set range is supported (a total of 89 characters):<br>- Upper and lowercase English letters (a-zA-Z);<br>- Numbers (0-9);<br>- Space,` ! `,` # `,` $ `,` % `,` & `,` ( `,` ) `,` + `,` - `,` : `,` ; `,` < `,` = `,` . `,` > `,` ? `,` @ `,` [ `,` ] `,` ^ `,` _ `,` { `,` } `,` \| `,` ~ `,` , `.</td>
|
|
2397
|
+
</tr>
|
|
2398
|
+
|
|
2399
|
+
<tr>
|
|
2400
|
+
<td rowspan="1" colSpan="1" >streamId</td>
|
|
2401
|
+
|
|
2402
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Used to specify the streamId on the Tencent CSS platform (optional). Once set, you can play the user's audio and video streams on the Tencent CSS CDN through the standard pull streaming scheme (FLV or HLS).<br>[Recommended Value] Length limit is 64 bytes and can be left blank. A recommended scheme is to use ` sdkappid_roomid_userid_main ` as the streamId. This naming convention is easy to identify and will not conflict with your multiple applications.<br>[Special Note] To use Tencent CSS CDN, you need to first enable the "Automatic Bypass Live Streaming" switch on the feature configuration page in the [console](https://console.cloud.tencent.com/trtc/).<br>[Reference Document][CDN Bypass Live Streaming](https://cloud.tencent.com/document/product/647/16826).</td>
|
|
2403
|
+
</tr>
|
|
2404
|
+
|
|
2405
|
+
<tr>
|
|
2406
|
+
<td rowspan="1" colSpan="1" >userDefineRecordId</td>
|
|
2407
|
+
|
|
2408
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Cloud recording switch (optional). Used to specify whether to record this user's audio and video streams in the cloud.<br>[Reference Document][Cloud Recording](https://cloud.tencent.com/document/product/647/16823).<br>[Recommended Value] Length limit is 64 bytes. Only uppercase and lowercase English letters (a-zA-Z), numbers (0-9), underscores, and hyphens are allowed.<br>Scheme 1: Manual Recording Scheme:<br>1. Enable Cloud Recording in the [Console](https://console.cloud.tencent.com/trtc)>Application Management>Cloud Recording Configuration.<br>2. Set the ` recording mode ` to ` manual recording `.<br>3. After setting manual recording, only users who set the userDefineRecordId parameter in a TRTC room will have recorded video files on the cloud. Users who do not specify this parameter will not be recorded.<br>4. The cloud will name the recorded files in the format "userDefineRecordId_start time_end time".<br>Scheme 2: Automatic Recording Scheme:<br>1. Enable Cloud Recording in the [Console](https://console.cloud.tencent.com/trtc)>Application Management>Cloud Recording Configuration.<br>2. Set the ` recording mode ` to ` automatic recording `.<br>3. After setting automatic recording, any user with audio/video uplink in a TRTC room will have recorded video files on the cloud.<br>4. The files will be named in the format ` userDefineRecordId_start time_end time `. If userDefineRecordId is not specified, the files will be named in the format ` streamId_start time_end time `.</td>
|
|
2409
|
+
</tr>
|
|
2410
|
+
|
|
2411
|
+
<tr>
|
|
2412
|
+
<td rowspan="1" colSpan="1" >userId</td>
|
|
2413
|
+
|
|
2414
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] User Identification (Required). The current user's userId, equivalent to username, using UTF-8 encoding.<br>[Recommended Value] If a user's ID in your account system is "mike", then userId can be set to "mike".</td>
|
|
2415
|
+
</tr>
|
|
2416
|
+
|
|
2417
|
+
<tr>
|
|
2418
|
+
<td rowspan="1" colSpan="1" >userSig</td>
|
|
2419
|
+
|
|
2420
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] User Signature (Required). The verification signature corresponding to the current userId, equivalent to using the cloud service's login password.<br>[Recommended Value] For the specific calculation method, please see [How to Calculate UserSig](https://cloud.tencent.com/document/product/647/17275).</td>
|
|
2421
|
+
</tr>
|
|
2422
|
+
</table>
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
## TRTCVideoEncParam
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
#### Video encoding parameters
|
|
2430
|
+
|
|
2431
|
+
This setting determines the picture quality seen by remote users and also the picture quality of the video files recorded on the cloud.
|
|
2432
|
+
<table>
|
|
2433
|
+
<tr>
|
|
2434
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2435
|
+
|
|
2436
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2437
|
+
</tr>
|
|
2438
|
+
|
|
2439
|
+
<tr>
|
|
2440
|
+
<td rowspan="1" colSpan="1" >enableAdjustRes</td>
|
|
2441
|
+
|
|
2442
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Whether to allow dynamic resolution adjustment (enabling this will impact cloud recording).<br>[Recommended Value] This feature is suitable for scenarios where cloud recording is not needed. When enabled, the SDK will intelligently select an appropriate resolution based on the current network conditions to avoid inefficient encoding modes like "high resolution + low bitrate".<br>[Special Note] Default value: Disabled. If you need cloud recording, do not enable this feature because if the video resolution changes, the recorded MP4 on the cloud cannot be played properly on regular players.</td>
|
|
2443
|
+
</tr>
|
|
2444
|
+
|
|
2445
|
+
<tr>
|
|
2446
|
+
<td rowspan="1" colSpan="1" >minVideoBitrate</td>
|
|
2447
|
+
|
|
2448
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Minimum video bitrate. The SDK will actively lower the video bitrate when the network is poor to maintain smoothness, with the minimum lowered to the value set by minVideoBitrate.<br>[Special Note] Default value: 0, in which case the minimum bitrate will be automatically calculated by the SDK based on the resolution you specified.<br>[Recommended Value] You can set both videoBitrate and minVideoBitrate parameters simultaneously to constrain the SDK's video bitrate adjustment range:<br>- If you pursue ` allowing stuttering under weak networks but maintaining clarity `, you can set minVideoBitrate to 60% of videoBitrate.<br>- If you pursue ` allowing blurriness under weak networks but maintaining smoothness `, you can set minVideoBitrate to a lower value (e.g., 100kbps).<br>- If you set videoBitrate and minVideoBitrate to the same value, it is equivalent to disabling the SDK's adaptive video bitrate adjustment capability.</td>
|
|
2449
|
+
</tr>
|
|
2450
|
+
|
|
2451
|
+
<tr>
|
|
2452
|
+
<td rowspan="1" colSpan="1" >resMode</td>
|
|
2453
|
+
|
|
2454
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Resolution Mode (horizontal resolution or vertical resolution).<br>[Recommended Value] For mobile platforms (iOS, Android), it is recommended to choose Portrait. For desktop platforms (Windows, Mac), it is recommended to choose Landscape.<br>[Special Note] If you need to use vertical resolution, specify resMode as Portrait, e.g., 640 × 360 + Portrait = 360 × 640.</td>
|
|
2455
|
+
</tr>
|
|
2456
|
+
|
|
2457
|
+
<tr>
|
|
2458
|
+
<td rowspan="1" colSpan="1" >videoBitrate</td>
|
|
2459
|
+
|
|
2460
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Target video bitrate. The SDK will encode according to the target bitrate and will only actively lower the video bitrate in weak network environments.<br>[Recommended Value] Please refer to the optimal bitrate annotations for each level in TRTCVideoResolution, which can also be appropriately increased. For example, TRTCVideoResolution_1280_720 corresponds to a target bitrate of 1200kbps, but you can set it to 1500kbps for better visual clarity.<br>[Special Note] You can set both videoBitrate and minVideoBitrate parameters simultaneously to constrain the SDK's video bitrate adjustment range:<br>- If you prefer "allowing stuttering under weak network conditions but maintaining clarity," you can set minVideoBitrate to 60% of videoBitrate.<br>- If you prefer "allowing blurring under weak network conditions but maintaining smoothness," you can set minVideoBitrate to a lower value (e.g., 100kbps).<br>- If you set videoBitrate and minVideoBitrate to the same value, it is equivalent to disabling the SDK's adaptive video bitrate adjustment capability.</td>
|
|
2461
|
+
</tr>
|
|
2462
|
+
|
|
2463
|
+
<tr>
|
|
2464
|
+
<td rowspan="1" colSpan="1" >videoFps</td>
|
|
2465
|
+
|
|
2466
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Video capture frame rate.<br>[Recommended Value] 15fps or 20fps. Below 5fps, lag sensation is noticeable. Below 10fps, there will be slight lag. Above 20fps, it will waste bandwidth (the frame rate of movies is 24fps).<br>[Special Note] Some Android phones' front-facing cameras do not support a capture frame rate above 15fps. The capture frame rate of the front-facing camera of some Android phones with a beauty feature may be below 10fps.</td>
|
|
2467
|
+
</tr>
|
|
2468
|
+
|
|
2469
|
+
<tr>
|
|
2470
|
+
<td rowspan="1" colSpan="1" >videoResolution</td>
|
|
2471
|
+
|
|
2472
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Video resolution.<br>[Special Note] If you need to use vertical resolution, specify resMode as Portrait, e.g., 640 × 360 + Portrait = 360 × 640.<br>[Recommended Values]<br>- Mobile video call: It is recommended to choose 360 × 640 or lower resolution, with resMode set to Portrait (vertical resolution).<br>- Mobile online live streaming: It is recommended to choose 540 × 960, with resMode set to Portrait (vertical resolution).<br>- Desktop platform (Win + Mac): It is recommended to choose 640 × 360 or higher resolution, with resMode set to Landscape (horizontal resolution).</td>
|
|
2473
|
+
</tr>
|
|
2474
|
+
</table>
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
## TRTCNetworkQosParam
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
#### Network flow control (Qos) parameter set
|
|
2482
|
+
|
|
2483
|
+
Network traffic control parameters, this setting determines the SDK's adjustment strategy in poor network conditions (for example: "Clarity Priority" or "Smoothness Priority").
|
|
2484
|
+
<table>
|
|
2485
|
+
<tr>
|
|
2486
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2487
|
+
|
|
2488
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2489
|
+
</tr>
|
|
2490
|
+
|
|
2491
|
+
<tr>
|
|
2492
|
+
<td rowspan="1" colSpan="1" >controlMode</td>
|
|
2493
|
+
|
|
2494
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Flow control mode (deprecated).<br>[Recommended Values] Cloud Control.<br>[Special Note] Please set it to Cloud Control mode (TRTCQosControlModeServer).</td>
|
|
2495
|
+
</tr>
|
|
2496
|
+
|
|
2497
|
+
<tr>
|
|
2498
|
+
<td rowspan="1" colSpan="1" >preference</td>
|
|
2499
|
+
|
|
2500
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Clarity Priority or Smooth Priority.<br>[Recommended Values] Clarity Priority.<br>[Special Note] This parameter mainly affects TRTC's audio and video performance in poor network environments:<br>- Smooth Priority: When the current network is insufficient to transmit both clear and smooth images, it prioritizes the smoothness of the picture, which results in a blurrier image with more mosaics. See [TRTCVideoQosPreferenceSmooth](https://write.woa.com/document/87029873782558720)<br>- Clarity Priority (default): When the current network is insufficient to transmit both clear and smooth images, it prioritizes the clarity of the picture, which results in more stuttering. See [TRTCVideoQosPreferenceClear](https://write.woa.com/document/87029873782558720)</td>
|
|
2501
|
+
</tr>
|
|
2502
|
+
</table>
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
## TRTCRenderParams
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
#### Rendering parameters for video footage
|
|
2510
|
+
|
|
2511
|
+
You can control the screen's rotation angle, fill mode, and left-right mirror mode by setting this parameter.
|
|
2512
|
+
<table>
|
|
2513
|
+
<tr>
|
|
2514
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2515
|
+
|
|
2516
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2517
|
+
</tr>
|
|
2518
|
+
|
|
2519
|
+
<tr>
|
|
2520
|
+
<td rowspan="1" colSpan="1" >fillMode</td>
|
|
2521
|
+
|
|
2522
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Screen Fill Mode.<br>[Recommended Values] Fill (the screen may be stretched or cropped) or Fit (the screen may have black edges), Default: [TRTCVideoFillMode_Fill](https://write.woa.com/document/87029873782558720).</td>
|
|
2523
|
+
</tr>
|
|
2524
|
+
|
|
2525
|
+
<tr>
|
|
2526
|
+
<td rowspan="1" colSpan="1" >mirrorType</td>
|
|
2527
|
+
|
|
2528
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Screen Mirror Mode.<br>[Recommended Values] Default value: [TRTCVideoMirrorTypeAuto](https://write.woa.com/document/87029873782558720).</td>
|
|
2529
|
+
</tr>
|
|
2530
|
+
|
|
2531
|
+
<tr>
|
|
2532
|
+
<td rowspan="1" colSpan="1" >rotation</td>
|
|
2533
|
+
|
|
2534
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Clockwise rotation angle of the image.<br>[Recommended Values] Supports 90, 180, and 270-degree rotation angles, Default: [TRTCVideoRotation_0](https://write.woa.com/document/87029873782558720).</td>
|
|
2535
|
+
</tr>
|
|
2536
|
+
</table>
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
## TRTCQualityInfo
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
#### Network quality
|
|
2544
|
+
|
|
2545
|
+
Represents the quality of the network. This value can be used to display each user's network quality on the user interface.
|
|
2546
|
+
<table>
|
|
2547
|
+
<tr>
|
|
2548
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2549
|
+
|
|
2550
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2551
|
+
</tr>
|
|
2552
|
+
|
|
2553
|
+
<tr>
|
|
2554
|
+
<td rowspan="1" colSpan="1" >quality</td>
|
|
2555
|
+
|
|
2556
|
+
<td rowspan="1" colSpan="1" >Network quality</td>
|
|
2557
|
+
</tr>
|
|
2558
|
+
|
|
2559
|
+
<tr>
|
|
2560
|
+
<td rowspan="1" colSpan="1" >userId</td>
|
|
2561
|
+
|
|
2562
|
+
<td rowspan="1" colSpan="1" >User ID</td>
|
|
2563
|
+
</tr>
|
|
2564
|
+
</table>
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
## TRTCVolumeInfo
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
|
|
2571
|
+
#### Volume level
|
|
2572
|
+
|
|
2573
|
+
Represents the evaluation value of voice volume. This value can be used to display each user's volume on the user interface.
|
|
2574
|
+
<table>
|
|
2575
|
+
<tr>
|
|
2576
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2577
|
+
|
|
2578
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2579
|
+
</tr>
|
|
2580
|
+
|
|
2581
|
+
<tr>
|
|
2582
|
+
<td rowspan="1" colSpan="1" >pitch</td>
|
|
2583
|
+
|
|
2584
|
+
<td rowspan="1" colSpan="1" >The voice frequency of the local user (in Hz), range [0 - 4000]. For remote users, this value is always 0.</td>
|
|
2585
|
+
</tr>
|
|
2586
|
+
|
|
2587
|
+
<tr>
|
|
2588
|
+
<td rowspan="1" colSpan="1" >spectrumData</td>
|
|
2589
|
+
|
|
2590
|
+
<td rowspan="1" colSpan="1" >Audio spectrum data represents the distribution of audio data in the frequency domain, divided into 256 frequency bands. The spectrumData records the energy value of each frequency band, each energy value ranges from [-300, 0], in dBFS.<br>**Note**<br>Local spectrum is calculated using the audio data before encoding, affected by local collection volume and BGM, etc. Remote spectrum is calculated using received audio data, and local adjustments to remote playback volume will not affect it.<br></td>
|
|
2591
|
+
</tr>
|
|
2592
|
+
|
|
2593
|
+
<tr>
|
|
2594
|
+
<td rowspan="1" colSpan="1" >userId</td>
|
|
2595
|
+
|
|
2596
|
+
<td rowspan="1" colSpan="1" >The userId of the speaker. If the userId is empty, it represents the current user.</td>
|
|
2597
|
+
</tr>
|
|
2598
|
+
|
|
2599
|
+
<tr>
|
|
2600
|
+
<td rowspan="1" colSpan="1" >vad</td>
|
|
2601
|
+
|
|
2602
|
+
<td rowspan="1" colSpan="1" >Detect vocals or not, 0: Non-vocals, 1: Vocals.</td>
|
|
2603
|
+
</tr>
|
|
2604
|
+
|
|
2605
|
+
<tr>
|
|
2606
|
+
<td rowspan="1" colSpan="1" >volume</td>
|
|
2607
|
+
|
|
2608
|
+
<td rowspan="1" colSpan="1" >The speaker's volume. Value range: [0-100].</td>
|
|
2609
|
+
</tr>
|
|
2610
|
+
</table>
|
|
2611
|
+
|
|
2612
|
+
|
|
2613
|
+
## TRTCSpeedTestParams
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
|
|
2617
|
+
#### Speed test parameters
|
|
2618
|
+
|
|
2619
|
+
You can test the network speed before the user enters the room through the [startSpeedTest](https://write.woa.com/document/87029727163494400) interface (Note: Do not call during a call).
|
|
2620
|
+
<table>
|
|
2621
|
+
<tr>
|
|
2622
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2623
|
+
|
|
2624
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2625
|
+
</tr>
|
|
2626
|
+
|
|
2627
|
+
<tr>
|
|
2628
|
+
<td rowspan="1" colSpan="1" >expectedDownBandwidth</td>
|
|
2629
|
+
|
|
2630
|
+
<td rowspan="1" colSpan="1" >Expected downstream bandwidth (kbps, value range: 10–5000, 0 means not to test).<br>**Note**<br>When the parameter scene is set to TRTCSpeedTestScene_OnlineChorusTesting, to obtain more accurate RTT/jitter information, the value range is limited to 10–1000.<br></td>
|
|
2631
|
+
</tr>
|
|
2632
|
+
|
|
2633
|
+
<tr>
|
|
2634
|
+
<td rowspan="1" colSpan="1" >expectedUpBandwidth</td>
|
|
2635
|
+
|
|
2636
|
+
<td rowspan="1" colSpan="1" >Expected upstream bandwidth (kbps, value range: 10–5000, 0 means not to test).<br>**Note**<br>When the parameter scene is set to TRTCSpeedTestScene_OnlineChorusTesting, to obtain more accurate RTT/jitter information, the value range is limited to 10–1000.<br></td>
|
|
2637
|
+
</tr>
|
|
2638
|
+
|
|
2639
|
+
<tr>
|
|
2640
|
+
<td rowspan="1" colSpan="1" >scene</td>
|
|
2641
|
+
|
|
2642
|
+
<td rowspan="1" colSpan="1" >Speed Testing Scenario.</td>
|
|
2643
|
+
</tr>
|
|
2644
|
+
|
|
2645
|
+
<tr>
|
|
2646
|
+
<td rowspan="1" colSpan="1" >sdkAppId</td>
|
|
2647
|
+
|
|
2648
|
+
<td rowspan="1" colSpan="1" >Application identifier, please refer to the relevant instructions in [TRTCParams](https://write.woa.com/document/87029873782558720).</td>
|
|
2649
|
+
</tr>
|
|
2650
|
+
|
|
2651
|
+
<tr>
|
|
2652
|
+
<td rowspan="1" colSpan="1" >userId</td>
|
|
2653
|
+
|
|
2654
|
+
<td rowspan="1" colSpan="1" >User identifier, please refer to the relevant instructions in [TRTCParams](https://write.woa.com/document/87029873782558720).</td>
|
|
2655
|
+
</tr>
|
|
2656
|
+
|
|
2657
|
+
<tr>
|
|
2658
|
+
<td rowspan="1" colSpan="1" >userSig</td>
|
|
2659
|
+
|
|
2660
|
+
<td rowspan="1" colSpan="1" >User signature, please refer to the relevant instructions in [TRTCParams](https://write.woa.com/document/87029873782558720).</td>
|
|
2661
|
+
</tr>
|
|
2662
|
+
</table>
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
## TRTCSpeedTestResult
|
|
2666
|
+
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
#### Network speed test results
|
|
2670
|
+
|
|
2671
|
+
You can test the network speed before the user enters the room through the [startSpeedTest](https://write.woa.com/document/87029727163494400) interface (Note: Do not call during a call).
|
|
2672
|
+
<table>
|
|
2673
|
+
<tr>
|
|
2674
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2675
|
+
|
|
2676
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2677
|
+
</tr>
|
|
2678
|
+
|
|
2679
|
+
<tr>
|
|
2680
|
+
<td rowspan="1" colSpan="1" >availableDownBandwidth</td>
|
|
2681
|
+
|
|
2682
|
+
<td rowspan="1" colSpan="1" >Downstream bandwidth (kbps, -1: invalid value).</td>
|
|
2683
|
+
</tr>
|
|
2684
|
+
|
|
2685
|
+
<tr>
|
|
2686
|
+
<td rowspan="1" colSpan="1" >availableUpBandwidth</td>
|
|
2687
|
+
|
|
2688
|
+
<td rowspan="1" colSpan="1" >Uplink bandwidth (kbps, -1: invalid value).</td>
|
|
2689
|
+
</tr>
|
|
2690
|
+
|
|
2691
|
+
<tr>
|
|
2692
|
+
<td rowspan="1" colSpan="1" >downJitter</td>
|
|
2693
|
+
|
|
2694
|
+
<td rowspan="1" colSpan="1" >Downlink packet jitter (ms), indicating the stability of data communication in the user's current network environment. The smaller the value, the better. The normal value range is 0ms to 100ms. -1 means that the speed test did not obtain a valid value. Generally, WiFi networks have slightly higher jitter than 4G/5G environments.</td>
|
|
2695
|
+
</tr>
|
|
2696
|
+
|
|
2697
|
+
<tr>
|
|
2698
|
+
<td rowspan="1" colSpan="1" >downLostRate</td>
|
|
2699
|
+
|
|
2700
|
+
<td rowspan="1" colSpan="1" >Downlink packet loss rate, the value range is [0 - 1.0]. For example, 0.2 means that out of every 10 packets received from the server, 2 might be lost mid-transmission.</td>
|
|
2701
|
+
</tr>
|
|
2702
|
+
|
|
2703
|
+
<tr>
|
|
2704
|
+
<td rowspan="1" colSpan="1" >errMsg</td>
|
|
2705
|
+
|
|
2706
|
+
<td rowspan="1" colSpan="1" >Bandwidth test error information.</td>
|
|
2707
|
+
</tr>
|
|
2708
|
+
|
|
2709
|
+
<tr>
|
|
2710
|
+
<td rowspan="1" colSpan="1" >ip</td>
|
|
2711
|
+
|
|
2712
|
+
<td rowspan="1" colSpan="1" >Server IP address.</td>
|
|
2713
|
+
</tr>
|
|
2714
|
+
|
|
2715
|
+
<tr>
|
|
2716
|
+
<td rowspan="1" colSpan="1" >quality</td>
|
|
2717
|
+
|
|
2718
|
+
<td rowspan="1" colSpan="1" >Internal evaluation algorithm calculates the network quality. For more information, please refer to [TRTCQuality](https://write.woa.com/document/87029873782558720).</td>
|
|
2719
|
+
</tr>
|
|
2720
|
+
|
|
2721
|
+
<tr>
|
|
2722
|
+
<td rowspan="1" colSpan="1" >rtt</td>
|
|
2723
|
+
|
|
2724
|
+
<td rowspan="1" colSpan="1" >Latency (ms), representing the round-trip network time between the current device and the TRTC server. The smaller the value, the better. The normal value range is 10ms to 100ms.</td>
|
|
2725
|
+
</tr>
|
|
2726
|
+
|
|
2727
|
+
<tr>
|
|
2728
|
+
<td rowspan="1" colSpan="1" >success</td>
|
|
2729
|
+
|
|
2730
|
+
<td rowspan="1" colSpan="1" >Test success or failure.</td>
|
|
2731
|
+
</tr>
|
|
2732
|
+
|
|
2733
|
+
<tr>
|
|
2734
|
+
<td rowspan="1" colSpan="1" >upJitter</td>
|
|
2735
|
+
|
|
2736
|
+
<td rowspan="1" colSpan="1" >Uplink packet jitter (ms), indicating the stability of data communication in the user's current network environment. The smaller the value, the better. The normal value range is 0ms to 100ms. -1 means that the speed test did not obtain a valid value. Generally, WiFi networks have slightly higher jitter than 4G/5G environments.</td>
|
|
2737
|
+
</tr>
|
|
2738
|
+
|
|
2739
|
+
<tr>
|
|
2740
|
+
<td rowspan="1" colSpan="1" >upLostRate</td>
|
|
2741
|
+
|
|
2742
|
+
<td rowspan="1" colSpan="1" >Uplink packet loss rate, the value range is [0 - 1.0]. For example, 0.3 means that out of every 10 packets sent to the server, 3 might be lost mid-transmission.</td>
|
|
2743
|
+
</tr>
|
|
2744
|
+
</table>
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
## TRTCVideoFrame
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
#### Video frame information
|
|
2752
|
+
|
|
2753
|
+
TRTCVideoFrame describes the raw data of a video frame, which is the video frame data before encoding or after decoding.
|
|
2754
|
+
<table>
|
|
2755
|
+
<tr>
|
|
2756
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2757
|
+
|
|
2758
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2759
|
+
</tr>
|
|
2760
|
+
|
|
2761
|
+
<tr>
|
|
2762
|
+
<td rowspan="1" colSpan="1" >bufferType</td>
|
|
2763
|
+
|
|
2764
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Video data structure type.</td>
|
|
2765
|
+
</tr>
|
|
2766
|
+
|
|
2767
|
+
<tr>
|
|
2768
|
+
<td rowspan="1" colSpan="1" >data</td>
|
|
2769
|
+
|
|
2770
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Video data when bufferType is [TRTCVideoBufferType_NSData](https://write.woa.com/document/87029873782558720), containing a memory data block of NSData type.</td>
|
|
2771
|
+
</tr>
|
|
2772
|
+
|
|
2773
|
+
<tr>
|
|
2774
|
+
<td rowspan="1" colSpan="1" >height</td>
|
|
2775
|
+
|
|
2776
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Video height.</td>
|
|
2777
|
+
</tr>
|
|
2778
|
+
|
|
2779
|
+
<tr>
|
|
2780
|
+
<td rowspan="1" colSpan="1" >pixelBuffer</td>
|
|
2781
|
+
|
|
2782
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Video data when bufferType is [TRTCVideoBufferType_PixelBuffer](https://write.woa.com/document/87029873782558720), containing PixelBuffer exclusive to the iOS platform.</td>
|
|
2783
|
+
</tr>
|
|
2784
|
+
|
|
2785
|
+
<tr>
|
|
2786
|
+
<td rowspan="1" colSpan="1" >pixelFormat</td>
|
|
2787
|
+
|
|
2788
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Pixel format of the video.</td>
|
|
2789
|
+
</tr>
|
|
2790
|
+
|
|
2791
|
+
<tr>
|
|
2792
|
+
<td rowspan="1" colSpan="1" >rotation</td>
|
|
2793
|
+
|
|
2794
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Clockwise rotation angle of video pixels.</td>
|
|
2795
|
+
</tr>
|
|
2796
|
+
|
|
2797
|
+
<tr>
|
|
2798
|
+
<td rowspan="1" colSpan="1" >textureId</td>
|
|
2799
|
+
|
|
2800
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Video Texture ID, video data when bufferType is [TRTCVideoBufferType_Texture](https://write.woa.com/document/87029873782558720), containing texture data for OpenGL rendering.</td>
|
|
2801
|
+
</tr>
|
|
2802
|
+
|
|
2803
|
+
<tr>
|
|
2804
|
+
<td rowspan="1" colSpan="1" >timestamp</td>
|
|
2805
|
+
|
|
2806
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Timestamp of the video frame, in milliseconds.<br>[Recommended values] Can be set to 0 when capturing Definition video. If this parameter is 0, the SDK will automatically populate the timestamp field, but please control the intervals of sendCustomVideoData calls "evenly".</td>
|
|
2807
|
+
</tr>
|
|
2808
|
+
|
|
2809
|
+
<tr>
|
|
2810
|
+
<td rowspan="1" colSpan="1" >width</td>
|
|
2811
|
+
|
|
2812
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Video width.</td>
|
|
2813
|
+
</tr>
|
|
2814
|
+
</table>
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
## TRTCAudioFrame
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
#### Audio frame data
|
|
2822
|
+
<table>
|
|
2823
|
+
<tr>
|
|
2824
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2825
|
+
|
|
2826
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2827
|
+
</tr>
|
|
2828
|
+
|
|
2829
|
+
<tr>
|
|
2830
|
+
<td rowspan="1" colSpan="1" >channels</td>
|
|
2831
|
+
|
|
2832
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Number of channels.</td>
|
|
2833
|
+
</tr>
|
|
2834
|
+
|
|
2835
|
+
<tr>
|
|
2836
|
+
<td rowspan="1" colSpan="1" >data</td>
|
|
2837
|
+
|
|
2838
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Audio data.</td>
|
|
2839
|
+
</tr>
|
|
2840
|
+
|
|
2841
|
+
<tr>
|
|
2842
|
+
<td rowspan="1" colSpan="1" >extraData</td>
|
|
2843
|
+
|
|
2844
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Extra audio data. The data written by the remote user through ` onLocalProcessedAudioFrame ` will be callbacked via this field.</td>
|
|
2845
|
+
</tr>
|
|
2846
|
+
|
|
2847
|
+
<tr>
|
|
2848
|
+
<td rowspan="1" colSpan="1" >sampleRate</td>
|
|
2849
|
+
|
|
2850
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Sample rate.</td>
|
|
2851
|
+
</tr>
|
|
2852
|
+
|
|
2853
|
+
<tr>
|
|
2854
|
+
<td rowspan="1" colSpan="1" >timestamp</td>
|
|
2855
|
+
|
|
2856
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Timestamp, in milliseconds.</td>
|
|
2857
|
+
</tr>
|
|
2858
|
+
</table>
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
## TRTCMixUser
|
|
2862
|
+
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
#### Description information of each stream in Cloud Mixed Streaming
|
|
2866
|
+
|
|
2867
|
+
TRTCMixUser is used to specify the position, size, layer, stream type, etc., of each video screen in Cloud Mixed Streaming.
|
|
2868
|
+
<table>
|
|
2869
|
+
<tr>
|
|
2870
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2871
|
+
|
|
2872
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2873
|
+
</tr>
|
|
2874
|
+
|
|
2875
|
+
<tr>
|
|
2876
|
+
<td rowspan="1" colSpan="1" >image</td>
|
|
2877
|
+
|
|
2878
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Placeholder Image or Watermark Image<br>- A placeholder image refers to an image displayed in the mixed screen when the corresponding userId's mixed content is pure audio.<br>- A watermark image refers to a semi-transparent image pasted on the mixed screen, always covering the mixed screen.<br>- When you specify inputType as TRTCMixInputTypePureAudio, the image is a placeholder image, and you need to specify the userId.<br>- When you specify inputType as TRTCMixInputTypeWatermark, the image is a watermark image, and you do not need to specify the userId.<br>[Recommended Values] Default: empty, which means no placeholder image or watermark image is set.<br>[Special Note]<br>- You can set the image to an asset ID found in the console. This requires you to click the [Add Image] button to upload it beforehand in "[Console](https://console.cloud.tencent.com/trtc) => Application Management => Feature Configuration => Asset Management".<br>- Upon successful upload, you will receive a corresponding "image ID". Convert the "image ID" into a string and set it to the image field accordingly (e.g., if the "image ID" is 63, you can set image to @"63").<br>- You can also set the image to a URL address, and Tencent Cloud's backend server will mix the image specified by the URL into the final screen.<br>- The URL length is limited to 512 bytes. The size of the image must not exceed 2MB.<br>- Supported image formats include png, jpg, jpeg, and bmp. It is recommended to use semi-transparent png images as watermarks.<br>- The image is only effective when inputType is set to TRTCMixInputTypePureAudio or TRTCMixInputTypeWatermark.</td>
|
|
2879
|
+
</tr>
|
|
2880
|
+
|
|
2881
|
+
<tr>
|
|
2882
|
+
<td rowspan="1" colSpan="1" >inputType</td>
|
|
2883
|
+
|
|
2884
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Specifies the mixed content of the stream (only audio, only video, mixed audio and video, watermarking).<br>[Default Value] Default: TRTCMixInputTypeUndefined.<br>[Special Note]<br>- When inputType is set to TRTCMixInputTypeUndefined and pureAudio is set to YES, it is equivalent to setting inputType to TRTCMixInputTypePureAudio.<br>- When inputType is set to TRTCMixInputTypeUndefined and pureAudio is set to NO, it is equivalent to setting inputType to TRTCMixInputTypeAudioVideo.<br>- When inputType is set to TRTCMixInputTypeWatermark, you do not need to specify the userId field but must specify the image field.</td>
|
|
2885
|
+
</tr>
|
|
2886
|
+
|
|
2887
|
+
<tr>
|
|
2888
|
+
<td rowspan="1" colSpan="1" >pureAudio</td>
|
|
2889
|
+
|
|
2890
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Specifies whether the stream is audio-only.<br>[Recommended Values] Default: NO.<br>[Special Note] Deprecated. It is recommended to use the newly introduced field inputType starting from version 8.5.</td>
|
|
2891
|
+
</tr>
|
|
2892
|
+
|
|
2893
|
+
<tr>
|
|
2894
|
+
<td rowspan="1" colSpan="1" >rect</td>
|
|
2895
|
+
|
|
2896
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Specifies the coordinate area of the screen (unit: pixels).</td>
|
|
2897
|
+
</tr>
|
|
2898
|
+
|
|
2899
|
+
<tr>
|
|
2900
|
+
<td rowspan="1" colSpan="1" >renderMode</td>
|
|
2901
|
+
|
|
2902
|
+
<td rowspan="1" colSpan="1" >[Field meaning] The display mode of the screen during output.<br>[Recommended Values] Default: for video streams, 0.0 for cropping, 1 for scaling, and 2 for scaling with a black background.<br>[Special Note] The watermark image and placeholder image currently do not support setting renderMode. Default forced stretching is applied.</td>
|
|
2903
|
+
</tr>
|
|
2904
|
+
|
|
2905
|
+
<tr>
|
|
2906
|
+
<td rowspan="1" colSpan="1" >roomID</td>
|
|
2907
|
+
|
|
2908
|
+
<td rowspan="1" colSpan="1" >[Field meaning] The room number of the audio and video stream (setting it to an empty value represents the room number of the current user).</td>
|
|
2909
|
+
</tr>
|
|
2910
|
+
|
|
2911
|
+
<tr>
|
|
2912
|
+
<td rowspan="1" colSpan="1" >soundLevel</td>
|
|
2913
|
+
|
|
2914
|
+
<td rowspan="1" colSpan="1" >[Field meaning] The volume level of the audio participating in the mix (range: 0 - 100).<br>[Default Value] Default: 100.</td>
|
|
2915
|
+
</tr>
|
|
2916
|
+
|
|
2917
|
+
<tr>
|
|
2918
|
+
<td rowspan="1" colSpan="1" >streamType</td>
|
|
2919
|
+
|
|
2920
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies whether this video stream is a main stream ([TRTCVideoStreamTypeBig](https://write.woa.com/document/87029873782558720)) or a sub-stream ([TRTCVideoStreamTypeSub](https://write.woa.com/document/87029873782558720)).</td>
|
|
2921
|
+
</tr>
|
|
2922
|
+
|
|
2923
|
+
<tr>
|
|
2924
|
+
<td rowspan="1" colSpan="1" >userId</td>
|
|
2925
|
+
|
|
2926
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] User ID</td>
|
|
2927
|
+
</tr>
|
|
2928
|
+
|
|
2929
|
+
<tr>
|
|
2930
|
+
<td rowspan="1" colSpan="1" >zOrder</td>
|
|
2931
|
+
|
|
2932
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the level of the screen (Range: 1 - 15, unique).</td>
|
|
2933
|
+
</tr>
|
|
2934
|
+
</table>
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
## TRTCTranscodingConfig
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
#### Layout and transcoding parameters for Cloud Mixed Streaming
|
|
2942
|
+
|
|
2943
|
+
For specifying the layout position and encoding parameters of each screen during mix streaming and on-cloud transcoding.
|
|
2944
|
+
<table>
|
|
2945
|
+
<tr>
|
|
2946
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
2947
|
+
|
|
2948
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
2949
|
+
</tr>
|
|
2950
|
+
|
|
2951
|
+
<tr>
|
|
2952
|
+
<td rowspan="1" colSpan="1" >appId</td>
|
|
2953
|
+
|
|
2954
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] AppID of Tencent CSS service.<br>[Recommended Value] Please click in sequence in the [TRTC console](https://console.cloud.tencent.com/trtc) [Application Management]=>[Application Information], and obtain the appid from [CDN Live Streaming Info].</td>
|
|
2955
|
+
</tr>
|
|
2956
|
+
|
|
2957
|
+
<tr>
|
|
2958
|
+
<td rowspan="1" colSpan="1" >audioBitrate</td>
|
|
2959
|
+
|
|
2960
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target audio bitrate for cloud transcoding.<br>[Recommended Value] Default: 64kbps, range: [32,192].</td>
|
|
2961
|
+
</tr>
|
|
2962
|
+
|
|
2963
|
+
<tr>
|
|
2964
|
+
<td rowspan="1" colSpan="1" >audioChannels</td>
|
|
2965
|
+
|
|
2966
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the number of audio channels for cloud transcoding.<br>[Recommended Value] Default: 1, representing mono. The allowable values are: 1 - mono, 2 - stereo.</td>
|
|
2967
|
+
</tr>
|
|
2968
|
+
|
|
2969
|
+
<tr>
|
|
2970
|
+
<td rowspan="1" colSpan="1" >audioCodec</td>
|
|
2971
|
+
|
|
2972
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the output stream audio encoding type for cloud transcoding.<br>[Recommended Value] Default: 0, representing LC-AAC. The allowable values are: 0 - LC-AAC, 1 - HE-AAC, 2 - HE-AACv2.<br>[Special Explanation] HE-AAC and HE-AACv2 support output stream audio sample rates of [48000, 44100, 32000, 24000, 16000].<br>[Special Explanation] When audio encoding is set to HE-AACv2, only stereo output is supported.<br>[Special Note] HE-AAC and HE-AACv2 values only take effect when the output stream is the additional streamId you set.</td>
|
|
2973
|
+
</tr>
|
|
2974
|
+
|
|
2975
|
+
<tr>
|
|
2976
|
+
<td rowspan="1" colSpan="1" >audioSampleRate</td>
|
|
2977
|
+
|
|
2978
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target audio sampling rate for cloud transcoding.<br>[Recommended Values] Default: 48000Hz. Supports 12000Hz, 16000Hz, 22050Hz, 24000Hz, 32000Hz, 44100Hz, 48000Hz.</td>
|
|
2979
|
+
</tr>
|
|
2980
|
+
|
|
2981
|
+
<tr>
|
|
2982
|
+
<td rowspan="1" colSpan="1" >backgroundColor</td>
|
|
2983
|
+
|
|
2984
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the background color of the mixed-screen.<br>[Recommended Values] Default: 0x000000 represents black. The format is a hexadecimal number, e.g., "0x61B9F1" represents RGB values as (97,158,241).</td>
|
|
2985
|
+
</tr>
|
|
2986
|
+
|
|
2987
|
+
<tr>
|
|
2988
|
+
<td rowspan="1" colSpan="1" >backgroundImage</td>
|
|
2989
|
+
|
|
2990
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the background image of the mixed-screen.<br>[Recommended Values] Default: empty, meaning no background image is set.<br>[Special Note]<br>- You can set the image to an asset ID found in the console. This requires you to click the [Add Image] button to upload it beforehand in "[Console](https://console.cloud.tencent.com/trtc) => Application Management => Feature Configuration => Asset Management".<br>- Upon successful upload, you will receive a corresponding "image ID". Convert the "image ID" into a string and set it to the image field accordingly (e.g., if the "image ID" is 63, you can set image to @"63").<br>- You can also set the image to a URL address, and Tencent Cloud's backend server will mix the image specified by the URL into the final screen.<br>- The URL length is limited to 512 bytes. The size of the image must not exceed 2MB.<br>- Supported image formats include png, jpg, jpeg, and bmp.</td>
|
|
2991
|
+
</tr>
|
|
2992
|
+
|
|
2993
|
+
<tr>
|
|
2994
|
+
<td rowspan="1" colSpan="1" >bizId</td>
|
|
2995
|
+
|
|
2996
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] bizid of Tencent CSS service.<br>[Recommended Value] Please click in sequence in the [ TRTC Console](https://console.cloud.tencent.com/trtc) [Application Management] => [Application Information], and obtain the bizid from [CDN Live Streaming Info].</td>
|
|
2997
|
+
</tr>
|
|
2998
|
+
|
|
2999
|
+
<tr>
|
|
3000
|
+
<td rowspan="1" colSpan="1" >mixUsers</td>
|
|
3001
|
+
|
|
3002
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the position, size, layer, and stream type information for each video screen in the cloud mix.<br>[Recommended Values] This field is an array of TRTCMixUser type. Each element in the array represents the information for each screen.</td>
|
|
3003
|
+
</tr>
|
|
3004
|
+
|
|
3005
|
+
<tr>
|
|
3006
|
+
<td rowspan="1" colSpan="1" >mode</td>
|
|
3007
|
+
|
|
3008
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Layout mode.<br>[Recommended Values] Please choose according to your business scenario requirements. Pre-layout mode is a well-suited option.</td>
|
|
3009
|
+
</tr>
|
|
3010
|
+
|
|
3011
|
+
<tr>
|
|
3012
|
+
<td rowspan="1" colSpan="1" >streamId</td>
|
|
3013
|
+
|
|
3014
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Live stream ID for output to CDN.<br>[Recommended Value] Default: Null Value, meaning that the multiple audio and video streams in the room will ultimately be mixed into the interface caller's audio and video stream.<br>- If this parameter is not set, the SDK will execute the default logic, meaning the multiple audio and video streams in the room will be mixed into the interface caller's audio and video stream, i.e., A + B => A.<br>- If you set this parameter, the SDK will mix the multiple audio and video streams in the room into the live stream you specified, i.e., A + B => C (C represents the streamId you specified).</td>
|
|
3015
|
+
</tr>
|
|
3016
|
+
|
|
3017
|
+
<tr>
|
|
3018
|
+
<td rowspan="1" colSpan="1" >videoBitrate</td>
|
|
3019
|
+
|
|
3020
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video bitrate (kbps) for cloud transcoding.<br>[Recommended Value] If set to 0, TRTC will estimate a reasonable bitrate based on videoWidth and videoHeight. You can also refer to the bitrate value recommended in the video resolution enum Definition (see the comment section).</td>
|
|
3021
|
+
</tr>
|
|
3022
|
+
|
|
3023
|
+
<tr>
|
|
3024
|
+
<td rowspan="1" colSpan="1" >videoFramerate</td>
|
|
3025
|
+
|
|
3026
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video frame rate (FPS) for cloud transcoding.<br>[Recommended Value] Default: 15fps, range: (0,30].</td>
|
|
3027
|
+
</tr>
|
|
3028
|
+
|
|
3029
|
+
<tr>
|
|
3030
|
+
<td rowspan="1" colSpan="1" >videoGOP</td>
|
|
3031
|
+
|
|
3032
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video keyframe interval (GOP) for cloud transcoding.<br>[Recommended Value] Default: 2 seconds, range: [1,8].</td>
|
|
3033
|
+
</tr>
|
|
3034
|
+
|
|
3035
|
+
<tr>
|
|
3036
|
+
<td rowspan="1" colSpan="1" >videoHeight</td>
|
|
3037
|
+
|
|
3038
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target resolution (height) for cloud transcoding.<br>[Recommended Value] Unit: Pixel Value. Recommended value: 640. If you are only mixing audio streams, set both width and height to 0, otherwise, the mixed transcoding live stream will have a black background.</td>
|
|
3039
|
+
</tr>
|
|
3040
|
+
|
|
3041
|
+
<tr>
|
|
3042
|
+
<td rowspan="1" colSpan="1" >videoSeiParams</td>
|
|
3043
|
+
|
|
3044
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Stream Mixing SEI Parameters. Not specified by default.<br>[Special Note] Parameters are passed in as a JSON String. Example:<br>`{`<br>` "payLoadContent":"xxx",`<br>` "payloadType":5,`<br>` "payloadUuid":"1234567890abcdef1234567890abcdef",`<br>` "interval":1000,`<br>` "followIdr":false`<br>`}`<br>Supported fields and their meanings:<br>- payloadContent: Required. The payload content of the transparent SEI; cannot be empty<br>- payloadType: Required. The type of SEI message, with a range of values: 5, or integers within [100, 254] (excluding 244, which is an internal self-definition timestamp SEI);<br>- payloadUuid: Required when payloadType is 5, otherwise this value is ignored. This value must be a 32-character hexadecimal number;<br>- interval: Optional, default is 1000. The sending interval of SEI, in milliseconds;<br>- followIdr: Optional, default is false. When set to true, SEI will be ensured with keyframes, otherwise, it will not be ensured.</td>
|
|
3045
|
+
</tr>
|
|
3046
|
+
|
|
3047
|
+
<tr>
|
|
3048
|
+
<td rowspan="1" colSpan="1" >videoWidth</td>
|
|
3049
|
+
|
|
3050
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target resolution (width) for cloud transcoding.<br>[Recommended Value] Unit: Pixel Value. Recommended value: 360. If you are only mixing audio streams, set both width and height to 0, otherwise, the mixed transcoding live stream will have a black background.</td>
|
|
3051
|
+
</tr>
|
|
3052
|
+
</table>
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
## TRTCPublishCDNParam
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
#### Retweet parameters when publishing audio and video streams to non-Tencent Cloud CDN
|
|
3060
|
+
|
|
3061
|
+
The TRTC backend service supports publishing audio and video streams to third-party live streaming CDN service providers using the standard RTMP protocol.
|
|
3062
|
+
|
|
3063
|
+
If you are using Tencent CSS CDN Service, you can disregard this parameter and use the [startPublish](https://write.woa.com/document/87029727163494400) interface directly.
|
|
3064
|
+
<table>
|
|
3065
|
+
<tr>
|
|
3066
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3067
|
+
|
|
3068
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3069
|
+
</tr>
|
|
3070
|
+
|
|
3071
|
+
<tr>
|
|
3072
|
+
<td rowspan="1" colSpan="1" >appId</td>
|
|
3073
|
+
|
|
3074
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] AppID of Tencent CSS service.<br>[Recommended Value] Please click in sequence in the [TRTC console](https://console.cloud.tencent.com/trtc) [Application Management]=>[Application Information], and obtain the appid from [CDN Live Streaming Info].</td>
|
|
3075
|
+
</tr>
|
|
3076
|
+
|
|
3077
|
+
<tr>
|
|
3078
|
+
<td rowspan="1" colSpan="1" >bizId</td>
|
|
3079
|
+
|
|
3080
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] bizid of Tencent CSS service.<br>[Recommended Value] Please click in sequence in the [ TRTC Console](https://console.cloud.tencent.com/trtc) [Application Management] => [Application Information], and obtain the bizid from [CDN Live Streaming Info].</td>
|
|
3081
|
+
</tr>
|
|
3082
|
+
|
|
3083
|
+
<tr>
|
|
3084
|
+
<td rowspan="1" colSpan="1" >streamId</td>
|
|
3085
|
+
|
|
3086
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] The streamId that needs to be relayed.<br>[Recommended Value] Default value: empty. If not filled, the default relay is the bidder's bypass stream.</td>
|
|
3087
|
+
</tr>
|
|
3088
|
+
|
|
3089
|
+
<tr>
|
|
3090
|
+
<td rowspan="1" colSpan="1" >url</td>
|
|
3091
|
+
|
|
3092
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the streaming address (RTMP format) of the audio and video stream on the third-party live streaming service provider.<br>[Recommended Value] The rules for the streaming address vary greatly between service providers. Please fill in a valid streaming URL according to the requirements of the target service provider. The TRTC backend server will publish the standard format audio and video streams to the third-party provider according to the URL you filled in.<br>[Special Instructions] The streaming URL must be in RTMP format and comply with your target live streaming service provider's specifications, otherwise, the target service provider will reject push-stream requests from the TRTC backend services.</td>
|
|
3093
|
+
</tr>
|
|
3094
|
+
</table>
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
## TRTCAudioRecordingParams
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
#### Recording parameters for local audio files
|
|
3102
|
+
|
|
3103
|
+
This parameter is used to specify recording parameters in the audio recording interface [startAudioRecording](https://write.woa.com/document/87029727163494400).
|
|
3104
|
+
<table>
|
|
3105
|
+
<tr>
|
|
3106
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3107
|
+
|
|
3108
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3109
|
+
</tr>
|
|
3110
|
+
|
|
3111
|
+
<tr>
|
|
3112
|
+
<td rowspan="1" colSpan="1" >filePath</td>
|
|
3113
|
+
|
|
3114
|
+
<td rowspan="1" colSpan="1" >[Field meaning] The save path of the recording file (required).<br>[Special Instructions] This path must include the file name and format suffix, as the suffix determines the format of the recording file. The currently supported formats are PCM, WAV, and AAC.<br>For example: If you specify the path as "mypath/record/audio.aac", it means you want the SDK to generate an AAC format audio recording file.<br>Please specify a legal path with read and write permissions, otherwise the recording file cannot be generated.</td>
|
|
3115
|
+
</tr>
|
|
3116
|
+
|
|
3117
|
+
<tr>
|
|
3118
|
+
<td rowspan="1" colSpan="1" >maxDurationPerFile</td>
|
|
3119
|
+
|
|
3120
|
+
<td rowspan="1" colSpan="1" >[Field meaning] maxDurationPerFile recording file split duration, unit: milliseconds, minimum value: 10000. The default value is 0, which means no splitting.</td>
|
|
3121
|
+
</tr>
|
|
3122
|
+
|
|
3123
|
+
<tr>
|
|
3124
|
+
<td rowspan="1" colSpan="1" >recordingContent</td>
|
|
3125
|
+
|
|
3126
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Audio recording content type.<br>[Special Instructions] By default, all local and remote audio is recorded.</td>
|
|
3127
|
+
</tr>
|
|
3128
|
+
</table>
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
## TRTCLocalRecordingParams
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
#### Recording parameters for local media files
|
|
3136
|
+
|
|
3137
|
+
This parameter is used to specify recording-related parameters in the local media file recording interface [startLocalRecording](https://write.woa.com/document/87029727163494400).
|
|
3138
|
+
|
|
3139
|
+
The interface startLocalRecording is an enhanced version of the interface startAudioRecording. The former can record video files, while the latter can only record audio files.
|
|
3140
|
+
<table>
|
|
3141
|
+
<tr>
|
|
3142
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3143
|
+
|
|
3144
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3145
|
+
</tr>
|
|
3146
|
+
|
|
3147
|
+
<tr>
|
|
3148
|
+
<td rowspan="1" colSpan="1" >filePath</td>
|
|
3149
|
+
|
|
3150
|
+
<td rowspan="1" colSpan="1" >[Field meaning] The address of the recording file (required). Please ensure the path has read and write permissions and is legal, otherwise the recording file cannot be generated.<br>[Special Instructions] This path must be precise to the file name and format suffix. The suffix determines the format of the recorded file. Currently, the only supported format is MP4.<br>For example: If you specify the path as "mypath/record/test.mp4", it means you want the SDK to generate a local video file in MP4 format.<br>Please specify a legal path with read and write permissions, otherwise the recording file cannot be generated.</td>
|
|
3151
|
+
</tr>
|
|
3152
|
+
|
|
3153
|
+
<tr>
|
|
3154
|
+
<td rowspan="1" colSpan="1" >interval</td>
|
|
3155
|
+
|
|
3156
|
+
<td rowspan="1" colSpan="1" >[Field meaning] interval recording information update frequency, unit: milliseconds, valid range: 1000-10000. Default value is -1, meaning no callback.</td>
|
|
3157
|
+
</tr>
|
|
3158
|
+
|
|
3159
|
+
<tr>
|
|
3160
|
+
<td rowspan="1" colSpan="1" >maxDurationPerFile</td>
|
|
3161
|
+
|
|
3162
|
+
<td rowspan="1" colSpan="1" >[Field meaning] maxDurationPerFile recording file split duration, unit: milliseconds, minimum value: 10000. The default value is 0, which means no splitting.</td>
|
|
3163
|
+
</tr>
|
|
3164
|
+
|
|
3165
|
+
<tr>
|
|
3166
|
+
<td rowspan="1" colSpan="1" >recordType</td>
|
|
3167
|
+
|
|
3168
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Media recording type, default value: TRTCRecordTypeBoth, meaning to record both audio and video simultaneously.</td>
|
|
3169
|
+
</tr>
|
|
3170
|
+
</table>
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
## TRTCSwitchRoomConfig
|
|
3174
|
+
|
|
3175
|
+
|
|
3176
|
+
|
|
3177
|
+
#### Room Switching Parameters
|
|
3178
|
+
|
|
3179
|
+
This parameter is used for the room switching interface [switchRoom](https://write.woa.com/document/87029727163494400), allowing users to quickly switch from one room to another.
|
|
3180
|
+
<table>
|
|
3181
|
+
<tr>
|
|
3182
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3183
|
+
|
|
3184
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3185
|
+
</tr>
|
|
3186
|
+
|
|
3187
|
+
<tr>
|
|
3188
|
+
<td rowspan="1" colSpan="1" >privateMapKey</td>
|
|
3189
|
+
|
|
3190
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Permission ticket used for permission control (optional). If you want only specific userIds to enter a room, you need to use privateMapKey for permission protection.<br>[Recommended Value] Only recommended for customers with high-level security requirements. For more details, please refer to [Room Entry Permission Protection](https://cloud.tencent.com/document/product/647/32240).</td>
|
|
3191
|
+
</tr>
|
|
3192
|
+
|
|
3193
|
+
<tr>
|
|
3194
|
+
<td rowspan="1" colSpan="1" >roomId</td>
|
|
3195
|
+
|
|
3196
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Numeric room number [optional], users in the same room can see each other and have audio and video calls.<br>[Recommended Value] Value range: 1 - 4294967294.<br>[Special Note] roomId and strRoomId must and can only fill one. If both are filled, roomId is preferred.</td>
|
|
3197
|
+
</tr>
|
|
3198
|
+
|
|
3199
|
+
<tr>
|
|
3200
|
+
<td rowspan="1" colSpan="1" >strRoomId</td>
|
|
3201
|
+
|
|
3202
|
+
<td rowspan="1" colSpan="1" >[Field meaning] String room number [optional], users in the same room can see each other and have audio and video calls.<br>[Special Note] roomId and strRoomId must and can only fill one. If both are filled, roomId is preferred.</td>
|
|
3203
|
+
</tr>
|
|
3204
|
+
|
|
3205
|
+
<tr>
|
|
3206
|
+
<td rowspan="1" colSpan="1" >userSig</td>
|
|
3207
|
+
|
|
3208
|
+
<td rowspan="1" colSpan="1" >[Field meaning] User signature [optional], the verification signature corresponding to the current userId, equivalent to a log-in password.<br>If you do not specify a newly calculated userSig when switching rooms, the SDK will continue using the userSig specified when you entered the room (enterRoom).<br>You must ensure the old userSig is within its valid period when switching rooms; otherwise, the room switch will fail.<br>[Recommended Value] For the specific calculation method, please see [How to Calculate UserSig](https://cloud.tencent.com/document/product/647/17275).</td>
|
|
3209
|
+
</tr>
|
|
3210
|
+
</table>
|
|
3211
|
+
|
|
3212
|
+
|
|
3213
|
+
## TRTCAudioFrameDelegateFormat
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
|
|
3217
|
+
#### Format parameters for audio custom callback
|
|
3218
|
+
|
|
3219
|
+
This parameter is used in the audio self Definition callback related interfaces to set the format of the audio data retrieved by the SDK callback (including sampling rate, number of channels, etc.).
|
|
3220
|
+
<table>
|
|
3221
|
+
<tr>
|
|
3222
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3223
|
+
|
|
3224
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3225
|
+
</tr>
|
|
3226
|
+
|
|
3227
|
+
<tr>
|
|
3228
|
+
<td rowspan="1" colSpan="1" >channels</td>
|
|
3229
|
+
|
|
3230
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Number of channels.<br>[Recommended Value] Default: 1, representing mono. The allowable values are: 1 - mono, 2 - stereo.</td>
|
|
3231
|
+
</tr>
|
|
3232
|
+
|
|
3233
|
+
<tr>
|
|
3234
|
+
<td rowspan="1" colSpan="1" >mode</td>
|
|
3235
|
+
|
|
3236
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Callback data read/write mode<br>[Recommended Values] TRTCAudioFrameOperationModeReadOnly: only retrieve audio data from the callback. The available modes are TRTCAudioFrameOperationModeReadOnly and TRTCAudioFrameOperationModeReadWrite.</td>
|
|
3237
|
+
</tr>
|
|
3238
|
+
|
|
3239
|
+
<tr>
|
|
3240
|
+
<td rowspan="1" colSpan="1" >sampleRate</td>
|
|
3241
|
+
|
|
3242
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Sample rate.<br>[Recommended Values] Default: 48000Hz. Supports 16000, 32000, 44100, 48000.</td>
|
|
3243
|
+
</tr>
|
|
3244
|
+
|
|
3245
|
+
<tr>
|
|
3246
|
+
<td rowspan="1" colSpan="1" >samplesPerCall</td>
|
|
3247
|
+
|
|
3248
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Number of sampling points.<br>[Recommended Values] The value must be an integer multiple of sampleRate/100.</td>
|
|
3249
|
+
</tr>
|
|
3250
|
+
</table>
|
|
3251
|
+
|
|
3252
|
+
|
|
3253
|
+
## TRTCScreenCaptureSourceInfo
|
|
3254
|
+
|
|
3255
|
+
|
|
3256
|
+
|
|
3257
|
+
#### Target information for screen sharing (only applicable to desktop systems)
|
|
3258
|
+
|
|
3259
|
+
When users are sharing a screen, they can choose to capture the entire desktop or just a specific program window.
|
|
3260
|
+
|
|
3261
|
+
TRTCScreenCaptureSourceInfo describes the target information to be shared, including ID, name, thumbnail, etc. The field information in this structure is read-only.
|
|
3262
|
+
<table>
|
|
3263
|
+
<tr>
|
|
3264
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3265
|
+
|
|
3266
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3267
|
+
</tr>
|
|
3268
|
+
|
|
3269
|
+
<tr>
|
|
3270
|
+
<td rowspan="1" colSpan="1" >extInfo</td>
|
|
3271
|
+
|
|
3272
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Extended information of the window.</td>
|
|
3273
|
+
</tr>
|
|
3274
|
+
|
|
3275
|
+
<tr>
|
|
3276
|
+
<td rowspan="1" colSpan="1" >icon</td>
|
|
3277
|
+
|
|
3278
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Icon of the shared window.</td>
|
|
3279
|
+
</tr>
|
|
3280
|
+
|
|
3281
|
+
<tr>
|
|
3282
|
+
<td rowspan="1" colSpan="1" >sourceId</td>
|
|
3283
|
+
|
|
3284
|
+
<td rowspan="1" colSpan="1" >[Field meaning] The ID of the capture source: for a window, this field represents the window ID; for a screen, this field represents the monitor ID.</td>
|
|
3285
|
+
</tr>
|
|
3286
|
+
|
|
3287
|
+
<tr>
|
|
3288
|
+
<td rowspan="1" colSpan="1" >sourceName</td>
|
|
3289
|
+
|
|
3290
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Capturing source name (encoded in UTF8).</td>
|
|
3291
|
+
</tr>
|
|
3292
|
+
|
|
3293
|
+
<tr>
|
|
3294
|
+
<td rowspan="1" colSpan="1" >thumbnail</td>
|
|
3295
|
+
|
|
3296
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Thumbnail of the shared window.</td>
|
|
3297
|
+
</tr>
|
|
3298
|
+
|
|
3299
|
+
<tr>
|
|
3300
|
+
<td rowspan="1" colSpan="1" >type</td>
|
|
3301
|
+
|
|
3302
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Collection source type (Is it sharing the entire screen or a specific window?).</td>
|
|
3303
|
+
</tr>
|
|
3304
|
+
</table>
|
|
3305
|
+
|
|
3306
|
+
|
|
3307
|
+
## TRTCAudioParallelParams
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
|
|
3311
|
+
#### Parameters for Intelligent Concurrent Playback Strategy of Remote Audio Stream
|
|
3312
|
+
|
|
3313
|
+
This parameter is used to set the intelligent concurrent playback strategy for remote audio streams.
|
|
3314
|
+
<table>
|
|
3315
|
+
<tr>
|
|
3316
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3317
|
+
|
|
3318
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3319
|
+
</tr>
|
|
3320
|
+
|
|
3321
|
+
<tr>
|
|
3322
|
+
<td rowspan="1" colSpan="1" >includeUsers</td>
|
|
3323
|
+
|
|
3324
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Designated users who will definitely be able to play concurrently.<br>[Special note] List of user IDs for guaranteed concurrent playback. These users are not part of the intelligent selection.<br>The number of includeUsers must be less than maxCount, otherwise, the concurrent playback setting is invalid.<br>includeUsers is only effective when maxCount > 0. When includeUsers is effective, the maximum number of concurrent intelligent selections = maxCount - the number of effective includeUsers.</td>
|
|
3325
|
+
</tr>
|
|
3326
|
+
|
|
3327
|
+
<tr>
|
|
3328
|
+
<td rowspan="1" colSpan="1" >maxCount</td>
|
|
3329
|
+
|
|
3330
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Maximum number of concurrent playbacks. Default value: 0.<br>- If maxCount > 0 and the actual number of users > maxCount, SDK will intelligently select maxCount streams for playback in real-time, significantly reducing performance consumption.<br>- If maxCount = 0, SDK will not limit the number of concurrent playbacks, which might cause performance issues in rooms with a high number of participants.</td>
|
|
3331
|
+
</tr>
|
|
3332
|
+
</table>
|
|
3333
|
+
|
|
3334
|
+
|
|
3335
|
+
## TRTCUser
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
|
|
3339
|
+
#### User information on media stream publishing configuration
|
|
3340
|
+
|
|
3341
|
+
You can set this parameter, along with media stream target publishing parameters ([TRTCPublishTarget](https://write.woa.com/document/87029873782558720)) and stream mixing transcoding parameters ([TRTCStreamMixingConfig](https://write.woa.com/document/87029873782558720)), to transcode multiple audio and video streams you specify and publish them to the target publishing address you provide
|
|
3342
|
+
<table>
|
|
3343
|
+
<tr>
|
|
3344
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3345
|
+
|
|
3346
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3347
|
+
</tr>
|
|
3348
|
+
|
|
3349
|
+
<tr>
|
|
3350
|
+
<td rowspan="1" colSpan="1" >intRoomId</td>
|
|
3351
|
+
|
|
3352
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Numeric room number, which needs to match the room number type in your join room parameters ([TRTCParams](https://write.woa.com/document/87029873782558720)).<br>[Recommended Value] Value range: 1 - 4294967294.<br>[Special Note] intRoomId and strRoomId are mutually exclusive. If you choose strRoomId in your room entry parameters, then intRoomId needs to be set to 0. If both are filled, the SDK will prioritize intRoomId.</td>
|
|
3353
|
+
</tr>
|
|
3354
|
+
|
|
3355
|
+
<tr>
|
|
3356
|
+
<td rowspan="1" colSpan="1" >strRoomId</td>
|
|
3357
|
+
|
|
3358
|
+
<td rowspan="1" colSpan="1" >[Field meaning] String room number, which needs to match the room number type in your join room parameters ([TRTCParams](https://write.woa.com/document/87029873782558720)).<br>[Special Note] intRoomId and strRoomId are mutually exclusive. If you choose roomId in your room entry parameters, then strRoomId does not need to be filled. If both are filled, the SDK will prioritize intRoomId.<br>[Recommended Value] Length limit is 64 bytes. The following character set range is supported (a total of 89 characters):<br>- Upper and lowercase English letters (a-zA-Z);<br>- Numbers (0-9);<br>- Space,` ! `,` # `,` $ `,` % `,` & `,` ( `,` ) `,` + `,` - `,` : `,` ; `,` < `,` = `,` . `,` > `,` ? `,` @ `,` [ `,` ] `,` ^ `,` _ `,` { `,` } `,` \| `,` ~ `,` , `.</td>
|
|
3359
|
+
</tr>
|
|
3360
|
+
|
|
3361
|
+
<tr>
|
|
3362
|
+
<td rowspan="1" colSpan="1" >userId</td>
|
|
3363
|
+
|
|
3364
|
+
<td rowspan="1" colSpan="1" >[Field meaning] User identifier, the current user's userId, equivalent to username, using UTF-8 encoding.<br>[Recommended Value] If a user's ID in your account system is "mike", then userId can be set to "mike".</td>
|
|
3365
|
+
</tr>
|
|
3366
|
+
</table>
|
|
3367
|
+
|
|
3368
|
+
|
|
3369
|
+
## TRTCPublishCdnUrl
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
#### URL configuration for publishing audio and video streams to Tencent or third-party CDN
|
|
3374
|
+
|
|
3375
|
+
This configuration is for the target streaming configuration ([TRTCPublishTarget](https://write.woa.com/document/87029873782558720)) in the media stream publishing interface [startPublishMediaStream](https://write.woa.com/document/87029727163494400)
|
|
3376
|
+
<table>
|
|
3377
|
+
<tr>
|
|
3378
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3379
|
+
|
|
3380
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3381
|
+
</tr>
|
|
3382
|
+
|
|
3383
|
+
<tr>
|
|
3384
|
+
<td rowspan="1" colSpan="1" >isInternalLine</td>
|
|
3385
|
+
|
|
3386
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies whether the audio and video stream is published to Tencent Cloud.<br>[Recommended Values] Default: true.<br>[Special Instructions] If your target live streaming service provider is Tencent, set this parameter to true. The backend billing system will not charge for the retweet service fee in this case.</td>
|
|
3387
|
+
</tr>
|
|
3388
|
+
|
|
3389
|
+
<tr>
|
|
3390
|
+
<td rowspan="1" colSpan="1" >rtmpUrl</td>
|
|
3391
|
+
|
|
3392
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the streaming address (RTMP format) of the audio and video stream on Tencent or third-party live streaming service providers.<br>[Recommended Value] The rules for the streaming address vary greatly between service providers. Please fill in a valid streaming URL according to the requirements of the target service provider. The TRTC backend server will publish the standard format audio and video streams to the third-party provider according to the URL you filled in.<br>[Special Instructions] The streaming URL must be in RTMP format and comply with your target live streaming service provider's specifications, otherwise, the target service provider will reject push-stream requests from the TRTC backend services.</td>
|
|
3393
|
+
</tr>
|
|
3394
|
+
</table>
|
|
3395
|
+
|
|
3396
|
+
|
|
3397
|
+
## TRTCPublishTarget
|
|
3398
|
+
|
|
3399
|
+
|
|
3400
|
+
|
|
3401
|
+
#### Target Push Configuration
|
|
3402
|
+
|
|
3403
|
+
This configuration is for the media stream publishing interface [startPublishMediaStream](https://write.woa.com/document/87029727163494400).
|
|
3404
|
+
<table>
|
|
3405
|
+
<tr>
|
|
3406
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3407
|
+
|
|
3408
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3409
|
+
</tr>
|
|
3410
|
+
|
|
3411
|
+
<tr>
|
|
3412
|
+
<td rowspan="1" colSpan="1" >cdnUrlList</td>
|
|
3413
|
+
|
|
3414
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] The streaming address (RTMP format) for publishing to Tencent or third-party live streaming service providers.<br>[Special Instructions] If your mode is set to TRTCPublishMixStreamToRoom, you do not need to set this parameter.</td>
|
|
3415
|
+
</tr>
|
|
3416
|
+
|
|
3417
|
+
<tr>
|
|
3418
|
+
<td rowspan="1" colSpan="1" >mixStreamIdentity</td>
|
|
3419
|
+
|
|
3420
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Push-back Room Robot Information.<br>[Special Instructions] You need to set this parameter only if your mode is set to TRTCPublishMixStreamToRoom.<br>[Special Instructions] After setting, the transcoded audio and video data will be pushed back to your specified room. It is recommended to set a special userId to avoid confusion between the push-back robot and the host using the TRTC SDK to join the room.<br>[Special Instructions] Users involved in stream mixing cannot subscribe to the transcoded stream.<br>[Special Note] When the subscription mode you set before entering the room ([setDefaultStreamRecvMode](https://write.woa.com/document/87029727163494400)) is set to manual, you will need to manage the audio and video streams you wish to pull yourself (typically, when you pull the transcoding stream of the room, you should unsubscribe from the corresponding audio and video single streams involved in transcoding).<br>[Special Explanation] If the subscription mode you set before entering the room ([setDefaultStreamRecvMode](https://write.woa.com/document/87029727163494400)) is automatic, users not participating in transcoding will automatically receive the transcoded stream sent by the backend and will no longer receive the audio and video single streams involved in transcoding. Unless you explicitly unsubscribe ([muteRemoteVideoStream](https://write.woa.com/document/87029727163494400) and [muteRemoteAudio](https://write.woa.com/document/87029727163494400)), the transcoded stream data will continue to be sent.</td>
|
|
3421
|
+
</tr>
|
|
3422
|
+
|
|
3423
|
+
<tr>
|
|
3424
|
+
<td rowspan="1" colSpan="1" >mode</td>
|
|
3425
|
+
|
|
3426
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Media Stream Publishing Mode.<br>[Recommended Values] Please choose according to your business scenario requirements. TRTC supports relay, transcoding, and rollback to RTC room modes.<br>[Special Explanation] If your business scenario requires multiple publishing modes, you can call the media stream publishing interface ([startPublishMediaStream](https://write.woa.com/document/87029727163494400)) multiple times and set different TRTCPublishTargets separately.<br>[Special Explanation] For the same mode, please correspond to a media stream publishing interface ([startPublishMediaStream](https://write.woa.com/document/87029727163494400)), and use updatePublishCDNStream for updates when adjustments are needed later.</td>
|
|
3427
|
+
</tr>
|
|
3428
|
+
</table>
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
## TRTCVideoLayout
|
|
3432
|
+
|
|
3433
|
+
|
|
3434
|
+
|
|
3435
|
+
#### Transcode Video Layout
|
|
3436
|
+
|
|
3437
|
+
This configuration is for the transcoding settings ([TRTCStreamMixingConfig](https://write.woa.com/document/87029873782558720)) in the media stream publishing interface ([startPublishMediaStream](https://write.woa.com/document/87029727163494400)).
|
|
3438
|
+
|
|
3439
|
+
For specifying the position, size, layer, and stream type of each video screen in the transcoded stream.
|
|
3440
|
+
<table>
|
|
3441
|
+
<tr>
|
|
3442
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3443
|
+
|
|
3444
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3445
|
+
</tr>
|
|
3446
|
+
|
|
3447
|
+
<tr>
|
|
3448
|
+
<td rowspan="1" colSpan="1" >backgroundColor</td>
|
|
3449
|
+
|
|
3450
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the background color of the mixed-screen.<br>[Recommended Values] Default: 0x000000 represents black. The format is a hexadecimal number, e.g., "0x61B9F1" represents RGB values as (97,158,241).</td>
|
|
3451
|
+
</tr>
|
|
3452
|
+
|
|
3453
|
+
<tr>
|
|
3454
|
+
<td rowspan="1" colSpan="1" >fillMode</td>
|
|
3455
|
+
|
|
3456
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Screen Fill Mode.<br>[Recommended Values] Fill (the screen may be stretched or cropped) or Fit (the screen may have black edges), Default: [TRTCVideoFillMode_Fill](https://write.woa.com/document/87029873782558720).</td>
|
|
3457
|
+
</tr>
|
|
3458
|
+
|
|
3459
|
+
<tr>
|
|
3460
|
+
<td rowspan="1" colSpan="1" >fixedVideoStreamType</td>
|
|
3461
|
+
|
|
3462
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies whether this video stream is a main stream ([TRTCVideoStreamTypeBig](https://write.woa.com/document/87029873782558720)) or a sub-stream ([TRTCVideoStreamTypeSub](https://write.woa.com/document/87029873782558720)).</td>
|
|
3463
|
+
</tr>
|
|
3464
|
+
|
|
3465
|
+
<tr>
|
|
3466
|
+
<td rowspan="1" colSpan="1" >fixedVideoUser</td>
|
|
3467
|
+
|
|
3468
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] User Information Participating in Transcoding.<br>[Special Note] User information ([TRTCUser](https://write.woa.com/document/87029873782558720)) can be left unfilled (i.e., userId, intRoomId, and strRoomId are all left blank). In this case, when there is an anchor streaming audio and video data in the room initiating the stream mix, the TRTC back-end server will automatically populate the corresponding anchor's audio and video into your specified layout.</td>
|
|
3469
|
+
</tr>
|
|
3470
|
+
|
|
3471
|
+
<tr>
|
|
3472
|
+
<td rowspan="1" colSpan="1" >placeHolderImage</td>
|
|
3473
|
+
|
|
3474
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Placeholder image URL, i.e., when the specified user is temporarily only sending audio, Tencent Cloud's back-end server will mix the image specified by this URL into the final screen.<br>[Recommended Values] Default: empty, which means no placeholder image is set.<br>[Special Note] At this time, you need to specify the user information for fixedVideoUser's userId.<br>[Special Note]<br>- The URL length is limited to 512 bytes. The size of the image must not exceed 2MB.<br>- Supported image formats include png, jpg, jpeg, and bmp. It is recommended to use semi-transparent png images as placeholders.</td>
|
|
3475
|
+
</tr>
|
|
3476
|
+
|
|
3477
|
+
<tr>
|
|
3478
|
+
<td rowspan="1" colSpan="1" >rect</td>
|
|
3479
|
+
|
|
3480
|
+
<td rowspan="1" colSpan="1" >[Field meaning] Specifies the coordinate area of the screen (unit: pixels).</td>
|
|
3481
|
+
</tr>
|
|
3482
|
+
|
|
3483
|
+
<tr>
|
|
3484
|
+
<td rowspan="1" colSpan="1" >zOrder</td>
|
|
3485
|
+
|
|
3486
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the level of the screen (Range: 0 - 15, unique).</td>
|
|
3487
|
+
</tr>
|
|
3488
|
+
</table>
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
## TRTCWatermark
|
|
3492
|
+
|
|
3493
|
+
|
|
3494
|
+
|
|
3495
|
+
#### Watermark Layout
|
|
3496
|
+
|
|
3497
|
+
This configuration is used in the Transcoding Configuration ([TRTCStreamMixingConfig](https://write.woa.com/document/87029873782558720)) of the Media Stream Publishing Interface ([startPublishMediaStream](https://write.woa.com/document/87029727163494400))
|
|
3498
|
+
<table>
|
|
3499
|
+
<tr>
|
|
3500
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3501
|
+
|
|
3502
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3503
|
+
</tr>
|
|
3504
|
+
|
|
3505
|
+
<tr>
|
|
3506
|
+
<td rowspan="1" colSpan="1" >rect</td>
|
|
3507
|
+
|
|
3508
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the coordinate area of the watermark screen (unit: pixels).</td>
|
|
3509
|
+
</tr>
|
|
3510
|
+
|
|
3511
|
+
<tr>
|
|
3512
|
+
<td rowspan="1" colSpan="1" >watermarkUrl</td>
|
|
3513
|
+
|
|
3514
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Watermark URL, Tencent Cloud's back-end server will mix the image specified by this URL into the final screen.<br>[Special Note]<br>- The URL length is limited to 512 bytes. The size of the image must not exceed 2MB.<br>- Supported image formats include png, jpg, jpeg, and bmp. It is recommended to use semi-transparent png images as watermarks.</td>
|
|
3515
|
+
</tr>
|
|
3516
|
+
|
|
3517
|
+
<tr>
|
|
3518
|
+
<td rowspan="1" colSpan="1" >zOrder</td>
|
|
3519
|
+
|
|
3520
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the level of the watermark screen (Range: 0 - 15, unique).</td>
|
|
3521
|
+
</tr>
|
|
3522
|
+
</table>
|
|
3523
|
+
|
|
3524
|
+
|
|
3525
|
+
## TRTCStreamEncoderParam
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
#### Media Stream Encoding Output Parameters
|
|
3530
|
+
|
|
3531
|
+
[Field Meaning] This configuration is used in the Media Stream Publishing Interface ([startPublishMediaStream](https://write.woa.com/document/87029727163494400)).
|
|
3532
|
+
|
|
3533
|
+
[Special Note] When the mode configuration in your publishing target ([TRTCPublishTarget](https://write.woa.com/document/87029873782558720)) is set to TRTCPublish_MixStream_ToCdn or TRTCPublish_MixStream_ToRoom, this parameter is required.
|
|
3534
|
+
|
|
3535
|
+
[Special Explanation] When you use the retweet service (mode is TRTCPublish_BigStream_ToCdn or TRTCPublish_SubStream_ToCdn), to ensure better stability and CDN play compatibility, it is also recommended that you fill in the specific parameters of this configuration.
|
|
3536
|
+
<table>
|
|
3537
|
+
<tr>
|
|
3538
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3539
|
+
|
|
3540
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3541
|
+
</tr>
|
|
3542
|
+
|
|
3543
|
+
<tr>
|
|
3544
|
+
<td rowspan="1" colSpan="1" >audioEncodedChannelNum</td>
|
|
3545
|
+
|
|
3546
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target audio channel count for the media publish stream.<br>[Recommended Value] Default: 1, representing mono. The allowable values are: 1 - mono, 2 - stereo.</td>
|
|
3547
|
+
</tr>
|
|
3548
|
+
|
|
3549
|
+
<tr>
|
|
3550
|
+
<td rowspan="1" colSpan="1" >audioEncodedCodecType</td>
|
|
3551
|
+
|
|
3552
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target audio encoding type for the media publish stream.<br>[Recommended Value] Default: 0, representing LC-AAC. The allowable values are: 0 - LC-AAC, 1 - HE-AAC, 2 - HE-AACv2.<br>[Special Explanation] HE-AAC and HE-AACv2 support output stream audio sample rates of [48000, 44100, 32000, 24000, 16000].<br>[Special Explanation] When audio encoding is set to HE-AACv2, only stereo output is supported.</td>
|
|
3553
|
+
</tr>
|
|
3554
|
+
|
|
3555
|
+
<tr>
|
|
3556
|
+
<td rowspan="1" colSpan="1" >audioEncodedKbps</td>
|
|
3557
|
+
|
|
3558
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target audio bitrate (kbps) for the media publish stream.<br>[Recommended Value] Default: 50kbps, range: [32,192].</td>
|
|
3559
|
+
</tr>
|
|
3560
|
+
|
|
3561
|
+
<tr>
|
|
3562
|
+
<td rowspan="1" colSpan="1" >audioEncodedSampleRate</td>
|
|
3563
|
+
|
|
3564
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target audio sampling rate for the media publish stream.<br>[Recommended Value] Default: 48000Hz. Values are [48000, 44100, 32000, 24000, 16000, 8000], unit is Hz.</td>
|
|
3565
|
+
</tr>
|
|
3566
|
+
|
|
3567
|
+
<tr>
|
|
3568
|
+
<td rowspan="1" colSpan="1" >videoEncodedCodecType</td>
|
|
3569
|
+
|
|
3570
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video encoding type for the media publish stream.<br>[Recommended Value] Default: 0, representing H264. The allowable values are: 0 - H264, 1 - H265.</td>
|
|
3571
|
+
</tr>
|
|
3572
|
+
|
|
3573
|
+
<tr>
|
|
3574
|
+
<td rowspan="1" colSpan="1" >videoEncodedFPS</td>
|
|
3575
|
+
|
|
3576
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video frame rate (FPS) for the media publish stream.<br>[Recommended Value] Recommended value: 20fps, range: (0,30].</td>
|
|
3577
|
+
</tr>
|
|
3578
|
+
|
|
3579
|
+
<tr>
|
|
3580
|
+
<td rowspan="1" colSpan="1" >videoEncodedGOP</td>
|
|
3581
|
+
|
|
3582
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video keyframe interval (GOP) for the media publish stream.<br>[Recommended Value] Recommended value: 3 seconds, range: [1,5].</td>
|
|
3583
|
+
</tr>
|
|
3584
|
+
|
|
3585
|
+
<tr>
|
|
3586
|
+
<td rowspan="1" colSpan="1" >videoEncodedHeight</td>
|
|
3587
|
+
|
|
3588
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target resolution (height) for the media publish stream.<br>[Recommended Value] Unit: Pixel Value. Recommended value: 640. If you are only mixing audio streams, set both width and height to 0, otherwise, the mixed transcoding live stream will have a black background.</td>
|
|
3589
|
+
</tr>
|
|
3590
|
+
|
|
3591
|
+
<tr>
|
|
3592
|
+
<td rowspan="1" colSpan="1" >videoEncodedKbps</td>
|
|
3593
|
+
|
|
3594
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target video bitrate (kbps) for the media publish stream.<br>[Recommended Values] If set to 0, TRTC will estimate a reasonable bitrate based on videoEncodedWidth and videoEncodedHeight. You can also refer to the bitrate value recommended in the video resolution enum Definition (see the comment section).</td>
|
|
3595
|
+
</tr>
|
|
3596
|
+
|
|
3597
|
+
<tr>
|
|
3598
|
+
<td rowspan="1" colSpan="1" >videoEncodedWidth</td>
|
|
3599
|
+
|
|
3600
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the target resolution (width) for the media publish stream.<br>[Recommended Values] Unit: Pixel Value. Recommended value: 368. If you are only mixing audio streams, set both width and height to 0, otherwise, the mixed transcoding live stream will have a black background.</td>
|
|
3601
|
+
</tr>
|
|
3602
|
+
|
|
3603
|
+
<tr>
|
|
3604
|
+
<td rowspan="1" colSpan="1" >videoSeiParams</td>
|
|
3605
|
+
|
|
3606
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Stream Mixing SEI Parameters. Not specified by default.<br>[Special Note] Parameters are passed in as a JSON String. Example:<br>`{`<br>` "payLoadContent":"xxx",`<br>` "payloadType":5,`<br>` "payloadUuid":"1234567890abcdef1234567890abcdef",`<br>` "interval":1000,`<br>` "followIdr":false`<br>`}`<br>Supported fields and their meanings:<br>- payloadContent: Required. The payload content of the transparent SEI; cannot be empty<br>- payloadType: Required. The type of SEI message, with a range of values: 5, or integers within [100, 254] (excluding 244, which is an internal self-definition timestamp SEI);<br>- payloadUuid: Required when payloadType is 5, otherwise this value is ignored. This value must be a 32-character hexadecimal number;<br>- interval: Optional, default is 1000. The sending interval of SEI, in milliseconds;<br>- followIdr: Optional, default is false. When set to true, SEI will be ensured with keyframes, otherwise, it will not be ensured.</td>
|
|
3607
|
+
</tr>
|
|
3608
|
+
</table>
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
## TRTCStreamMixingConfig
|
|
3612
|
+
|
|
3613
|
+
|
|
3614
|
+
|
|
3615
|
+
#### Media Stream Transcoding Configuration Parameters
|
|
3616
|
+
|
|
3617
|
+
This configuration is used for the media stream publish interface ([startPublishMediaStream](https://write.woa.com/document/87029727163494400)).
|
|
3618
|
+
|
|
3619
|
+
For specifying the layout position information of each screen and the input audio information during transcoding.
|
|
3620
|
+
<table>
|
|
3621
|
+
<tr>
|
|
3622
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3623
|
+
|
|
3624
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3625
|
+
</tr>
|
|
3626
|
+
|
|
3627
|
+
<tr>
|
|
3628
|
+
<td rowspan="1" colSpan="1" >audioMixUserList</td>
|
|
3629
|
+
|
|
3630
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the information of each input audio stream in the transcoding stream.<br>[Recommended Values] This field is an array of TRTCUser type. Each element in the array represents information for each input audio stream.<br>[Special Note] User information can be left blank (i.e., audioMixUserList is empty). In this case, if the audio-related encoding output parameters in TRTCStreamEncoderParam are set, the TRTC backend server will automatically mix the audio of all hosts (currently supports up to 16 audio and video inputs).</td>
|
|
3631
|
+
</tr>
|
|
3632
|
+
|
|
3633
|
+
<tr>
|
|
3634
|
+
<td rowspan="1" colSpan="1" >backgroundColor</td>
|
|
3635
|
+
|
|
3636
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the background color of the mixed-screen.<br>[Recommended Values] Default: 0x000000 represents black. The format is a hexadecimal number, e.g., "0x61B9F1" represents RGB values as (97,158,241).</td>
|
|
3637
|
+
</tr>
|
|
3638
|
+
|
|
3639
|
+
<tr>
|
|
3640
|
+
<td rowspan="1" colSpan="1" >backgroundImage</td>
|
|
3641
|
+
|
|
3642
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the background image URL for the mixed screen. Tencent Cloud's backend server will mix the image specified by the URL into the final screen.<br>[Recommended Values] Default: empty, meaning no background image is set.<br>[Special Note]<br>- The URL length is limited to 512 bytes. The size of the image must not exceed 2MB.<br>- Supported image formats include png, jpg, jpeg, and bmp. It is recommended to use semi-transparent png images as background images.</td>
|
|
3643
|
+
</tr>
|
|
3644
|
+
|
|
3645
|
+
<tr>
|
|
3646
|
+
<td rowspan="1" colSpan="1" >videoLayoutList</td>
|
|
3647
|
+
|
|
3648
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the position, size, layer, and stream type information for each video screen in the mixed picture.<br>[Recommended Values] This field is an array of TRTCVideoLayout type. Each element in the array represents the information for each screen.</td>
|
|
3649
|
+
</tr>
|
|
3650
|
+
|
|
3651
|
+
<tr>
|
|
3652
|
+
<td rowspan="1" colSpan="1" >watermarkList</td>
|
|
3653
|
+
|
|
3654
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Specifies the position, size, layer, etc., information for each watermarked screen in the mixed picture.<br>[Recommended Values] This field is an array of TRTCWatermark type. Each element in the array represents the information for each watermark.</td>
|
|
3655
|
+
</tr>
|
|
3656
|
+
</table>
|
|
3657
|
+
|
|
3658
|
+
|
|
3659
|
+
## TRTCPayloadPrivateEncryptionConfig
|
|
3660
|
+
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
#### Media Stream Private Encryption Configuration
|
|
3664
|
+
|
|
3665
|
+
This configuration is used to set the algorithm and key for private media stream encryption.
|
|
3666
|
+
<table>
|
|
3667
|
+
<tr>
|
|
3668
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3669
|
+
|
|
3670
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3671
|
+
</tr>
|
|
3672
|
+
|
|
3673
|
+
<tr>
|
|
3674
|
+
<td rowspan="1" colSpan="1" >encryptionAlgorithm</td>
|
|
3675
|
+
|
|
3676
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Encryption algorithm, default is TRTCEncryptionAlgorithmAes128Gcm.</td>
|
|
3677
|
+
</tr>
|
|
3678
|
+
|
|
3679
|
+
<tr>
|
|
3680
|
+
<td rowspan="1" colSpan="1" >encryptionKey</td>
|
|
3681
|
+
|
|
3682
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Encryption key, string type.<br>[Recommended Values] If the encryption algorithm is TRTCEncryptionAlgorithmAes128Gcm, the key length needs to be 16 bytes; if the encryption algorithm is TRTCEncryptionAlgorithmAes256Gcm, the key length needs to be 32 bytes.</td>
|
|
3683
|
+
</tr>
|
|
3684
|
+
|
|
3685
|
+
<tr>
|
|
3686
|
+
<td rowspan="1" colSpan="1" >encryptionSalt</td>
|
|
3687
|
+
|
|
3688
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Salt, initial vector for encryption.<br>[Recommended Values] Ensure that the array filled in for this parameter is not empty, not all zeros, and the data length is 32 bytes.</td>
|
|
3689
|
+
</tr>
|
|
3690
|
+
</table>
|
|
3691
|
+
|
|
3692
|
+
|
|
3693
|
+
## TRTCAudioVolumeEvaluateParams
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
#### Volume Assessment and related parameter settings
|
|
3698
|
+
|
|
3699
|
+
This setting is used to enable voice detection and sound spectrum calculation.
|
|
3700
|
+
<table>
|
|
3701
|
+
<tr>
|
|
3702
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
3703
|
+
|
|
3704
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
3705
|
+
</tr>
|
|
3706
|
+
|
|
3707
|
+
<tr>
|
|
3708
|
+
<td rowspan="1" colSpan="1" >enablePitchCalculation</td>
|
|
3709
|
+
|
|
3710
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Whether to enable local voice frequency calculation</td>
|
|
3711
|
+
</tr>
|
|
3712
|
+
|
|
3713
|
+
<tr>
|
|
3714
|
+
<td rowspan="1" colSpan="1" >enableSpectrumCalculation</td>
|
|
3715
|
+
|
|
3716
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Whether to enable sound spectrum calculation.</td>
|
|
3717
|
+
</tr>
|
|
3718
|
+
|
|
3719
|
+
<tr>
|
|
3720
|
+
<td rowspan="1" colSpan="1" >enableVadDetection</td>
|
|
3721
|
+
|
|
3722
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Whether to enable local voice detection.<br>[Please Note] It takes effect only when called before startLocalAudio.</td>
|
|
3723
|
+
</tr>
|
|
3724
|
+
|
|
3725
|
+
<tr>
|
|
3726
|
+
<td rowspan="1" colSpan="1" >interval</td>
|
|
3727
|
+
|
|
3728
|
+
<td rowspan="1" colSpan="1" >[Field Meaning] Sets the trigger interval for the onUserVoiceVolume callback, in milliseconds. The minimum interval is 100ms. If the value is less than or equal to 0, the callback will be disabled.<br>[Recommended Value] Recommended value: 300 milliseconds.<br>[Special Instruction] When the interval is greater than 0, the volume prompt will be enabled by default without additional settings.</td>
|
|
3729
|
+
</tr>
|
|
3730
|
+
</table>
|