Skip to content

Commit

Permalink
fix(FEC-8871): playlist - strange behavior when playback.loop is true (
Browse files Browse the repository at this point in the history
…#217)

force `playback.loop: false` for playlist
  • Loading branch information
yairans committed Jan 30, 2019
1 parent 840cba8 commit c619386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/playlist/playlist-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,12 @@ class PlaylistManager {

_setItem(activeItem: PlaylistItem, index: number): Promise<*> {
this._logger.debug(`Playing item number ${index}`, activeItem);
const playback: Object = {loop: false};
if (this._playlist.current.item) {
// from the second item onwards
this._player.configure({playback: {autoplay: true}});
playback['autoplay'] = true;
}
this._player.configure({playback});
this._playlist.activeItemIndex = index;
if (activeItem.isPlayable()) {
this._player.reset();
Expand Down

0 comments on commit c619386

Please sign in to comment.