Skip to content

Commit

Permalink
fix(FEC-8686): the playlist jumps to the last item (in case setting t…
Browse files Browse the repository at this point in the history
…imeToShow) (#300)

**issue:** in some browsers the `currentTime` is not updated immediately in change media
**solution:** set `currentTime: 0` on `CHANGE_SOURCE_STARTED`

despite of #294, still need this fix for `timeToShow` settings which plays next before `PLAYBACK_ENDED` event.
  • Loading branch information
yairans committed Nov 14, 2018
1 parent 3745803 commit 04c74dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/engine-connector/engine-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class EngineConnector extends BaseComponent {
this.props.updateIsPlaying(false);
this.props.updateIsEnded(false);
this.props.updateIsPlaybackEnded(false);
this.props.updateCurrentTime(0);
this.props.updateLastSeekPoint(0);
if (this.props.engine.isCasting) {
this.props.updateLoadingSpinnerState(true);
Expand Down

0 comments on commit 04c74dd

Please sign in to comment.