1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-19 10:54:16 +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:
Gary Katsevman 2014-09-02 14:51:13 -04:00
parent 7caa2fc1a7
commit e60f2eef5c
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ vjs.Html5 = vjs.MediaTechController.extend({
this['fullscreenResizeFeature'] = true; this['fullscreenResizeFeature'] = true;
// HTML video supports progress events // HTML video supports progress events
this.features['progressEvents'] = true; this['progressEventsFeature'] = true;
vjs.MediaTechController.call(this, player, options, ready); vjs.MediaTechController.call(this, player, options, ready);
this.setupTriggers(); this.setupTriggers();

View File

@ -19,12 +19,12 @@ vjs.MediaTechController = vjs.Component.extend({
vjs.Component.call(this, player, options, ready); vjs.Component.call(this, player, options, ready);
// Manually track progress in cases where the browser/flash player doesn't report it. // Manually track progress in cases where the browser/flash player doesn't report it.
if (!this.features['progressEvents']) { if (!this['progressEventsFeature']) {
this.manualProgressOn(); this.manualProgressOn();
} }
// Manually track timeudpates in cases where the browser/flash player doesn't report it. // Manually track timeudpates in cases where the browser/flash player doesn't report it.
if (!this.features['timeupdateEvents']) { if (!this['timeupdateEventsFeature']) {
this.manualTimeUpdatesOn(); this.manualTimeUpdatesOn();
} }
@ -210,7 +210,7 @@ vjs.MediaTechController.prototype.manualTimeUpdatesOn = function(){
// Watch for native timeupdate event // Watch for native timeupdate event
this.one('timeupdate', function(){ this.one('timeupdate', function(){
// Update known progress support for this playback technology // Update known progress support for this playback technology
this.features['timeupdateEvents'] = true; this['timeupdateEventsFeature'] = true;
// Turn off manual progress tracking // Turn off manual progress tracking
this.manualTimeUpdatesOff(); this.manualTimeUpdatesOff();
}); });