Skip to content

Commit

Permalink
Merge pull request #689 from videogular/fix/mute-volume
Browse files Browse the repository at this point in the history
fix(controls): Fix mute button when initial volume is 0
  • Loading branch information
Elecash authored Feb 7, 2018
2 parents 4111371 + 411e5e6 commit 41e8d6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controls/vg-mute/vg-mute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export class VgMute implements OnInit, OnDestroy {
let volume = this.getVolume();

if (volume === 0) {
if (this.target.volume === 0 && this.currentVolume === 0) {
this.currentVolume = 1;
}

this.target.volume = this.currentVolume;
}
else {
Expand Down

0 comments on commit 41e8d6a

Please sign in to comment.