Skip to content

Commit

Permalink
feat: ui customization (#105)
Browse files Browse the repository at this point in the history
add ability to pass custom UI to player, using external Preact components or using Kaltura player components library
  • Loading branch information
OrenMe authored Apr 10, 2018
1 parent d003e66 commit 6b70fc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ export default class KalturaPlayer {
this._player = loadPlayer(options.player);
this._playerConfigure = this._player.configure.bind(this._player);
this._logger = getLogger('KalturaPlayer' + Utils.Generator.uniqueId(5));
this._uiManager = new UIManager(this._player, options.ui);
this._provider = new Provider(options.provider, __VERSION__);
this._uiManager.buildDefaultUI();
this._uiManager = new UIManager(this._player, options.ui);
if (options.ui.customPreset) {
this._uiManager.buildCustomUI(options.ui.customPreset)
} else {
this._uiManager.buildDefaultUI();
}
Object.assign(this._player, {
loadMedia: mediaInfo => this.loadMedia(mediaInfo),
configure: config => this.configure(config),
Expand Down

0 comments on commit 6b70fc0

Please sign in to comment.