Skip to content

Commit

Permalink
move to setMedia to support playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
lianbenjamin committed Apr 11, 2024
1 parent cd965b8 commit ad0af39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kaltura-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ export class KalturaPlayer extends FakeEventTarget {
this._appPluginConfig = mergedPluginsConfigAndFromApp[1];
this.configure(getDefaultRedirectOptions({ sources: this.sources }, mediaConfig));
this.setMedia(mediaConfig);
this._configureMediaMetadata(mediaConfig);
return mediaConfig;
} catch (e) {
const category = getErrorCategory(e);
Expand Down Expand Up @@ -207,6 +206,7 @@ export class KalturaPlayer extends FakeEventTarget {
playerConfig.playback = playback;
}
this.configure({ ...playerConfig, sources });
this._configureMediaMetadata(mediaConfig);
}

public async loadPlaylist(playlistInfo: ProviderPlaylistInfoObject, playlistConfig: PlaylistConfigObject): Promise<ProviderPlaylistObject> {
Expand Down Expand Up @@ -824,7 +824,7 @@ export class KalturaPlayer extends FakeEventTarget {
return this._localPlayer.Error;
}

private _configureMediaMetadata(mediaConfig: ProviderMediaConfigObject): void {
private _configureMediaMetadata(mediaConfig: KPMediaConfig): void {
// here we can provide information about the media, to a device that is playing it
// set the media metadata title to the name of the entry
if (navigator.mediaSession) {
Expand Down

0 comments on commit ad0af39

Please sign in to comment.