videojs_rails 4.11.3 → 4.11.4

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: ced5809db6899f0c9e1d322d6cdb3ae59b860782
4
- data.tar.gz: 8eb0f572a252332085909cc3d628eb280fccfc8c
3
+ metadata.gz: 344dbd419b2240eda178bab867f01ecf317b8537
4
+ data.tar.gz: 4daebb3442433182f74a27ecd38af5ee44d59b7a
5
5
  SHA512:
6
- metadata.gz: 9c93ef8b89b8be0a91199e2d74285582e98bac3266a8b093f484a9441ec4238db82255e02b145fb383705e7a4192fb6270c1a83bedd526de01483696ef180604
7
- data.tar.gz: 1719e4faa8b04510fd53265df4a340b4e49821086e2a6c559bb44d1abc1f579c364d9205f50a0ec0690b41e6232975ce204acdcd2422c7792ae4f070304c7402
6
+ metadata.gz: ccf6ac39edb9cf2e39fe2021480aa85778c0fcb6e56588a04a37fedf417bf0b119faa42fd72957ceda05ea433f9bab836b4e86a1b6a4fb1fc14e61b6f842bb9b
7
+ data.tar.gz: 036c47ff537e13fa2efc145b054c79064a297b95fc67eea6cb276b03279159897f4b28f7676dd715772680f8d48ee6eeccb341e82c2bd1054a4289e779d7bf3e
@@ -1,3 +1,3 @@
1
1
  module VideojsRails
2
- VERSION = '4.11.3'
2
+ VERSION = '4.11.4'
3
3
  end
@@ -2122,8 +2122,8 @@ vjs.Component.prototype.removeChild = function(component){
2122
2122
 
2123
2123
  if (!childFound) return;
2124
2124
 
2125
- this.childIndex_[component.id] = null;
2126
- this.childNameIndex_[component.name] = null;
2125
+ this.childIndex_[component.id()] = null;
2126
+ this.childNameIndex_[component.name()] = null;
2127
2127
 
2128
2128
  var compEl = component.el();
2129
2129
  if (compEl && compEl.parentNode === this.contentEl()) {
@@ -6788,6 +6788,7 @@ vjs.Html5.prototype.createEl = function(){
6788
6788
  var player = this.player_,
6789
6789
  // If possible, reuse original tag for HTML5 playback technology element
6790
6790
  el = player.tag,
6791
+ attributes,
6791
6792
  newEl,
6792
6793
  clone;
6793
6794
 
@@ -6804,8 +6805,15 @@ vjs.Html5.prototype.createEl = function(){
6804
6805
  player.tag = null;
6805
6806
  } else {
6806
6807
  el = vjs.createEl('video');
6808
+
6809
+ // determine if native controls should be used
6810
+ attributes = videojs.util.mergeOptions({}, player.tagAttributes);
6811
+ if (!vjs.TOUCH_ENABLED || player.options()['nativeControlsForTouch'] !== true) {
6812
+ delete attributes.controls;
6813
+ }
6814
+
6807
6815
  vjs.setElementAttributes(el,
6808
- vjs.obj.merge(player.tagAttributes || {}, {
6816
+ vjs.obj.merge(attributes, {
6809
6817
  id:player.id() + '_html5_api',
6810
6818
  'class':'vjs-tech'
6811
6819
  })
@@ -7037,13 +7045,13 @@ vjs.Html5.nativeSourceHandler = {};
7037
7045
  * @return {String} 'probably', 'maybe', or '' (empty string)
7038
7046
  */
7039
7047
  vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
7040
- var ext;
7048
+ var match, ext;
7041
7049
 
7042
7050
  function canPlayType(type){
7043
7051
  // IE9 on Windows 7 without MediaPlayer throws an error here
7044
7052
  // https://github.com/videojs/video.js/issues/519
7045
7053
  try {
7046
- return !!vjs.TEST_VID.canPlayType(type);
7054
+ return vjs.TEST_VID.canPlayType(type);
7047
7055
  } catch(e) {
7048
7056
  return '';
7049
7057
  }
@@ -7052,11 +7060,15 @@ vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
7052
7060
  // If a type was provided we should rely on that
7053
7061
  if (source.type) {
7054
7062
  return canPlayType(source.type);
7055
- } else {
7063
+ } else if (source.src) {
7056
7064
  // If no type, fall back to checking 'video/[EXTENSION]'
7057
- ext = source.src.match(/\.([^\/\?]+)(\?[^\/]+)?$/i)[1];
7065
+ match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
7066
+ ext = match && match[1];
7067
+
7058
7068
  return canPlayType('video/'+ext);
7059
7069
  }
7070
+
7071
+ return '';
7060
7072
  };
7061
7073
 
7062
7074
  /**
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  Video.js Default Styles (http://videojs.com)
3
- Version 4.11.3
3
+ Version 4.11.4
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.11.3
4
+ version: 4.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Behan