Skip to content

Commit

Permalink
feat(FEC-8703): playlist loop (#332)
Browse files Browse the repository at this point in the history
* Consider `loop` as `autoContinue`.
* Tapping the large replay button does playlist loop. 

Depends on kaltura/kaltura-player-js#208
  • Loading branch information
yairans committed Jan 22, 2019
1 parent d755025 commit bbe770a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/playlist-countdown/playlist-countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class PlaylistCountdown extends BaseComponent {
props.state.engine.playlist &&
props.state.engine.playlist.next &&
props.state.engine.playlist.next.sources &&
props.player.playlist.options.autoContinue &&
props.player.playlist.countdown.showing
props.player.playlist.countdown.showing &&
(props.player.playlist.options.autoContinue || props.player.playlist.options.loop)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PrePlaybackPlayOverlay extends BaseComponent {
*/
handleClick(): void {
this.player.getView().focus();
this.player.play();
this.props.playlist && this.props.isPlaybackEnded ? this.player.playlist.playNext() : this.player.play();
this.notifyClick();
}

Expand Down

0 comments on commit bbe770a

Please sign in to comment.