Skip to content

Commit

Permalink
fix(FEC-8981): playlist doesn't send ott analytics (#226)
Browse files Browse the repository at this point in the history
Pass plugins with empty config to evaluation as we do for single media (in `setMedia`)
  • Loading branch information
yairans committed Mar 19, 2019
1 parent 1e58a1e commit afb0cf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ class KalturaPlayer extends FakeEventTarget {

setPlaylist(playlistData: ProviderPlaylistObject, playlistConfig: ?KPPlaylistConfigObject, entryList: ?ProviderEntryListObject): void {
this._logger.debug('setPlaylist', playlistData);
const config = {playlist: playlistData, plugins: this._localPlayer.config.plugins};
const config = {playlist: playlistData, plugins: {}};
Object.keys(this._localPlayer.config.plugins).forEach(name => {
config.plugins[name] = {};
});
// $FlowFixMe
evaluatePluginsConfig(config);
this._localPlayer.configure({plugins: config.plugins});
Expand Down

0 comments on commit afb0cf2

Please sign in to comment.