@rongcloud/plugin-rtc 5.30.0-alpha.1 → 5.30.0

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
@@ -4274,7 +4274,15 @@ declare abstract class RCAbstractRoom extends EventEmitter {
4274
4274
  */
4275
4275
  protected _quitAllPKRoom(): Promise<void>;
4276
4276
  getClientSessionId(): string;
4277
- changeMediaDevice(oldTrack: RCCameraVideoTrack | RCMicphoneAudioTrack, newTrack: RCCameraVideoTrack | RCMicphoneAudioTrack): Promise<ICommandResult<unknown>>;
4277
+ /**
4278
+ * 切换已发布视频或音频的媒体设备
4279
+ * @param oldTrack 已经发布的视频轨道或音频轨道
4280
+ * @param newTrack 从新设备获取的视频轨道或音频轨道
4281
+ * @returns code 切换结果,RCRTCCode.SUCCESS 表示切换成功
4282
+ */
4283
+ changeMediaDevice(oldTrack: RCCameraVideoTrack | RCMicphoneAudioTrack, newTrack: RCCameraVideoTrack | RCMicphoneAudioTrack): Promise<{
4284
+ code: RCRTCCode;
4285
+ }>;
4278
4286
  }
4279
4287
 
4280
4288
  /**