trtc-sdk-v5 5.0.2-beta.1 → 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 CHANGED
@@ -71,9 +71,6 @@
71
71
  small?: boolean;
72
72
  };
73
73
  }
74
- declare interface UpdateRemoteVideoConfig extends Omit<RemoteVideoConfig, 'view'> {
75
- view?: string | HTMLElement | HTMLElement[] | null;
76
- }
77
74
  declare interface StopRemoteVideoConfig {
78
75
  userId: string;
79
76
  streamType?: TRTCStreamType;
@@ -603,6 +600,17 @@
603
600
  * });
604
601
  */
605
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";
606
614
  };
607
615
  declare interface TRTCEventTypes {
608
616
  [TRTCEvent.ERROR]: [RtcError];
@@ -667,6 +675,10 @@
667
675
  error?: RtcError;
668
676
  }
669
677
  ];
678
+ [TRTCEvent.SEI_MESSAGE]: [{
679
+ data: Uint8Array;
680
+ userId: string;
681
+ }];
670
682
  }
671
683
  class TRTC extends EventEmitter<TRTCEventTypes> {
672
684
  /**
@@ -1091,10 +1103,6 @@
1091
1103
  * await trtc.stopScreenShare();
1092
1104
  * */
1093
1105
  stopScreenShare(): Promise<void>;
1094
- usePlugin(): void;
1095
- startPlugin(name: string, options: AudioSourceOptions): Promise<void>;
1096
- updatePlugin(name: string, option: any): void;
1097
- stopPlugin(name: string, options: any): Promise<void>;
1098
1106
  /**
1099
1107
  * 播放远端视频
1100
1108
  *
@@ -1151,7 +1159,7 @@
1151
1159
  * await trtc.updateRemoteVideo(config);
1152
1160
  * @memberof TRTC
1153
1161
  */
1154
- updateRemoteVideo(config: UpdateRemoteVideoConfig): Promise<void>;
1162
+ updateRemoteVideo(config: RemoteVideoConfig): Promise<void>;
1155
1163
  /**
1156
1164
  * 用于停止远端视频播放。<br>
1157
1165
  * @param {object} config - 远端视频配置
@@ -1306,6 +1314,7 @@
1306
1314
  readonly SCREEN_SHARE_STOPPED: "screen-share-stopped";
1307
1315
  readonly DEVICE_CHANGED: "device-changed";
1308
1316
  readonly PUBLISH_STATE_CHANGED: "publish-state-changed";
1317
+ readonly SEI_MESSAGE: "sei-message";
1309
1318
  };
1310
1319
  static ERROR_CODE: {
1311
1320
  INVALID_PARAMETER: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.0.2-beta.1",
3
+ "version": "5.0.2",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "module": "trtc.esm.js",