From 7e8359f74171e6fedc2ca6c366710b7c6803b304 Mon Sep 17 00:00:00 2001 From: Yair Ansbacher Date: Thu, 17 Jan 2019 17:05:24 +0200 Subject: [PATCH] playlist - the thumbnail slices request is missing ks when the item is already played (#210) pass the current session object to `setMedia` api --- src/common/playlist/playlist-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/playlist/playlist-manager.js b/src/common/playlist/playlist-manager.js index 49e78bc04..4a3ec2ee4 100644 --- a/src/common/playlist/playlist-manager.js +++ b/src/common/playlist/playlist-manager.js @@ -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 {