trtc-sdk-v5 5.0.2-beta.2 → 5.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/index.d.ts +16 -24
- package/package.json +1 -1
- package/trtc.esm.js +38 -35
- package/trtc.js +1 -1
package/index.d.ts
CHANGED
|
@@ -600,6 +600,17 @@
|
|
|
600
600
|
* });
|
|
601
601
|
*/
|
|
602
602
|
readonly PUBLISH_STATE_CHANGED: "publish-state-changed";
|
|
603
|
+
/**
|
|
604
|
+
* @private
|
|
605
|
+
* @description 收到 SEI message<br>
|
|
606
|
+
* @default 'sei-message'
|
|
607
|
+
* @memberof module:EVENT
|
|
608
|
+
* @example
|
|
609
|
+
* trtc.on(TRTC.EVENT.SEI_MESSAGE, event => {
|
|
610
|
+
* console.log(`收到 ${event.userId} 的 sei message: ${event.data}`)
|
|
611
|
+
* })
|
|
612
|
+
*/
|
|
613
|
+
readonly SEI_MESSAGE: "sei-message";
|
|
603
614
|
};
|
|
604
615
|
declare interface TRTCEventTypes {
|
|
605
616
|
[TRTCEvent.ERROR]: [RtcError];
|
|
@@ -664,6 +675,10 @@
|
|
|
664
675
|
error?: RtcError;
|
|
665
676
|
}
|
|
666
677
|
];
|
|
678
|
+
[TRTCEvent.SEI_MESSAGE]: [{
|
|
679
|
+
data: Uint8Array;
|
|
680
|
+
userId: string;
|
|
681
|
+
}];
|
|
667
682
|
}
|
|
668
683
|
class TRTC extends EventEmitter<TRTCEventTypes> {
|
|
669
684
|
/**
|
|
@@ -1088,30 +1103,6 @@
|
|
|
1088
1103
|
* await trtc.stopScreenShare();
|
|
1089
1104
|
* */
|
|
1090
1105
|
stopScreenShare(): Promise<void>;
|
|
1091
|
-
/**
|
|
1092
|
-
* 用于使用插件能力,详情见文档。
|
|
1093
|
-
* @throws
|
|
1094
|
-
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
1095
|
-
* - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
|
|
1096
|
-
*
|
|
1097
|
-
* */
|
|
1098
|
-
startPlugin(name: PLUGIN_NAME, options: AudioSourceOptions | DenoiserOptions): Promise<void>;
|
|
1099
|
-
/**
|
|
1100
|
-
* 用于使用插件能力,详情见文档。
|
|
1101
|
-
* @throws
|
|
1102
|
-
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
1103
|
-
* - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
|
|
1104
|
-
*
|
|
1105
|
-
* */
|
|
1106
|
-
updatePlugin(name: PLUGIN_NAME, options: UpdateAudioSourceOptions): Promise<void>;
|
|
1107
|
-
/**
|
|
1108
|
-
* 用于使用插件能力,详情见文档。
|
|
1109
|
-
* @throws
|
|
1110
|
-
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
1111
|
-
* - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
|
|
1112
|
-
*
|
|
1113
|
-
* */
|
|
1114
|
-
stopPlugin(name: PLUGIN_NAME, options?: UpdateAudioSourceOptions): Promise<void>;
|
|
1115
1106
|
/**
|
|
1116
1107
|
* 播放远端视频
|
|
1117
1108
|
*
|
|
@@ -1323,6 +1314,7 @@
|
|
|
1323
1314
|
readonly SCREEN_SHARE_STOPPED: "screen-share-stopped";
|
|
1324
1315
|
readonly DEVICE_CHANGED: "device-changed";
|
|
1325
1316
|
readonly PUBLISH_STATE_CHANGED: "publish-state-changed";
|
|
1317
|
+
readonly SEI_MESSAGE: "sei-message";
|
|
1326
1318
|
};
|
|
1327
1319
|
static ERROR_CODE: {
|
|
1328
1320
|
INVALID_PARAMETER: number;
|