Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configure refactor #122

Merged
merged 4 commits into from
Sep 25, 2017
Merged

feat: configure refactor #122

merged 4 commits into from
Sep 25, 2017

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Sep 25, 2017

Description of the Changes

Align configure api behavior:

Plugins:

  1. If engine is already created, the existing plugins can update their configuration on the fly. If a new plugin is configured after engine is exists, we will ignore this request.
  2. If engine is not yet created, plugins can be either loaded or update their configuration at any time.

Playback:
Playback can be configured at any time but this will affect only to until sources will be configured.
For example, If sources not yet configured and playback is configured, the playback configuration will take place when sources will received.
If sources already received and playback is configured again, the playback configuration will take place on the next sources configuration.

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@dan-ziv dan-ziv self-assigned this Sep 25, 2017
src/player.js Outdated
*/
_updatePlayerConfig(config: Object): void {
if (Utils.Object.isEmptyObject(this._config)) {
Utils.Object.mergeDeep(this._config, Player._defaultConfig, config);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no do this on init anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dan-ziv dan-ziv merged commit aafc22e into master Sep 25, 2017
@dan-ziv dan-ziv deleted the configure-refactor branch September 25, 2017 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants