@rongcloud/plugin-rtc 5.40.0 → 5.42.0-alpha.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/index.d.ts CHANGED
@@ -728,6 +728,7 @@ interface IExchangeReqBody {
728
728
  * asr 开关状态
729
729
  */
730
730
  asr_status: RCRTCASRStatus;
731
+ protocol: number;
731
732
  }
732
733
  interface ILiveUrls {
733
734
  /**
@@ -814,6 +815,10 @@ interface IBroadcastSubReqBody {
814
815
  type: 'offer';
815
816
  sdp: string;
816
817
  };
818
+ /**
819
+ * RTC 协议版本,取自导航字段 rtcProtocol,默认 0
820
+ */
821
+ protocol: number;
817
822
  /**
818
823
  * 直播信息
819
824
  */
@@ -1113,6 +1118,10 @@ interface IRTCNaviInfo extends INaviInfo {
1113
1118
  * AI 开关是否打开,1: 打开,0: 关闭
1114
1119
  */
1115
1120
  rtcAISwitch?: RCRTCAISwitchType;
1121
+ /**
1122
+ * RTC 协议版本,int 类型,获取不到时默认 0
1123
+ */
1124
+ rtcProtocol?: number;
1116
1125
  }
1117
1126
 
1118
1127
  declare enum RCRTCOperateSummarizationType {
@@ -1198,6 +1207,10 @@ declare abstract class ReadableStore {
1198
1207
  * 语音识别中本地用户的昵称
1199
1208
  */
1200
1209
  protected _nickName: string;
1210
+ /**
1211
+ * RTC 协议版本,加房时从导航读取一次并缓存,退出房间前不再变更,默认 0
1212
+ */
1213
+ protected _rtcProtocol: number;
1201
1214
  constructor(_logger: BasicLogger, clientSessionId: string, appkey: string, roomId: string, crtUserId: string, roomMode: RTCMode, isUpgrade?: boolean | undefined, isMainRoom?: boolean | undefined);
1202
1215
  getResourcesByUserId(userId: string): IPublishedResource[] | undefined;
1203
1216
  getRemoteTrack(trackId: string): RCRemoteAudioTrack | RCRemoteVideoTrack | undefined;
@@ -1220,6 +1233,7 @@ declare abstract class ReadableStore {
1220
1233
  getSupportNtf(): boolean;
1221
1234
  getASRIsAvailable(): boolean;
1222
1235
  getASRStatus(): RCRTCASRStatus;
1236
+ getRtcProtocol(): number;
1223
1237
  getASREnable(): boolean;
1224
1238
  getSrcLanguage(): string;
1225
1239
  getASRSeiUris(): IPublishedResource[];
@@ -1248,6 +1262,7 @@ declare class Store extends ReadableStore {
1248
1262
  resetCollectSubscribeList(collectSubscribeList: ISubscribeAttr[]): void;
1249
1263
  setRoomStatusVersion(version: number): void;
1250
1264
  setASRStatus(status: RCRTCASRStatus): void;
1265
+ setRtcProtocol(value: number): void;
1251
1266
  setASREnable(enable: boolean): void;
1252
1267
  setSrcLanguage(srcLanguage: string): void;
1253
1268
  setASRSeiUris(uris: IPublishedResource[]): void;