Skip to content

Commit

Permalink
Fix facebook muted logic
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-luther committed Nov 22, 2024
1 parent 725e3f5 commit 18f8b85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/players/Facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export default class Facebook extends Component {
this.player.subscribe('startedBuffering', this.props.onBuffer)
this.player.subscribe('finishedBuffering', this.props.onBufferEnd)
this.player.subscribe('error', this.props.onError)
if (!this.props.muted) {
// Player is muted by default
if (this.props.muted) {
this.callPlayer('mute')
} else {
this.callPlayer('unmute')
}
this.props.onReady()
Expand Down

0 comments on commit 18f8b85

Please sign in to comment.