diff --git a/packages/rtc/src/engine/IrisClientObserver.ts b/packages/rtc/src/engine/IrisClientObserver.ts index eed0ddc..4abc087 100644 --- a/packages/rtc/src/engine/IrisClientObserver.ts +++ b/packages/rtc/src/engine/IrisClientObserver.ts @@ -277,7 +277,10 @@ export class IrisClientObserver { switch (type) { case NotifyType.PUBLISH_TRACK: if (scopePackage) { - await this.publishTrack(scopePackage, irisClientList ?? []); + await this.publishTrack( + scopePackage, + irisClientList ?? this._engine.irisClientManager.irisClientList + ); } break; case NotifyType.MUTE_TRACK: diff --git a/packages/rtc/src/helper/ImplHelper.ts b/packages/rtc/src/helper/ImplHelper.ts index 63483a9..fd5a5cf 100644 --- a/packages/rtc/src/helper/ImplHelper.ts +++ b/packages/rtc/src/helper/ImplHelper.ts @@ -233,9 +233,6 @@ export class ImplHelper { public async processScreenShareAudioTrack(audioTrack: ILocalAudioTrack) { let globalState = this._engine.globalState; - if (globalState.enabledAudio) { - this._engine.trackHelper.play(audioTrack); - } if (globalState.pausedAudio) { await this._engine.trackHelper.setEnabled(audioTrack, false); }