videojs-hotkeys
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -1,3 +0,3 @@ | ||
/* videojs-hotkeys v0.2.11 - https://github.com/ctd1500/videojs-hotkeys */ | ||
!function(a,b){"function"==typeof define&&define.amd?define([],b.bind(this,a,a.videojs)):"undefined"!=typeof module&&module.exports?module.exports=b(a,a.videojs):b(a,a.videojs)}(this,function(a,b){"use strict";a.videojs_hotkeys={version:"0.2.11"};var c=function(c){function d(a){return 32===a.which}function e(a){return 37===a.which}function f(a){return 39===a.which}function g(a){return 38===a.which}function h(a){return 40===a.which}function i(a){return 77===a.which}function j(a){return 70===a.which}var k=this,l=k.el(),m={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!1,playPauseKey:d,rewindKey:e,forwardKey:f,volumeUpKey:g,volumeDownKey:h,muteKey:i,fullscreenKey:j,customKeys:{}},n=1,o=2,p=3,q=4,r=5,s=6,t=7,u=b.mergeOptions||b.util.mergeOptions;c=u(m,c||{});var v=c.volumeStep,w=c.seekStep,x=c.enableMute,y=c.enableVolumeScroll,z=c.enableFullscreen,A=c.enableNumbers,B=c.enableJogStyle,C=c.alwaysCaptureHotkeys;l.hasAttribute("tabIndex")||l.setAttribute("tabIndex","-1"),C&&k.one("play",function(){l.focus()}),k.on("play",function(){var a=l.querySelector(".iframeblocker");a&&""===a.style.display&&(a.style.display="block",a.style.bottom="39px")});var D=function(a){var b,d=a.which,e=a.preventDefault;if(k.controls()){var f=document.activeElement;if(C||f==l||f==l.querySelector(".vjs-tech")||f==l.querySelector(".vjs-control-bar")||f==l.querySelector(".iframeblocker"))switch(G(a,k)){case n:e(),C&&a.stopPropagation(),k.paused()?k.play():k.pause();break;case o:e(),b=k.currentTime()-w,k.currentTime()<=w&&(b=0),k.currentTime(b);break;case p:e(),k.currentTime(k.currentTime()+w);break;case r:e(),B?(b=k.currentTime()-1,k.currentTime()<=1&&(b=0),k.currentTime(b)):k.volume(k.volume()-v);break;case q:e(),B?k.currentTime(k.currentTime()+1):k.volume(k.volume()+v);break;case s:x&&k.muted(!k.muted());break;case t:z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen());break;default:if((d>47&&59>d||d>95&&106>d)&&A){var g=48;d>95&&(g=96);var h=d-g;e(),k.currentTime(k.duration()*h*.1)}for(var i in c.customKeys){var j=c.customKeys[i];j&&j.key&&j.handler&&j.key(a)&&(e(),j.handler(k,c))}}}},E=function(a){if(k.controls()){var b=a.relatedTarget||a.toElement||document.activeElement;(b==l||b==l.querySelector(".vjs-tech")||b==l.querySelector(".iframeblocker"))&&z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen())}},F=function(b){if(k.controls()){var c=b.relatedTarget||b.toElement||document.activeElement;if((C||c==l||c==l.querySelector(".vjs-tech")||c==l.querySelector(".iframeblocker")||c==l.querySelector(".vjs-control-bar"))&&y){b=a.event||b;var d=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));b.preventDefault(),1==d?k.volume(k.volume()+v):-1==d&&k.volume(k.volume()-v)}}},G=function(a,b){return c.playPauseKey(a,b)?n:c.rewindKey(a,b)?o:c.forwardKey(a,b)?p:c.volumeUpKey(a,b)?q:c.volumeDownKey(a,b)?r:c.muteKey(a,b)?s:c.fullscreenKey(a,b)?t:void 0};return k.on("keydown",D),k.on("dblclick",E),k.on("mousewheel",F),k.on("DOMMouseScroll",F),this};b.plugin("hotkeys",c)}); | ||
/* videojs-hotkeys v0.2.12 - https://github.com/ctd1500/videojs-hotkeys */ | ||
!function(a,b){"function"==typeof define&&define.amd?define([],b.bind(this,a,a.videojs)):"undefined"!=typeof module&&module.exports?module.exports=b(a,a.videojs):b(a,a.videojs)}(window,function(a,b){"use strict";a.videojs_hotkeys={version:"0.2.12"};var c=function(c){function d(a){return 32===a.which}function e(a){return 37===a.which}function f(a){return 39===a.which}function g(a){return 38===a.which}function h(a){return 40===a.which}function i(a){return 77===a.which}function j(a){return 70===a.which}var k=this,l=k.el(),m={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!1,playPauseKey:d,rewindKey:e,forwardKey:f,volumeUpKey:g,volumeDownKey:h,muteKey:i,fullscreenKey:j,customKeys:{}},n=1,o=2,p=3,q=4,r=5,s=6,t=7,u=b.mergeOptions||b.util.mergeOptions;c=u(m,c||{});var v=c.volumeStep,w=c.seekStep,x=c.enableMute,y=c.enableVolumeScroll,z=c.enableFullscreen,A=c.enableNumbers,B=c.enableJogStyle,C=c.alwaysCaptureHotkeys;l.hasAttribute("tabIndex")||l.setAttribute("tabIndex","-1"),C&&k.one("play",function(){l.focus()}),k.on("play",function(){var a=l.querySelector(".iframeblocker");a&&""===a.style.display&&(a.style.display="block",a.style.bottom="39px")});var D=function(a){var b,d=a.which,e=a.preventDefault;if(k.controls()){var f=document.activeElement;if(C||f==l||f==l.querySelector(".vjs-tech")||f==l.querySelector(".vjs-control-bar")||f==l.querySelector(".iframeblocker"))switch(G(a,k)){case n:e(),C&&a.stopPropagation(),k.paused()?k.play():k.pause();break;case o:e(),b=k.currentTime()-w,k.currentTime()<=w&&(b=0),k.currentTime(b);break;case p:e(),k.currentTime(k.currentTime()+w);break;case r:e(),B?(b=k.currentTime()-1,k.currentTime()<=1&&(b=0),k.currentTime(b)):k.volume(k.volume()-v);break;case q:e(),B?k.currentTime(k.currentTime()+1):k.volume(k.volume()+v);break;case s:x&&k.muted(!k.muted());break;case t:z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen());break;default:if((d>47&&59>d||d>95&&106>d)&&A){var g=48;d>95&&(g=96);var h=d-g;e(),k.currentTime(k.duration()*h*.1)}for(var i in c.customKeys){var j=c.customKeys[i];j&&j.key&&j.handler&&j.key(a)&&(e(),j.handler(k,c))}}}},E=function(a){if(k.controls()){var b=a.relatedTarget||a.toElement||document.activeElement;(b==l||b==l.querySelector(".vjs-tech")||b==l.querySelector(".iframeblocker"))&&z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen())}},F=function(b){if(k.controls()){var c=b.relatedTarget||b.toElement||document.activeElement;if((C||c==l||c==l.querySelector(".vjs-tech")||c==l.querySelector(".iframeblocker")||c==l.querySelector(".vjs-control-bar"))&&y){b=a.event||b;var d=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));b.preventDefault(),1==d?k.volume(k.volume()+v):-1==d&&k.volume(k.volume()-v)}}},G=function(a,b){return c.playPauseKey(a,b)?n:c.rewindKey(a,b)?o:c.forwardKey(a,b)?p:c.volumeUpKey(a,b)?q:c.volumeDownKey(a,b)?r:c.muteKey(a,b)?s:c.fullscreenKey(a,b)?t:void 0};return k.on("keydown",D),k.on("dblclick",E),k.on("mousewheel",F),k.on("DOMMouseScroll",F),this};b.plugin("hotkeys",c)}); | ||
//# sourceMappingURL=videojs.hotkeys.min.js.map |
{ | ||
"name": "videojs-hotkeys", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Adds more hotkey support to video.js", | ||
@@ -5,0 +5,0 @@ "main": "videojs.hotkeys.min.js", |
@@ -18,5 +18,5 @@ /* | ||
})(this, function(window, videojs) { | ||
})(window, function(window, videojs) { | ||
"use strict"; | ||
window['videojs_hotkeys'] = { version: "0.2.11" }; | ||
window['videojs_hotkeys'] = { version: "0.2.12" }; | ||
@@ -23,0 +23,0 @@ var hotkeys = function(options) { |
@@ -1,2 +0,2 @@ | ||
/* videojs-hotkeys v0.2.11 - https://github.com/ctd1500/videojs-hotkeys */ | ||
!function(a,b){"function"==typeof define&&define.amd?define([],b.bind(this,a,a.videojs)):"undefined"!=typeof module&&module.exports?module.exports=b(a,a.videojs):b(a,a.videojs)}(this,function(a,b){"use strict";a.videojs_hotkeys={version:"0.2.11"};var c=function(c){function d(a){return 32===a.which}function e(a){return 37===a.which}function f(a){return 39===a.which}function g(a){return 38===a.which}function h(a){return 40===a.which}function i(a){return 77===a.which}function j(a){return 70===a.which}var k=this,l=k.el(),m={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!1,playPauseKey:d,rewindKey:e,forwardKey:f,volumeUpKey:g,volumeDownKey:h,muteKey:i,fullscreenKey:j,customKeys:{}},n=1,o=2,p=3,q=4,r=5,s=6,t=7,u=b.mergeOptions||b.util.mergeOptions;c=u(m,c||{});var v=c.volumeStep,w=c.seekStep,x=c.enableMute,y=c.enableVolumeScroll,z=c.enableFullscreen,A=c.enableNumbers,B=c.enableJogStyle,C=c.alwaysCaptureHotkeys;l.hasAttribute("tabIndex")||l.setAttribute("tabIndex","-1"),C&&k.one("play",function(){l.focus()}),k.on("play",function(){var a=l.querySelector(".iframeblocker");a&&""===a.style.display&&(a.style.display="block",a.style.bottom="39px")});var D=function(a){var b,d=a.which,e=a.preventDefault;if(k.controls()){var f=document.activeElement;if(C||f==l||f==l.querySelector(".vjs-tech")||f==l.querySelector(".vjs-control-bar")||f==l.querySelector(".iframeblocker"))switch(G(a,k)){case n:e(),C&&a.stopPropagation(),k.paused()?k.play():k.pause();break;case o:e(),b=k.currentTime()-w,k.currentTime()<=w&&(b=0),k.currentTime(b);break;case p:e(),k.currentTime(k.currentTime()+w);break;case r:e(),B?(b=k.currentTime()-1,k.currentTime()<=1&&(b=0),k.currentTime(b)):k.volume(k.volume()-v);break;case q:e(),B?k.currentTime(k.currentTime()+1):k.volume(k.volume()+v);break;case s:x&&k.muted(!k.muted());break;case t:z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen());break;default:if((d>47&&59>d||d>95&&106>d)&&A){var g=48;d>95&&(g=96);var h=d-g;e(),k.currentTime(k.duration()*h*.1)}for(var i in c.customKeys){var j=c.customKeys[i];j&&j.key&&j.handler&&j.key(a)&&(e(),j.handler(k,c))}}}},E=function(a){if(k.controls()){var b=a.relatedTarget||a.toElement||document.activeElement;(b==l||b==l.querySelector(".vjs-tech")||b==l.querySelector(".iframeblocker"))&&z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen())}},F=function(b){if(k.controls()){var c=b.relatedTarget||b.toElement||document.activeElement;if((C||c==l||c==l.querySelector(".vjs-tech")||c==l.querySelector(".iframeblocker")||c==l.querySelector(".vjs-control-bar"))&&y){b=a.event||b;var d=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));b.preventDefault(),1==d?k.volume(k.volume()+v):-1==d&&k.volume(k.volume()-v)}}},G=function(a,b){return c.playPauseKey(a,b)?n:c.rewindKey(a,b)?o:c.forwardKey(a,b)?p:c.volumeUpKey(a,b)?q:c.volumeDownKey(a,b)?r:c.muteKey(a,b)?s:c.fullscreenKey(a,b)?t:void 0};return k.on("keydown",D),k.on("dblclick",E),k.on("mousewheel",F),k.on("DOMMouseScroll",F),this};b.plugin("hotkeys",c)}); | ||
/* videojs-hotkeys v0.2.12 - https://github.com/ctd1500/videojs-hotkeys */ | ||
!function(a,b){"function"==typeof define&&define.amd?define([],b.bind(this,a,a.videojs)):"undefined"!=typeof module&&module.exports?module.exports=b(a,a.videojs):b(a,a.videojs)}(window,function(a,b){"use strict";a.videojs_hotkeys={version:"0.2.12"};var c=function(c){function d(a){return 32===a.which}function e(a){return 37===a.which}function f(a){return 39===a.which}function g(a){return 38===a.which}function h(a){return 40===a.which}function i(a){return 77===a.which}function j(a){return 70===a.which}var k=this,l=k.el(),m={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!1,playPauseKey:d,rewindKey:e,forwardKey:f,volumeUpKey:g,volumeDownKey:h,muteKey:i,fullscreenKey:j,customKeys:{}},n=1,o=2,p=3,q=4,r=5,s=6,t=7,u=b.mergeOptions||b.util.mergeOptions;c=u(m,c||{});var v=c.volumeStep,w=c.seekStep,x=c.enableMute,y=c.enableVolumeScroll,z=c.enableFullscreen,A=c.enableNumbers,B=c.enableJogStyle,C=c.alwaysCaptureHotkeys;l.hasAttribute("tabIndex")||l.setAttribute("tabIndex","-1"),C&&k.one("play",function(){l.focus()}),k.on("play",function(){var a=l.querySelector(".iframeblocker");a&&""===a.style.display&&(a.style.display="block",a.style.bottom="39px")});var D=function(a){var b,d=a.which,e=a.preventDefault;if(k.controls()){var f=document.activeElement;if(C||f==l||f==l.querySelector(".vjs-tech")||f==l.querySelector(".vjs-control-bar")||f==l.querySelector(".iframeblocker"))switch(G(a,k)){case n:e(),C&&a.stopPropagation(),k.paused()?k.play():k.pause();break;case o:e(),b=k.currentTime()-w,k.currentTime()<=w&&(b=0),k.currentTime(b);break;case p:e(),k.currentTime(k.currentTime()+w);break;case r:e(),B?(b=k.currentTime()-1,k.currentTime()<=1&&(b=0),k.currentTime(b)):k.volume(k.volume()-v);break;case q:e(),B?k.currentTime(k.currentTime()+1):k.volume(k.volume()+v);break;case s:x&&k.muted(!k.muted());break;case t:z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen());break;default:if((d>47&&59>d||d>95&&106>d)&&A){var g=48;d>95&&(g=96);var h=d-g;e(),k.currentTime(k.duration()*h*.1)}for(var i in c.customKeys){var j=c.customKeys[i];j&&j.key&&j.handler&&j.key(a)&&(e(),j.handler(k,c))}}}},E=function(a){if(k.controls()){var b=a.relatedTarget||a.toElement||document.activeElement;(b==l||b==l.querySelector(".vjs-tech")||b==l.querySelector(".iframeblocker"))&&z&&(k.isFullscreen()?k.exitFullscreen():k.requestFullscreen())}},F=function(b){if(k.controls()){var c=b.relatedTarget||b.toElement||document.activeElement;if((C||c==l||c==l.querySelector(".vjs-tech")||c==l.querySelector(".iframeblocker")||c==l.querySelector(".vjs-control-bar"))&&y){b=a.event||b;var d=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));b.preventDefault(),1==d?k.volume(k.volume()+v):-1==d&&k.volume(k.volume()-v)}}},G=function(a,b){return c.playPauseKey(a,b)?n:c.rewindKey(a,b)?o:c.forwardKey(a,b)?p:c.volumeUpKey(a,b)?q:c.volumeDownKey(a,b)?r:c.muteKey(a,b)?s:c.fullscreenKey(a,b)?t:void 0};return k.on("keydown",D),k.on("dblclick",E),k.on("mousewheel",F),k.on("DOMMouseScroll",F),this};b.plugin("hotkeys",c)}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42352