Skip to content

Commit

Permalink
fix(FEC-9511): the large play button gets stuck when auto play is fai…
Browse files Browse the repository at this point in the history
…led (#458)

Do `updatePrePlayback(false)` on `FIRST_PLAY`

Solves [FEC-9511](https://kaltura.atlassian.net/browse/FEC-9511)
  • Loading branch information
yairans committed Nov 28, 2019
1 parent 35e814f commit d7a27e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/engine-connector/engine-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ class EngineConnector extends Component {
this.props.updatePrePlayback(true);
});

eventManager.listen(player, player.Event.FIRST_PLAY, () => {
this.props.updatePrePlayback(false);
});

eventManager.listen(player, player.Event.PLAY, () => {
this.props.updateIsPlaying(true);
this.props.updateIsEnded(false);
Expand Down

0 comments on commit d7a27e7

Please sign in to comment.