videojs_rails 4.12.11 → 4.12.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54c47f2cb8e97aec8d78904d580cfa5e845e1dfd
4
- data.tar.gz: 3ed9c74bf9bc9788f5716d15a0794f3a7cd63e11
3
+ metadata.gz: 6b616f2f8fdbfb4b39b78a09836501f7fbaaa9a3
4
+ data.tar.gz: 927affcee63f0b9ab38abbb137309f4ee6eaf921
5
5
  SHA512:
6
- metadata.gz: 5a9c6c784732a3afe59bbb2acfe5916127ef9ab93e711fdf69b8916dffa5c4711f6571b030ed35664fcb22c46434799a3329b668871ca60a6d425ce306dfed98
7
- data.tar.gz: a9a8994b727325187fa9e328ff42225289218103af7e2be061589136b70d7fdc0212d432eb562b5ad8186ff9d0e34f7b3c32b5e995c31b36b10f0e3e420a7f2c
6
+ metadata.gz: 708e4f349809023b2a2581a85a6a0155010290bccd93d837a64fdbf14b2df4c3cff3b2f64ac601661a055aeb778c4de3207c0ed26de7fff83af2b784fa750613
7
+ data.tar.gz: 7606a2c0c54ba765178764a874e59fbe11be4cfa91989e3b686522e2e3a32ad2939957a15f5fd3576937edede23650ffc818441825aaf2aad354396cae88f4f1
@@ -1,3 +1,3 @@
1
1
  module VideojsRails
2
- VERSION = '4.12.11'
2
+ VERSION = '4.12.12'
3
3
  end
@@ -80,7 +80,7 @@ vjs.ACCESS_PROTOCOL = ('https:' == document.location.protocol ? 'https://' : 'ht
80
80
  * Full player version
81
81
  * @type {string}
82
82
  */
83
- vjs['VERSION'] = '4.12.11';
83
+ vjs['VERSION'] = '4.12.12';
84
84
 
85
85
  /**
86
86
  * Global Player instance options, surfaced from vjs.Player.prototype.options_
@@ -2568,15 +2568,15 @@ vjs.Component.prototype.triggerReady = function(){
2568
2568
 
2569
2569
  var readyQueue = this.readyQueue_;
2570
2570
 
2571
+ // Reset Ready Queue
2572
+ this.readyQueue_ = [];
2573
+
2571
2574
  if (readyQueue && readyQueue.length > 0) {
2572
2575
 
2573
2576
  for (var i = 0, j = readyQueue.length; i < j; i++) {
2574
2577
  readyQueue[i].call(this);
2575
2578
  }
2576
2579
 
2577
- // Reset Ready Queue
2578
- this.readyQueue_ = [];
2579
-
2580
2580
  // Allow for using event listeners also, in case you want to do something everytime a source is ready.
2581
2581
  this.trigger('ready');
2582
2582
  }
@@ -6987,7 +6987,7 @@ vjs.MediaTechController.withSourceHandlers = function(Tech){
6987
6987
  * @param {Function} handler The source handler
6988
6988
  * @param {Boolean} first Register it before any existing handlers
6989
6989
  */
6990
- Tech.registerSourceHandler = function(handler, index){
6990
+ Tech['registerSourceHandler'] = function(handler, index){
6991
6991
  var handlers = Tech.sourceHandlers;
6992
6992
 
6993
6993
  if (!handlers) {
@@ -7014,7 +7014,7 @@ vjs.MediaTechController.withSourceHandlers = function(Tech){
7014
7014
  can;
7015
7015
 
7016
7016
  for (var i = 0; i < handlers.length; i++) {
7017
- can = handlers[i].canHandleSource(source);
7017
+ can = handlers[i]['canHandleSource'](source);
7018
7018
 
7019
7019
  if (can) {
7020
7020
  return handlers[i];
@@ -7033,7 +7033,7 @@ vjs.MediaTechController.withSourceHandlers = function(Tech){
7033
7033
  var sh = Tech.selectSourceHandler(srcObj);
7034
7034
 
7035
7035
  if (sh) {
7036
- return sh.canHandleSource(srcObj);
7036
+ return sh['canHandleSource'](srcObj);
7037
7037
  }
7038
7038
 
7039
7039
  return '';
@@ -7052,8 +7052,8 @@ vjs.MediaTechController.withSourceHandlers = function(Tech){
7052
7052
  if (!sh) {
7053
7053
  // Fall back to a native source hander when unsupported sources are
7054
7054
  // deliberately set
7055
- if (Tech.nativeSourceHandler) {
7056
- sh = Tech.nativeSourceHandler;
7055
+ if (Tech['nativeSourceHandler']) {
7056
+ sh = Tech['nativeSourceHandler'];
7057
7057
  } else {
7058
7058
  vjs.log.error('No source hander found for the current source.');
7059
7059
  }
@@ -7064,7 +7064,7 @@ vjs.MediaTechController.withSourceHandlers = function(Tech){
7064
7064
  this.off('dispose', this.disposeSourceHandler);
7065
7065
 
7066
7066
  this.currentSource_ = source;
7067
- this.sourceHandler_ = sh.handleSource(source, this);
7067
+ this.sourceHandler_ = sh['handleSource'](source, this);
7068
7068
  this.on('dispose', this.disposeSourceHandler);
7069
7069
 
7070
7070
  return this;
@@ -7074,8 +7074,8 @@ vjs.MediaTechController.withSourceHandlers = function(Tech){
7074
7074
  * Clean up any existing source handler
7075
7075
  */
7076
7076
  Tech.prototype.disposeSourceHandler = function(){
7077
- if (this.sourceHandler_ && this.sourceHandler_.dispose) {
7078
- this.sourceHandler_.dispose();
7077
+ if (this.sourceHandler_ && this.sourceHandler_['dispose']) {
7078
+ this.sourceHandler_['dispose']();
7079
7079
  }
7080
7080
  };
7081
7081
 
@@ -7603,14 +7603,14 @@ vjs.MediaTechController.withSourceHandlers(vjs.Html5);
7603
7603
  * @param {Object} source The source object
7604
7604
  * @param {vjs.Html5} tech The instance of the HTML5 tech
7605
7605
  */
7606
- vjs.Html5.nativeSourceHandler = {};
7606
+ vjs.Html5['nativeSourceHandler'] = {};
7607
7607
 
7608
7608
  /**
7609
7609
  * Check if the video element can handle the source natively
7610
7610
  * @param {Object} source The source object
7611
7611
  * @return {String} 'probably', 'maybe', or '' (empty string)
7612
7612
  */
7613
- vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
7613
+ vjs.Html5['nativeSourceHandler']['canHandleSource'] = function(source){
7614
7614
  var match, ext;
7615
7615
 
7616
7616
  function canPlayType(type){
@@ -7644,7 +7644,7 @@ vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
7644
7644
  * @param {Object} source The source object
7645
7645
  * @param {vjs.Html5} tech The instance of the Html5 tech
7646
7646
  */
7647
- vjs.Html5.nativeSourceHandler.handleSource = function(source, tech){
7647
+ vjs.Html5['nativeSourceHandler']['handleSource'] = function(source, tech){
7648
7648
  tech.setSrc(source.src);
7649
7649
  };
7650
7650
 
@@ -7652,10 +7652,10 @@ vjs.Html5.nativeSourceHandler.handleSource = function(source, tech){
7652
7652
  * Clean up the source handler when disposing the player or switching sources..
7653
7653
  * (no cleanup is needed when supporting the format natively)
7654
7654
  */
7655
- vjs.Html5.nativeSourceHandler.dispose = function(){};
7655
+ vjs.Html5['nativeSourceHandler']['dispose'] = function(){};
7656
7656
 
7657
7657
  // Register the native source handler
7658
- vjs.Html5.registerSourceHandler(vjs.Html5.nativeSourceHandler);
7658
+ vjs.Html5['registerSourceHandler'](vjs.Html5['nativeSourceHandler']);
7659
7659
 
7660
7660
  /**
7661
7661
  * Check if the volume can be changed in this browser/device.
@@ -8062,14 +8062,14 @@ vjs.MediaTechController.withSourceHandlers(vjs.Flash);
8062
8062
  * @param {Object} source The source object
8063
8063
  * @param {vjs.Flash} tech The instance of the Flash tech
8064
8064
  */
8065
- vjs.Flash.nativeSourceHandler = {};
8065
+ vjs.Flash['nativeSourceHandler'] = {};
8066
8066
 
8067
8067
  /**
8068
8068
  * Check Flash can handle the source natively
8069
8069
  * @param {Object} source The source object
8070
8070
  * @return {String} 'probably', 'maybe', or '' (empty string)
8071
8071
  */
8072
- vjs.Flash.nativeSourceHandler.canHandleSource = function(source){
8072
+ vjs.Flash['nativeSourceHandler']['canHandleSource'] = function(source){
8073
8073
  var type;
8074
8074
 
8075
8075
  if (!source.type) {
@@ -8093,7 +8093,7 @@ vjs.Flash.nativeSourceHandler.canHandleSource = function(source){
8093
8093
  * @param {Object} source The source object
8094
8094
  * @param {vjs.Flash} tech The instance of the Flash tech
8095
8095
  */
8096
- vjs.Flash.nativeSourceHandler.handleSource = function(source, tech){
8096
+ vjs.Flash['nativeSourceHandler']['handleSource'] = function(source, tech){
8097
8097
  tech.setSrc(source.src);
8098
8098
  };
8099
8099
 
@@ -8101,10 +8101,10 @@ vjs.Flash.nativeSourceHandler.handleSource = function(source, tech){
8101
8101
  * Clean up the source handler when disposing the player or switching sources..
8102
8102
  * (no cleanup is needed when supporting the format natively)
8103
8103
  */
8104
- vjs.Flash.nativeSourceHandler.dispose = function(){};
8104
+ vjs.Flash['nativeSourceHandler']['dispose'] = function(){};
8105
8105
 
8106
8106
  // Register the native source handler
8107
- vjs.Flash.registerSourceHandler(vjs.Flash.nativeSourceHandler);
8107
+ vjs.Flash['registerSourceHandler'](vjs.Flash['nativeSourceHandler']);
8108
8108
 
8109
8109
  vjs.Flash.formats = {
8110
8110
  'video/flv': 'FLV',
@@ -8322,7 +8322,7 @@ vjs.Flash.rtmpSourceHandler = {};
8322
8322
  * @param {Object} source The source object
8323
8323
  * @return {String} 'probably', 'maybe', or '' (empty string)
8324
8324
  */
8325
- vjs.Flash.rtmpSourceHandler.canHandleSource = function(source){
8325
+ vjs.Flash.rtmpSourceHandler['canHandleSource'] = function(source){
8326
8326
  if (vjs.Flash.isStreamingType(source.type) || vjs.Flash.isStreamingSrc(source.src)) {
8327
8327
  return 'maybe';
8328
8328
  }
@@ -8337,7 +8337,7 @@ vjs.Flash.rtmpSourceHandler.canHandleSource = function(source){
8337
8337
  * @param {Object} source The source object
8338
8338
  * @param {vjs.Flash} tech The instance of the Flash tech
8339
8339
  */
8340
- vjs.Flash.rtmpSourceHandler.handleSource = function(source, tech){
8340
+ vjs.Flash.rtmpSourceHandler['handleSource'] = function(source, tech){
8341
8341
  var srcParts = vjs.Flash.streamToParts(source.src);
8342
8342
 
8343
8343
  tech['setRtmpConnection'](srcParts.connection);
@@ -8345,7 +8345,7 @@ vjs.Flash.rtmpSourceHandler.handleSource = function(source, tech){
8345
8345
  };
8346
8346
 
8347
8347
  // Register the native source handler
8348
- vjs.Flash.registerSourceHandler(vjs.Flash.rtmpSourceHandler);
8348
+ vjs.Flash['registerSourceHandler'](vjs.Flash.rtmpSourceHandler);
8349
8349
  /**
8350
8350
  * The Media Loader is the component that decides which playback technology to load
8351
8351
  * when the player is initialized.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  Video.js Default Styles (http://videojs.com)
3
- Version 4.12.11
3
+ Version 4.12.12
4
4
  Create your own skin at http://designer.videojs.com
5
5
  */
6
6
  /* SKIN
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: videojs_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.11
4
+ version: 4.12.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Behan