@byteplus/react-native-rtc 1.0.0 → 1.0.2
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/android/build.gradle +1 -1
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VertcVod.java +10 -26
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VideoAudioProcessor.java +8 -9
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VodAudioProxy.java +44 -0
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VodAudioVoiceWrapperObject.java +355 -0
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VodMock.java +6 -17
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VodVideoProxy.java +97 -0
- package/ios/vod/VertcVod.m +3 -10
- package/ios/vod/VodAudioProcessor.h +1 -1
- package/ios/vod/VodAudioProcessor.mm +1 -3
- package/ios/vod/VodVideoProcessor.h +1 -3
- package/ios/vod/VodVideoProcessor.m +2 -22
- package/lib/commonjs/index.js +871 -865
- package/lib/module/index.js +871 -865
- package/lib/typescript/codegen/pack/api.d.ts +634 -637
- package/lib/typescript/codegen/pack/callback.d.ts +248 -251
- package/lib/typescript/codegen/pack/errorcode.d.ts +36 -36
- package/lib/typescript/codegen/pack/keytype.d.ts +181 -181
- package/lib/typescript/core/rtc-video.d.ts +1 -7
- package/lib/typescript/core.d.ts +4 -4
- package/lib/typescript/interface.d.ts +63 -64
- package/lib/typescript/platforms/android/vod.d.ts +2 -2
- package/package.json +2 -2
- package/react-native-rtc.podspec +6 -5
- package/android/src/main/java/com/volcengine/reactnative/vertc/vod/VodVideoEngineCallbackProxy.java +0 -94
|
@@ -194,35 +194,35 @@ export declare enum SubtitleErrorCode {
|
|
|
194
194
|
export declare enum ErrorCode {
|
|
195
195
|
/** {en}
|
|
196
196
|
* @platform android
|
|
197
|
-
* @brief Token is invalid. Returned by
|
|
197
|
+
* @brief Token is invalid. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
198
198
|
* The token used when entering the room is invalid or expired. The user is required to retrieve the token and call the `updateToken` method to update the token.
|
|
199
199
|
*
|
|
200
200
|
*/
|
|
201
201
|
ERROR_CODE_INVALID_TOKEN = 0,
|
|
202
202
|
/** {en}
|
|
203
203
|
* @platform android
|
|
204
|
-
* @brief Join room error. Returned by
|
|
204
|
+
* @brief Join room error. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
205
205
|
* An unknown error occurred while entering the room, which caused the joining room to fail. Users are required to rejoin the room.
|
|
206
206
|
*
|
|
207
207
|
*/
|
|
208
208
|
ERROR_CODE_JOIN_ROOM = 1,
|
|
209
209
|
/** {en}
|
|
210
210
|
* @platform android
|
|
211
|
-
* @brief No permission to publish audio & video streams. Returned by
|
|
211
|
+
* @brief No permission to publish audio & video streams. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
212
212
|
* The user failed to publish the audio & video stream in the room. The reason for the failure is that the user does not have permission to publish the stream.
|
|
213
213
|
*
|
|
214
214
|
*/
|
|
215
215
|
ERROR_CODE_NO_PUBLISH_PERMISSION = 2,
|
|
216
216
|
/** {en}
|
|
217
217
|
* @platform android
|
|
218
|
-
* @brief No subscription permissions for audio & video streams. Returned by
|
|
218
|
+
* @brief No subscription permissions for audio & video streams. Returned by {@link onStreamStateChanged onStreamStateChanged}. <br>
|
|
219
219
|
* The user failed to subscribe to the audio & video stream in the room where the user is located. The reason for the failure is that the user does not have permission to subscribe to the stream.
|
|
220
220
|
*
|
|
221
221
|
*/
|
|
222
222
|
ERROR_CODE_NO_SUBSCRIBE_PERMISSION = 3,
|
|
223
223
|
/** {en}
|
|
224
224
|
* @platform android
|
|
225
|
-
* @brief The user has been removed from the room because the same user joined the room on the other client. Returned by
|
|
225
|
+
* @brief The user has been removed from the room because the same user joined the room on the other client. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
226
226
|
*
|
|
227
227
|
*/
|
|
228
228
|
ERROR_CODE_DUPLICATE_LOGIN = 4,
|
|
@@ -235,69 +235,69 @@ export declare enum ErrorCode {
|
|
|
235
235
|
ERROR_CODE_APP_ID_NULL = 5,
|
|
236
236
|
/** {en}
|
|
237
237
|
* @platform android
|
|
238
|
-
* @brief The user has been remove from the room by the administrator via a OpenAPI call. Returned by
|
|
238
|
+
* @brief The user has been remove from the room by the administrator via a OpenAPI call. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
239
239
|
*
|
|
240
240
|
*/
|
|
241
241
|
ERROR_CODE_KICKED_OUT = 6,
|
|
242
242
|
/** {en}
|
|
243
243
|
* @platform android
|
|
244
|
-
* @brief When calling `createRoom`, if the roomId is illegal, it will return null and throw the error. Returned by
|
|
244
|
+
* @brief When calling `createRoom`, if the roomId is illegal, it will return null and throw the error. Returned by {@link onCreateRoomStateChanged onCreateRoomStateChanged}.
|
|
245
245
|
*
|
|
246
246
|
*/
|
|
247
247
|
ERROR_CODE_ROOM_ID_ILLEGAL = 7,
|
|
248
248
|
/** {en}
|
|
249
249
|
* @platform android
|
|
250
|
-
* @brief Token expired. Call `joinRoom` to rejoin with a valid Token. Returned by
|
|
250
|
+
* @brief Token expired. Call `joinRoom` to rejoin with a valid Token. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
251
251
|
*
|
|
252
252
|
*/
|
|
253
253
|
ERROR_CODE_TOKEN_EXPIRED = 8,
|
|
254
254
|
/** {en}
|
|
255
255
|
* @platform android
|
|
256
|
-
* @brief The Token you provided when calling `updateToken` is invalid. Returned by
|
|
256
|
+
* @brief The Token you provided when calling `updateToken` is invalid. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
257
257
|
*
|
|
258
258
|
*/
|
|
259
259
|
ERROR_CODE_UPDATE_TOKEN_WITH_INVALID_TOKEN = 9,
|
|
260
260
|
/** {en}
|
|
261
261
|
* @platform android
|
|
262
|
-
* @brief Users have been removed from the room because the administrator dismissed the room by calling OpenAPI. Returned by
|
|
262
|
+
* @brief Users have been removed from the room because the administrator dismissed the room by calling OpenAPI. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
263
263
|
*
|
|
264
264
|
*/
|
|
265
265
|
ERROR_CODE_ROOM_DISMISS = 10,
|
|
266
266
|
/** {en}
|
|
267
267
|
* @platform android
|
|
268
|
-
* @brief A room with the same roomId already exists during the call echo test. Returned by
|
|
268
|
+
* @brief A room with the same roomId already exists during the call echo test. Returned by {@link onCreateRoomStateChanged onCreateRoomStateChanged}.
|
|
269
269
|
*
|
|
270
270
|
*/
|
|
271
271
|
ERROR_CODE_ROOM_ALREADY_EXIST = 12,
|
|
272
272
|
/** {en}
|
|
273
273
|
* @platform android
|
|
274
|
-
* @brief The local user joins multiple rooms with different uid. Returned by
|
|
274
|
+
* @brief The local user joins multiple rooms with different uid. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
275
275
|
* In the same engine instance, users need to use the same uid to join different rooms.
|
|
276
276
|
*
|
|
277
277
|
*/
|
|
278
278
|
ERROR_CODE_USER_ID_DIFFERENT = 13,
|
|
279
279
|
/** {en}
|
|
280
280
|
* @platform android
|
|
281
|
-
* @brief The room has banned before the user calls `joinRoom`. Returned by
|
|
281
|
+
* @brief The room has banned before the user calls `joinRoom`. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
282
282
|
*
|
|
283
283
|
*/
|
|
284
284
|
ERROR_CODE_JOIN_ROOM_ROOM_FORBIDDEN = 22,
|
|
285
285
|
/** {en}
|
|
286
286
|
* @platform android
|
|
287
|
-
* @brief The user has banned before calling `joinRoom`. Returned by
|
|
287
|
+
* @brief The user has banned before calling `joinRoom`. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
288
288
|
*
|
|
289
289
|
*/
|
|
290
290
|
ERROR_CODE_JOIN_ROOM_USER_FORBIDDEN = 23,
|
|
291
291
|
/** {en}
|
|
292
292
|
* @platform android
|
|
293
|
-
* @brief Failed to subscribe to streams because the total number of subscribed streams has exceeded the upper limit. Returned by
|
|
293
|
+
* @brief Failed to subscribe to streams because the total number of subscribed streams has exceeded the upper limit. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
294
294
|
* In order to ensure the performance and quality of audio & video calls in the game scenario, the server will limit the total number of audio & video streams subscribed by the user. When the total number of audio & video streams subscribed by the user has reached the maximum, continuing to subscribe to more streams will fail, and the user will receive this error notification.
|
|
295
295
|
*
|
|
296
296
|
*/
|
|
297
297
|
ERROR_CODE_OVER_SUBSCRIBE_LIMIT = 25,
|
|
298
298
|
/** {en}
|
|
299
299
|
* @platform android
|
|
300
|
-
* @brief Failed to publish video stream because the total number of published streams has exceeded the upper limit. Returned by
|
|
300
|
+
* @brief Failed to publish video stream because the total number of published streams has exceeded the upper limit. Returned by {@link onStreamStateChanged onStreamStateChanged}. <br>
|
|
301
301
|
* RTC will limit the total number of streams published in a single room, including video, audio, and screen streams. Local users will fail to publish streams to the room when the maximum number of published streams in the room has been reached, and will receive this error notification.
|
|
302
302
|
*
|
|
303
303
|
*/
|
|
@@ -307,13 +307,13 @@ export declare enum ErrorCode {
|
|
|
307
307
|
* @brief A/V synchronization failed. <br>
|
|
308
308
|
* Current source audio ID has been set by other video publishers in the same room. <br>
|
|
309
309
|
* One single audio source cannot be synchronized with multiple video sources at the same time. <br>
|
|
310
|
-
* Returned by
|
|
310
|
+
* Returned by {@link onStreamStateChanged onStreamStateChanged}.
|
|
311
311
|
*
|
|
312
312
|
*/
|
|
313
313
|
ERROR_CODE_INVALID_AUDIO_SYNC_USERID_REPEATED = 28,
|
|
314
314
|
/** {en}
|
|
315
315
|
* @platform android
|
|
316
|
-
* @brief The user has been removed from the room due to the abnormal status of server. Returned by
|
|
316
|
+
* @brief The user has been removed from the room due to the abnormal status of server. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
317
317
|
* SDK is disconnected with the signaling server. It will not reconnect automatically. Please contact technical support.
|
|
318
318
|
*
|
|
319
319
|
*/
|
|
@@ -359,35 +359,35 @@ export declare enum ErrorCode {
|
|
|
359
359
|
export declare enum WarningCode {
|
|
360
360
|
/** {en}
|
|
361
361
|
* @platform android
|
|
362
|
-
* @brief Failed to enter the room. Returned by
|
|
362
|
+
* @brief Failed to enter the room. Returned by {@link onRoomStateChanged onRoomStateChanged}. <br>
|
|
363
363
|
* When you enter the room for the first time or disconnect and reconnect due to poor network condition, the room entry failed due to a server error. The SDK automatically retries to join the room.
|
|
364
364
|
*
|
|
365
365
|
*/
|
|
366
366
|
WARNING_CODE_JOIN_ROOM_FAILED = 0,
|
|
367
367
|
/** {en}
|
|
368
368
|
* @platform android
|
|
369
|
-
* @brief Release audio & video stream failed. Returned by
|
|
369
|
+
* @brief Release audio & video stream failed. Returned by {@link onStreamStateChanged onStreamStateChanged}. <br>
|
|
370
370
|
* When you publish audio & video streams in your room, the publication fails due to a server error. The SDK automatically retries the release.
|
|
371
371
|
*
|
|
372
372
|
*/
|
|
373
373
|
WARNING_CODE_PUBLISH_STREAM_FAILED = 1,
|
|
374
374
|
/** {en}
|
|
375
375
|
* @platform android
|
|
376
|
-
* @brief Subscription to audio & video stream failed. Returned by
|
|
376
|
+
* @brief Subscription to audio & video stream failed. Returned by {@link onStreamStateChanged onStreamStateChanged}. <br>
|
|
377
377
|
* The subscription failed because the audio & video stream for the subscription could not be found in the current room. The SDK will automatically retry the subscription. If the subscription fails, it is recommended that you exit the retry.
|
|
378
378
|
*
|
|
379
379
|
*/
|
|
380
380
|
WARNING_CODE_SUBSCRIBE_STREAM_FAILED404 = 2,
|
|
381
381
|
/** {en}
|
|
382
382
|
* @platform android
|
|
383
|
-
* @brief Subscription to audio & video stream failed. Returned by
|
|
383
|
+
* @brief Subscription to audio & video stream failed. Returned by {@link onStreamStateChanged onStreamStateChanged}. <br>
|
|
384
384
|
* When you subscribe to audio & video streams in your room, the subscription fails due to a server error. The SDK automatically retries the subscription.
|
|
385
385
|
*
|
|
386
386
|
*/
|
|
387
387
|
WARNING_CODE_SUBSCRIBE_STREAM_FAILED5XX = 3,
|
|
388
388
|
/** {en}
|
|
389
389
|
* @platform android
|
|
390
|
-
* @brief This warning is triggered when a call to `setUserVisibility` sets its own visibility to false and then attempts to publish the flow. Returned by
|
|
390
|
+
* @brief This warning is triggered when a call to `setUserVisibility` sets its own visibility to false and then attempts to publish the flow. Returned by {@link onStreamStateChanged onStreamStateChanged}.
|
|
391
391
|
*
|
|
392
392
|
*/
|
|
393
393
|
WARNING_CODE_PUBLISH_STREAM_FORBIDEN = 6,
|
|
@@ -399,19 +399,19 @@ export declare enum WarningCode {
|
|
|
399
399
|
WARNING_CODE_SEND_CUSTOM_MESSAGE = 7,
|
|
400
400
|
/** {en}
|
|
401
401
|
* @platform android
|
|
402
|
-
* @brief When the number of people in the room exceeds 500, stop sending `onUserJoined` and `onUserLeave` callbacks to existing users in the room, and prompt all users in the room via broadcast. Returned by
|
|
402
|
+
* @brief When the number of people in the room exceeds 500, stop sending `onUserJoined` and `onUserLeave` callbacks to existing users in the room, and prompt all users in the room via broadcast. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
403
403
|
*
|
|
404
404
|
*/
|
|
405
405
|
WARNING_CODE_RECEIVE_USER_NOTIFY_STOP = 8,
|
|
406
406
|
/** {en}
|
|
407
407
|
* @platform android
|
|
408
|
-
* @brief User had published in other room. Returned by
|
|
408
|
+
* @brief User had published in other room. Returned by {@link onStreamStateChanged onStreamStateChanged}.
|
|
409
409
|
*
|
|
410
410
|
*/
|
|
411
411
|
WARNING_CODE_USER_IN_PUBLISH = 9,
|
|
412
412
|
/** {en}
|
|
413
413
|
* @platform android
|
|
414
|
-
* @brief A room with the same roomId already exists. The newly created room instance has replaced the old one. Returned by
|
|
414
|
+
* @brief A room with the same roomId already exists. The newly created room instance has replaced the old one. Returned by {@link onRoomStateChanged onRoomStateChanged}.
|
|
415
415
|
*
|
|
416
416
|
*/
|
|
417
417
|
WARNING_CODE_OLD_ROOM_BEEN_REPLACED = 10,
|
|
@@ -429,13 +429,13 @@ export declare enum WarningCode {
|
|
|
429
429
|
WARNING_CODE_NO_CAMERA_PERMISSION = 12,
|
|
430
430
|
/** {en}
|
|
431
431
|
* @platform android
|
|
432
|
-
* @brief Setting the screen audio capture type by calling
|
|
432
|
+
* @brief Setting the screen audio capture type by calling {@link setScreenAudioSourceType setScreenAudioSourceType} after {@link publishScreen publishScreen} is not supported.
|
|
433
433
|
*
|
|
434
434
|
*/
|
|
435
435
|
WARNING_CODE_SET_SCREEN_AUDIO_SOURCE_TYPE_FAILED = 13,
|
|
436
436
|
/** {en}
|
|
437
437
|
* @platform android
|
|
438
|
-
* @brief After
|
|
438
|
+
* @brief After {@link publishScreen publishScreen}, calling {@link setScreenAudioStreamIndex setScreenAudioStreamIndex} to set the screen audio share publication type is not supported
|
|
439
439
|
*
|
|
440
440
|
*/
|
|
441
441
|
WARNING_CODE_SET_SCREEN_STREAM_INDEX_FAILED = 14,
|
|
@@ -489,7 +489,7 @@ export declare enum WarningCode {
|
|
|
489
489
|
* @platform android
|
|
490
490
|
* @deprecated since 3.45 and will be deleted in 3.51.
|
|
491
491
|
* @brief When automatic subscription mode is not turned off, trying to turn on manual subscription mode will trigger this warning. <br>
|
|
492
|
-
* You need to turn off the automatic subscription mode before entering the room, and then call the
|
|
492
|
+
* You need to turn off the automatic subscription mode before entering the room, and then call the {@link subscribeUserStream subscribeUserStream} method to manually subscribe to the audio & video stream.
|
|
493
493
|
*
|
|
494
494
|
*/
|
|
495
495
|
WARNING_CODE_SUBSCRIBE_STREAM_FORBIDEN = 22,
|
|
@@ -503,7 +503,7 @@ export declare enum WarningCode {
|
|
|
503
503
|
/** {en}
|
|
504
504
|
* @platform android
|
|
505
505
|
* @brief The microphone permission is abnormal, and the current application does not obtain microphone permission.
|
|
506
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
506
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceError MediaDeviceError}.MEDIA_DEVICE_ERROR_NOPERMISSION instead.
|
|
507
507
|
*
|
|
508
508
|
*/
|
|
509
509
|
WARNING_CODE_NO_MICROPHONE_PERMISSION = 24,
|
|
@@ -511,7 +511,7 @@ export declare enum WarningCode {
|
|
|
511
511
|
* @platform android
|
|
512
512
|
* @brief The audio capture device failed to start. <br>
|
|
513
513
|
* Failed to start the audio capture device, the current device may be occupied by other applications.
|
|
514
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
514
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceError MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICEFAILURE instead.
|
|
515
515
|
*
|
|
516
516
|
*/
|
|
517
517
|
WARNING_CODE_RECODING_DEVICE_START_FAILED = 25,
|
|
@@ -519,7 +519,7 @@ export declare enum WarningCode {
|
|
|
519
519
|
* @platform android
|
|
520
520
|
* @brief Audio playback device startup failure warning. <br>
|
|
521
521
|
* It may be due to insufficient system resources or wrong parameters.
|
|
522
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
522
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceError MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICEFAILURE instead.
|
|
523
523
|
*
|
|
524
524
|
*/
|
|
525
525
|
WARNING_CODE_PLAYOUT_DEVICE_START_FAILED = 26,
|
|
@@ -527,7 +527,7 @@ export declare enum WarningCode {
|
|
|
527
527
|
* @platform android
|
|
528
528
|
* @brief No audio acquisition equipment available. <br>
|
|
529
529
|
* Failed to start the audio capture device, please insert the available audio capture device.
|
|
530
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
530
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceError MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICENOTFOUND instead.
|
|
531
531
|
*
|
|
532
532
|
*/
|
|
533
533
|
WARNING_CODE_NO_RECORDING_DEVICE = 27,
|
|
@@ -535,14 +535,14 @@ export declare enum WarningCode {
|
|
|
535
535
|
* @platform android
|
|
536
536
|
* @brief No audio playback device available. <br>
|
|
537
537
|
* Failed to start the audio playback device, please insert the available audio playback device.
|
|
538
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
538
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceError MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICENOTFOUND instead.
|
|
539
539
|
*
|
|
540
540
|
*/
|
|
541
541
|
WARNING_CODE_NO_PLAYOUT_DEVICE = 28,
|
|
542
542
|
/** {en}
|
|
543
543
|
* @platform android
|
|
544
544
|
* @brief The current audio equipment has not collected valid sound data, please check and replace the audio acquisition equipment.
|
|
545
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
545
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceWarning MediaDeviceWarning}.MEDIA_DEVICE_WARNING_CAPTURE_SILENCE instead.
|
|
546
546
|
*
|
|
547
547
|
*/
|
|
548
548
|
WARNING_CODE_RECORDING_SILENCE = 29,
|
|
@@ -550,7 +550,7 @@ export declare enum WarningCode {
|
|
|
550
550
|
* @platform android
|
|
551
551
|
* @brief Media device misoperation warning. <br>
|
|
552
552
|
* When using custom acquisition, the internal acquisition switch cannot be called, and this warning will be triggered when called.
|
|
553
|
-
* @deprecated since 3.45 and will be deleted in 3.51, use
|
|
553
|
+
* @deprecated since 3.45 and will be deleted in 3.51, use {@link MediaDeviceWarning MediaDeviceWarning}.MEDIA_DEVICE_WARNING_OPERATION_DENIED instead.
|
|
554
554
|
*
|
|
555
555
|
*/
|
|
556
556
|
WARNING_CODE_MEDIA_DEVICE_OPERATION_DENIED = 30,
|