videojs_rails 4.8.0 → 4.8.1

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: a9a944d9c447a02ea7dd820a1446634ff0f53daa
4
- data.tar.gz: fd150d325d6c2c291263aba8b5138ff399bfb662
3
+ metadata.gz: c47e075f4ff9a863be7c642624bcd75e93f41ee1
4
+ data.tar.gz: 2a332d01954f6dc9b8eaee794559132cb8a6a2bc
5
5
  SHA512:
6
- metadata.gz: 4975f12559b603e3ad94e71930936b3c43cca50d0944b7ab3cfed2e561f435edfbd1cec1bc3eb09b8033e492a20303732788cbe8c893b242372af8f4e12ff958
7
- data.tar.gz: 12cf971774311ecec134944865531c0754f840864bab4ccc05779647f168bbc50bff25108fa9cb75afff6b0c28e27e7be21a1d86de1c96f02777ece82138378a
6
+ metadata.gz: bff7632cb27b0424c3a9c173b7713e22a0f4d10b54139069a3c817749524e114e6584c44c4a6d4478517ed171080f2ae353e4cf6ac334b7fa080703df58e641c
7
+ data.tar.gz: e705cc2eb86a2a894c463452e8f0156ec7453611d2571a4776143da59efae7a0f032e252519993958ab485d7e1316e54b438b26d133fa957a153d65b7675080e
@@ -1,3 +1,3 @@
1
1
  module VideojsRails
2
- VERSION = '4.8.0'
2
+ VERSION = '4.8.1'
3
3
  end
@@ -4437,7 +4437,8 @@ vjs.Player.prototype.src = function(source){
4437
4437
  * @private
4438
4438
  */
4439
4439
  vjs.Player.prototype.sourceList_ = function(sources){
4440
- var sourceTech = this.selectSource(sources);
4440
+ var sourceTech = this.selectSource(sources),
4441
+ errorTimeout;
4441
4442
 
4442
4443
  if (sourceTech) {
4443
4444
  if (sourceTech.tech === this.techName) {
@@ -4449,13 +4450,17 @@ vjs.Player.prototype.sourceList_ = function(sources){
4449
4450
  }
4450
4451
  } else {
4451
4452
  // We need to wrap this in a timeout to give folks a chance to add error event handlers
4452
- setTimeout(vjs.bind(this, function() {
4453
+ errorTimeout = setTimeout(vjs.bind(this, function() {
4453
4454
  this.error({ code: 4, message: this.localize(this.options()['notSupportedMessage']) });
4454
4455
  }), 0);
4455
4456
 
4456
4457
  // we could not find an appropriate tech, but let's still notify the delegate that this is it
4457
4458
  // this needs a better comment about why this is needed
4458
4459
  this.triggerReady();
4460
+
4461
+ this.on('dispose', function() {
4462
+ clearTimeout(errorTimeout);
4463
+ });
4459
4464
  }
4460
4465
  };
4461
4466
 
@@ -6305,9 +6310,11 @@ vjs.Html5.prototype.setupTriggers = function(){
6305
6310
  };
6306
6311
 
6307
6312
  vjs.Html5.prototype.eventHandler = function(evt){
6308
- // In the case of an error, set the error prop on the player
6309
- // and let the player handle triggering the event.
6310
- if (evt.type == 'error') {
6313
+ // In the case of an error on the video element, set the error prop
6314
+ // on the player and let the player handle triggering the event. On
6315
+ // some platforms, error events fire that do not cause the error
6316
+ // property on the video element to be set. See #1465 for an example.
6317
+ if (evt.type == 'error' && this.error()) {
6311
6318
  this.player().error(this.error().code);
6312
6319
 
6313
6320
  // in some cases we pass the event directly to the player
@@ -7357,7 +7364,7 @@ vjs.TextTrack.prototype.mode = function(){
7357
7364
  * and restore it to its normal size when not in fullscreen mode.
7358
7365
  */
7359
7366
  vjs.TextTrack.prototype.adjustFontSize = function(){
7360
- if (this.player_.isFullScreen()) {
7367
+ if (this.player_.isFullscreen()) {
7361
7368
  // Scale the font by the same factor as increasing the video width to the full screen window width.
7362
7369
  // Additionally, multiply that factor by 1.4, which is the default font size for
7363
7370
  // the caption track (from the CSS)
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  Video.js Default Styles (http://videojs.com)
3
- Version 4.8.0
3
+ Version 4.8.1
4
4
  Create your own skin at http://designer.videojs.com
5
5
  */
6
6
  /* SKIN
@@ -536,17 +536,21 @@ easily in the skin designer. http://designer.videojs.com/
536
536
  text-align: center /* Needed for IE8 */;
537
537
  vertical-align: middle;
538
538
  position: absolute;
539
+ left: 0;
539
540
  top: 50%;
540
541
  margin-top: -0.5em;
541
542
  width: 100%;
542
543
  }
543
544
  .vjs-error-display div {
544
545
  position: absolute;
546
+ bottom: 1em;
547
+ right: 0;
548
+ left: 0;
545
549
  font-size: 1.4em;
546
550
  text-align: center;
547
- bottom: 1em;
548
- right: 1em;
549
- left: 1em;
551
+ padding: 3px;
552
+ background: #000000;
553
+ background: rgba(0, 0, 0, 0.5);
550
554
  }
551
555
  .vjs-error-display a,
552
556
  .vjs-error-display a:visited {
@@ -836,11 +840,13 @@ body.vjs-full-window {
836
840
  background-position: 50% 50%;
837
841
  background-size: contain;
838
842
  cursor: pointer;
839
- height: 100%;
840
843
  margin: 0;
841
844
  padding: 0;
842
- position: relative;
843
- width: 100%;
845
+ position: absolute;
846
+ top: 0;
847
+ right: 0;
848
+ bottom: 0;
849
+ left: 0;
844
850
  }
845
851
  .vjs-poster img {
846
852
  display: block;
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.8.0
4
+ version: 4.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Behan