Skip to content

Commit

Permalink
fix(SUP-38343):Channel playlist - Auto play even it is turned off on … (
Browse files Browse the repository at this point in the history
#644)

* fix(SUP-38343):Channel playlist - Auto play even it is turned off on player config
  • Loading branch information
inbalvasserman authored Aug 9, 2023
1 parent 12f8afc commit 1f3cc10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common/playlist/playlist-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,12 @@ class PlaylistManager {
PlaylistManager._logger.debug(`Playing item number ${index}`, activeItem);
const playback: Object = {loop: false};
if (this._playlist.current) {
// from the second item onwards
playback['autoplay'] = true;
if (this._player._playbackStart) {
// from the second item onwards
playback['autoplay'] = true;
} else {
playback['autoplay'] = !!this._playerOptions.playback?.autoplay;
}
}
this._player.configure({playback});
this._playlist.activeItemIndex = index;
Expand Down

0 comments on commit 1f3cc10

Please sign in to comment.