1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-08 12:05:47 +02:00

Merge pull request #192 from eikes/master

Make the components available in the "ready" callback
This commit is contained in:
Steve Heffernan 2012-08-07 16:12:15 -07:00
commit 5e8b6c8455

View File

@ -14,9 +14,6 @@ _V_.Player = _V_.Component.extend({
_V_.merge(options, this.getVideoTagSettings()); // Override with Video Tag Options
_V_.merge(options, addOptions); // Override/extend with options from setup call
// Add callback to ready queue
this.ready(ready);
// Store controls setting, and then remove immediately so native controls don't flash.
tag.removeAttribute("controls");
@ -85,6 +82,9 @@ _V_.Player = _V_.Component.extend({
});
}
// Add callback to ready queue
this.ready(ready);
// Tracks defined in tracks.js
this.textTracks = [];
if (options.tracks && options.tracks.length > 0) {
@ -919,4 +919,4 @@ _V_.Player = _V_.Component.extend({
};
}
})();
})();