Skip to content

Commit

Permalink
Unmute facebook video when setting volume
Browse files Browse the repository at this point in the history
Fixes #215
  • Loading branch information
cookpete committed Jul 26, 2017
1 parent 8e9e57b commit 0c7d70b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/players/Facebook.js
Expand Up @@ -79,6 +79,9 @@ export default class YouTube extends Base {
}
setVolume (fraction) {
if (!this.isReady) return
if (fraction !== 0) {
this.player.unmute()
}
this.player.setVolume(fraction)
}
setPlaybackRate () {
Expand Down

0 comments on commit 0c7d70b

Please sign in to comment.