Skip to content

Commit

Permalink
fix(FEC-8240): support legacy config on configure API (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenMe authored May 24, 2018
1 parent 104bc9a commit 9a817e5
Showing 1 changed file with 2 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 @@ -2,6 +2,7 @@
import {Error, EventType as CoreEventType, FakeEvent, loadPlayer, Utils} from 'playkit-js'
import {EventType as UIEventType} from 'playkit-js-ui'
import {Provider} from 'playkit-js-providers'
import {supportLegacyOptions} from './common/utils/setup-helpers'
import getLogger from './common/utils/logger'
import {addKalturaParams} from './common/utils/kaltura-params'
import {evaluatePluginsConfig} from './common/plugins/plugins-config'
Expand Down Expand Up @@ -32,6 +33,7 @@ export default class KalturaPlayer {
}

configure(config: Object): void {
config = supportLegacyOptions(config);
this._playerConfigure(config);
if (config.ui) {
this._uiWrapper.setConfig(config.ui);
Expand Down

0 comments on commit 9a817e5

Please sign in to comment.