trtc-sdk-v5 5.1.0-beta.2 → 5.1.0-beta.4

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
@@ -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,10 +1103,6 @@
1088
1103
  * await trtc.stopScreenShare();
1089
1104
  * */
1090
1105
  stopScreenShare(): Promise<void>;
1091
- usePlugin(): void;
1092
- startPlugin(name: string, options: AudioSourceOptions): Promise<void>;
1093
- updatePlugin(name: string, option: any): void;
1094
- stopPlugin(name: string, options: any): Promise<void>;
1095
1106
  /**
1096
1107
  * 播放远端视频
1097
1108
  *
@@ -1303,6 +1314,7 @@
1303
1314
  readonly SCREEN_SHARE_STOPPED: "screen-share-stopped";
1304
1315
  readonly DEVICE_CHANGED: "device-changed";
1305
1316
  readonly PUBLISH_STATE_CHANGED: "publish-state-changed";
1317
+ readonly SEI_MESSAGE: "sei-message";
1306
1318
  };
1307
1319
  static ERROR_CODE: {
1308
1320
  INVALID_PARAMETER: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.1.0-beta.2",
3
+ "version": "5.1.0-beta.4",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "module": "trtc.esm.js",