Skip to content

Commit

Permalink
fix(FEC-8833):playlist - no thumbnail preview when the item already p…
Browse files Browse the repository at this point in the history
…layed (#209)

use `addKalturaPoster` for array only (OTT)

Also fixing **FEC-8840**
  • Loading branch information
yairans authored Jan 22, 2019
1 parent a56b4fc commit ccd5124
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 @@ -225,7 +225,9 @@ class PlaylistManager {
itemData.sources,
playlistConfig && playlistConfig.items && playlistConfig.items[index] && playlistConfig.items[index].sources
);
addKalturaPoster(itemData.sources, item.sources, this._player.dimensions);
if (Array.isArray(itemData.sources.poster)) {
addKalturaPoster(itemData.sources, item.sources, this._player.dimensions);
}
return {
sources: itemData.sources,
config: playlistConfig && playlistConfig.items && playlistConfig.items[index] && playlistConfig.items[index].config
Expand Down

0 comments on commit ccd5124

Please sign in to comment.