mirror of
https://github.com/videojs/video.js.git
synced 2024-12-31 03:11:11 +02:00
Update media.js and html5.js feature access.
Due to #1415, various usage of features moved around. This makes sure that features are now called directly on the tech everywhere.
This commit is contained in:
parent
7caa2fc1a7
commit
e60f2eef5c
@ -25,7 +25,7 @@ vjs.Html5 = vjs.MediaTechController.extend({
|
||||
this['fullscreenResizeFeature'] = true;
|
||||
|
||||
// HTML video supports progress events
|
||||
this.features['progressEvents'] = true;
|
||||
this['progressEventsFeature'] = true;
|
||||
|
||||
vjs.MediaTechController.call(this, player, options, ready);
|
||||
this.setupTriggers();
|
||||
|
@ -19,12 +19,12 @@ vjs.MediaTechController = vjs.Component.extend({
|
||||
vjs.Component.call(this, player, options, ready);
|
||||
|
||||
// Manually track progress in cases where the browser/flash player doesn't report it.
|
||||
if (!this.features['progressEvents']) {
|
||||
if (!this['progressEventsFeature']) {
|
||||
this.manualProgressOn();
|
||||
}
|
||||
|
||||
// Manually track timeudpates in cases where the browser/flash player doesn't report it.
|
||||
if (!this.features['timeupdateEvents']) {
|
||||
if (!this['timeupdateEventsFeature']) {
|
||||
this.manualTimeUpdatesOn();
|
||||
}
|
||||
|
||||
@ -210,7 +210,7 @@ vjs.MediaTechController.prototype.manualTimeUpdatesOn = function(){
|
||||
// Watch for native timeupdate event
|
||||
this.one('timeupdate', function(){
|
||||
// Update known progress support for this playback technology
|
||||
this.features['timeupdateEvents'] = true;
|
||||
this['timeupdateEventsFeature'] = true;
|
||||
// Turn off manual progress tracking
|
||||
this.manualTimeUpdatesOff();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user