mirror of
https://github.com/videojs/video.js.git
synced 2025-02-12 12:16:27 +02:00
Merge pull request #192 from eikes/master
Make the components available in the "ready" callback
This commit is contained in:
commit
5e8b6c8455
@ -14,9 +14,6 @@ _V_.Player = _V_.Component.extend({
|
|||||||
_V_.merge(options, this.getVideoTagSettings()); // Override with Video Tag Options
|
_V_.merge(options, this.getVideoTagSettings()); // Override with Video Tag Options
|
||||||
_V_.merge(options, addOptions); // Override/extend with options from setup call
|
_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.
|
// Store controls setting, and then remove immediately so native controls don't flash.
|
||||||
tag.removeAttribute("controls");
|
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
|
// Tracks defined in tracks.js
|
||||||
this.textTracks = [];
|
this.textTracks = [];
|
||||||
if (options.tracks && options.tracks.length > 0) {
|
if (options.tracks && options.tracks.length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user