aliyun-rtc-sdk 6.12.1-beta.1 → 6.12.1-beta.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/dist/aliyun-rtc-sdk.js +13 -13
- package/dist/types/index.d.ts +15 -2
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ export declare class AliRtcEngine extends default_2<AliRtcEngineEventListener> {
|
|
|
261
261
|
* 监听 Publisher 事件
|
|
262
262
|
*/
|
|
263
263
|
private addPublisherListeners;
|
|
264
|
+
private occurError;
|
|
264
265
|
/**
|
|
265
266
|
* 监听 UM 事件
|
|
266
267
|
*/
|
|
@@ -1229,11 +1230,19 @@ declare interface AliRtcEngineEventListener {
|
|
|
1229
1230
|
rtcRemoteAudioStats: (stats: AliRtcRemoteAudioStats[]) => void;
|
|
1230
1231
|
/**
|
|
1231
1232
|
* @brief 错误通知
|
|
1233
|
+
* @deprecated 请使用 occurError
|
|
1232
1234
|
* @details 如果engine出现error,通过这个回调通知app
|
|
1233
|
-
* @param error 错误类型,参考 {@link
|
|
1235
|
+
* @param error 错误类型,参考 {@link AliRtcError}
|
|
1234
1236
|
* @param message 错误消息
|
|
1235
1237
|
*/
|
|
1236
1238
|
onOccurError: (error: AliRtcError) => void;
|
|
1239
|
+
/**
|
|
1240
|
+
* @brief 错误通知
|
|
1241
|
+
* @details 如果engine出现error,通过这个回调通知app
|
|
1242
|
+
* @param error 错误类型,参考 {@link AliRtcError}
|
|
1243
|
+
* @param message 错误消息
|
|
1244
|
+
*/
|
|
1245
|
+
occurError: (error: AliRtcError) => void;
|
|
1237
1246
|
/**
|
|
1238
1247
|
* @brief 收到数据通道消息
|
|
1239
1248
|
* @param uid 用户ID
|
|
@@ -1365,14 +1374,18 @@ export declare enum AliRtcErrorCode {
|
|
|
1365
1374
|
/** 无可用的音频采集设备,检查是否接入了可用的麦克风,并检查系统设置中,该设备是否被禁用 */
|
|
1366
1375
|
ERR_MIC_NOT_AVAILABLE = 17040393,
|
|
1367
1376
|
/** 无可用的音频播放设备,检查是否接入了可用的扬声器或耳机,并检查系统设置中,该设备是否被禁用 */
|
|
1368
|
-
|
|
1377
|
+
ERR_SPEAKER_NOT_AVAILABLE = 17040400,
|
|
1369
1378
|
/****************************************************
|
|
1370
1379
|
* 视频设备错误码
|
|
1371
1380
|
****************************************************/
|
|
1372
1381
|
/** 采集设备初始化失败,检查系统相机是否可用,移动端App是否占用了相机 */
|
|
1373
1382
|
ERR_CAMERA_OPEN_FAIL = 17039620,
|
|
1383
|
+
/** 采集设备未授权,建议去系统设置中,打开摄像头授权,并且重新加入频道 */
|
|
1384
|
+
ERR_CAMERA_AUTH_FAIL = 17039621,
|
|
1374
1385
|
/** 采集过程中出现异常,Mac、Winodows电脑相机采集灯熄灭,设备被强制中断。建议重新加入频道或者重启App */
|
|
1375
1386
|
ERR_CAMERA_INTERRUPT = 17039622,
|
|
1387
|
+
/** 无可用的视频采集设备,检查是否接入了可用的摄像头,并检查系统设置中,该设备是否被禁用 */
|
|
1388
|
+
ERR_CAMERA_NOT_AVAILABLE = 17039623,
|
|
1376
1389
|
/** 渲染设备初始化失败,检查Windows端显卡驱动是否需要升级,移动端手机型号或者Android平板盒子等外设是否支持OpenGL */
|
|
1377
1390
|
ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873,
|
|
1378
1391
|
/** 渲染过程中出现异常,系统异常错误导致渲染引擎报错,重新加入频道或者重启App */
|