Skip to content

Commit

Permalink
Load plugins before controls
Browse files Browse the repository at this point in the history
For issue videojs#1980
  • Loading branch information
bc-bbay committed Aug 31, 2015
1 parent b27bbf1 commit da9070c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ class Player extends Component {
// Cache for video property values.
this.cache_ = {};

// Load plugins
if (options['plugins']) {
Lib.obj.each(options['plugins'], function(key, val){
this[key](val);
}, this);
}

// Set poster
this.poster_ = options.poster || '';

Expand Down

0 comments on commit da9070c

Please sign in to comment.