Skip to content

Commit

Permalink
playlist - the thumbnail slices request is missing ks when the item i…
Browse files Browse the repository at this point in the history
…s already played (#210)

pass the current session object to `setMedia` api
  • Loading branch information
yairans authored Jan 17, 2019
1 parent 63f1a3b commit 7e8359f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/playlist/playlist-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class PlaylistManager {
if (activeItem.isPlayable()) {
this._player.reset();
// $FlowFixMe
this._player.setMedia({session: {}, plugins: {}, sources: activeItem.sources});
this._player.setMedia({session: this._player.config.session, plugins: {}, sources: activeItem.sources});
this._player.dispatchEvent(new FakeEvent(PlaylistEventType.PLAYLIST_ITEM_CHANGED, {index, activeItem}));
return Promise.resolve();
} else {
Expand Down

0 comments on commit 7e8359f

Please sign in to comment.