mirror of
https://github.com/kmoskwiak/videojs-resolution-switcher.git
synced 2025-10-03 17:59:42 +02:00
added AMD support
This commit is contained in:
parent
5858c346b8
commit
c2c9b10a58
1 changed files with 217 additions and 207 deletions
|
@ -2,6 +2,15 @@
|
|||
* Copyright (c) 2015 Kasper Moskwiak
|
||||
* Modified by Pierre Kraft
|
||||
* Licensed under the Apache-2.0 license. */
|
||||
|
||||
(function() {
|
||||
var videojs = null;
|
||||
if(typeof window.videojs === 'undefined' && typeof require === 'function') {
|
||||
videojs = require('videojs');
|
||||
} else {
|
||||
videojs = window.videojs;
|
||||
}
|
||||
|
||||
(function(window, videojs) {
|
||||
/* jshint eqnull: true*/
|
||||
'use strict';
|
||||
|
@ -219,4 +228,5 @@
|
|||
|
||||
// register the plugin
|
||||
videojs.plugin('videoJsResolutionSwitcher', videoJsResolutionSwitcher);
|
||||
})(window, window.videojs);
|
||||
})(window, videojs);
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue