Skip to content

Commit

Permalink
fix(FEV-1291): clear thumbnail manager for Youtube entries in playlis…
Browse files Browse the repository at this point in the history
…t and export engineType to be used by plugins (#555)

clear thumbnail manager for Youtube entries in playlist and export engineType to be used by plugins

solves: FEC-12369
  • Loading branch information
amirch1 authored Jul 18, 2022
1 parent 5bc8678 commit d0071f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class KalturaPlayer extends FakeEventTarget {
this.configure({session: mediaConfig.session});
if (!hasYoutubeSource(sources)) {
this._thumbnailManager = new ThumbnailManager(this, this.config.ui, mediaConfig);
} else {
this._thumbnailManager = null;
}
addKalturaPoster(sources, mediaConfig.sources, this._localPlayer.dimensions, this.shouldAddKs() ? mediaConfig.session?.ks : '');
addKalturaParams(this, {...playerConfig, sources});
Expand Down
1 change: 1 addition & 0 deletions ts-typed/player.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ declare namespace KalturaPlayerTypes {
ui: any;
config: KalturaPlayerTypes.PlayerConfig;
provider: any;
engineType: string;
cuePointManager: KalturaPlayerTypes.CuePointManager;
ready: () => Promise<any>;
sources: KalturaPlayerTypes.Sources;
Expand Down

0 comments on commit d0071f4

Please sign in to comment.