Skip to content

Commit

Permalink
fix: mutevideo is not working and screen share audio sent to remote b…
Browse files Browse the repository at this point in the history
…y default
  • Loading branch information
guoxianzhe committed Oct 31, 2024
1 parent a68eda0 commit 68c3b20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/rtc/src/engine/IrisClientObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions packages/rtc/src/helper/ImplHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 68c3b20

Please sign in to comment.