Skip to content

Commit

Permalink
feat(FEC-13944): share and embed plugin to take player ratio to embed…
Browse files Browse the repository at this point in the history
… code
  • Loading branch information
lianbenjamin committed May 26, 2024
1 parent 5cb90f1 commit 083acc1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/kaltura-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ import {
hasYoutubeSource,
maybeSetStreamPriority,
mergeProviderPluginsConfig,
supportLegacyOptions
supportLegacyOptions,
getServerUIConf
} from './common/utils/setup-helpers';
import { getDefaultRedirectOptions } from 'player-defaults';
import { addKalturaParams } from './common/utils/kaltura-params';
Expand Down Expand Up @@ -151,6 +152,10 @@ export class KalturaPlayer extends FakeEventTarget {
this._localPlayer.setSources(sources || {});
}

public getUIConfData(): any {
return getServerUIConf().uiConfData || {};
}

public async loadMedia(mediaInfo: ProviderMediaInfoObject, mediaOptions?: SourcesConfig): Promise<any> {
KalturaPlayer._logger.debug('loadMedia', mediaInfo);
this._mediaInfo = mediaInfo;
Expand Down

0 comments on commit 083acc1

Please sign in to comment.