From: vijeth-aradhya Date: Sun, 23 Jul 2017 04:31:04 +0000 (+0530) Subject: Revert "Add change-video-resolution.js to start the plugin" X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f19e3f7ea50c328c3c8fb9d96084becfadeaf7aa;p=mediagoblin.git Revert "Add change-video-resolution.js to start the plugin" This reverts commit e44c4569c7f7ac4b0b1c8470f38f7f1d09dd00f8. --- diff --git a/mediagoblin/static/js/change-video-resolution.js b/mediagoblin/static/js/change-video-resolution.js deleted file mode 100644 index 9fb6989e..00000000 --- a/mediagoblin/static/js/change-video-resolution.js +++ /dev/null @@ -1,43 +0,0 @@ -var glplayer; - -$(document).ready(function() -{ - // fire up the plugin - glplayer = videojs('video_1', { - controls: true, - muted: true, - height: 400, - width: 700, - plugins: { - videoJsResolutionSwitcher: { - ui: true, - default: 'low', // Default resolution [{Number}, 'low', 'high'], - dynamicLabel: true // Display dynamic labels or gear symbol - } - } - }, function(){ - var player = this; - window.player = player - player.on('resolutionchange', function(){ - console.info('Source changed to %s', player.src()); - console.log(player.currentTime()); - }) - }) - - videojs.options.flash.swf = "https://ajax.cdnjs.com/ajax/libs/videojs-swf/5.4.0/video-js.swf" - -}); - -/* - -function myFunctionA() { - glplayer.currentResolution('720p'); - console.log("clicked on A"); -} - -function myFunctionB() { - glplayer.currentResolution('480p'); - console.log("clicked on A"); -} - -*/ \ No newline at end of file