videojs_rails 4.4.2 → 4.4.3

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: 96b164611bd2fe6378ff8a78a32999efa490459a
4
- data.tar.gz: 123e1f8e5c54115e44e865cd336c9a46cca6ce16
3
+ metadata.gz: b56e9349e37bb967f0f27b85f9efbcc32e34ed8a
4
+ data.tar.gz: 1c51a53bf2d823dde50a3bd59f4e13412674ddb1
5
5
  SHA512:
6
- metadata.gz: a72f6f9b2d911a41dc0599d983a3cf0a0f003b230139825b8e20a468bec10ea6e1a53fb1b848109df34fecfc51e13cd8a47bb1596da3aa702d7004f44ef8e05a
7
- data.tar.gz: a3f5b8f1c6e30167da95219ea9e23932263c05e98df7fe325e0f1fa581e8d36aae79e7a29ab09af1c439c3acb57085f5855a043f4c19f245c35747c5b7b23488
6
+ metadata.gz: 0d6496d86af06615ada5403fae163400a90f8b6257671652b65f11bf63c17433093965ab56fbefc770a982799124abdf828b16468449a7356848974e1e93ff5d
7
+ data.tar.gz: b2b0d675a6192a8aebbb4ef380c646451696e4079d7d312cc9999e75fe57d5d05a9ac463a32fe6a5457de2570498b2435cdf625d2dcf22a7a6d5a1cd4e0ed80a
@@ -1,3 +1,3 @@
1
1
  module VideojsRails
2
- VERSION = "4.4.2"
2
+ VERSION = "4.4.3"
3
3
  end
@@ -5209,6 +5209,14 @@ vjs.MediaTechController.prototype.onTap = function(){
5209
5209
  this.player().userActive(!this.player().userActive());
5210
5210
  };
5211
5211
 
5212
+ /**
5213
+ * Provide a default setPoster method for techs
5214
+ *
5215
+ * Poster support for techs should be optional, so we don't want techs to
5216
+ * break if they don't have a way to set a poster.
5217
+ */
5218
+ vjs.MediaTechController.prototype.setPoster = function(){};
5219
+
5212
5220
  vjs.MediaTechController.prototype.features = {
5213
5221
  'volumeControl': true,
5214
5222
 
@@ -5479,6 +5487,13 @@ vjs.Html5.prototype.defaultMuted = function(){ return this.el_.defaultMuted; };
5479
5487
  /* HTML5 Support Testing ---------------------------------------------------- */
5480
5488
 
5481
5489
  vjs.Html5.isSupported = function(){
5490
+ // ie9 with no Media Player is a LIAR! (#984)
5491
+ try {
5492
+ vjs.TEST_VID['volume'] = 0.5;
5493
+ } catch (e) {
5494
+ return false;
5495
+ }
5496
+
5482
5497
  return !!vjs.TEST_VID.canPlayType;
5483
5498
  };
5484
5499
 
@@ -5523,8 +5538,16 @@ vjs.Html5.disposeMediaElement = function(el){
5523
5538
  el.removeAttribute('src');
5524
5539
 
5525
5540
  // force the media element to update its loading state by calling load()
5541
+ // however IE on Windows 7N has a bug that throws an error so need a try/catch (#793)
5526
5542
  if (typeof el.load === 'function') {
5527
- el.load();
5543
+ // wrapping in an iife so it's not deoptimized (#1060#discussion_r10324473)
5544
+ (function() {
5545
+ try {
5546
+ el.load();
5547
+ } catch (e) {
5548
+ // not supported
5549
+ }
5550
+ })();
5528
5551
  }
5529
5552
  };
5530
5553
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  Video.js Default Styles (http://videojs.com)
3
- Version 4.4.2
3
+ Version 4.4.3
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.4.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Behan