Skip to content

Commit

Permalink
Ensure volume on subsequent youtube loads
Browse files Browse the repository at this point in the history
Other players call `onReady` for subsequent loads, which sets the player volume, but the YouTube player doesn't
  • Loading branch information
cookpete committed Jan 4, 2016
1 parent 8f7ef30 commit 5895663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/players/YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class YouTube extends Base {
} else {
this.player.cueVideoById(id)
}
this.setVolume(this.props.volume)
return
}
if (this.loadingSDK) {
Expand Down

0 comments on commit 5895663

Please sign in to comment.