Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Commit

Permalink
edge case muted fix
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Mar 22, 2020
1 parent f19072d commit d0eddd6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export class MatVolumeControlComponent {
get muted() { return this._muted; }
set muted(v: boolean) {
this._muted = v;
this.video.muted = this._muted;
if (this.video) {
this.video.muted = this._muted;
}
}

@Output() mutedChanged = new EventEmitter<boolean>();
Expand Down Expand Up @@ -51,7 +53,9 @@ export class MatVolumeControlComponent {
}

updateMuted(): void {
this.video.muted = this.muted;
if (this.video) {
this.video.muted = this.muted;
}
this.mutedChanged.emit(this.muted);
}

Expand Down

0 comments on commit d0eddd6

Please sign in to comment.