Skip to content

Commit

Permalink
fix: check muted property for mute getter
Browse files Browse the repository at this point in the history
  • Loading branch information
brycetham committed Jan 18, 2024
1 parent 7737912 commit 1ab9048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/media/local-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class _LocalStream extends Stream {
* @inheritdoc
*/
get muted(): boolean {
return !this.inputTrack.enabled;
return !this.inputTrack.enabled || this.inputTrack.muted;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/media/remote-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class RemoteStream extends Stream {
* @inheritdoc
*/
get muted(): boolean {
return !this.outputTrack.enabled;
return !this.outputTrack.enabled || this.outputTrack.muted;
}

/**
Expand Down

0 comments on commit 1ab9048

Please sign in to comment.