videojs_rails 4.7.2 → 4.7.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: 918442c5c3c107d5102176634cfb96a5dfc8a81f
4
- data.tar.gz: 70718162b1bd7be3555471517b28606b274b9397
3
+ metadata.gz: 09a5e75ed8e1da2d3d12fd85c362106954162a22
4
+ data.tar.gz: bf7f11deb27980d5d8452d271b24f9d6c5e13acd
5
5
  SHA512:
6
- metadata.gz: 06e7d5a5b811ae09b738c2a3b5aca88a69aa4f49a8c9354f124a47de31c73db3e7884ad70fed0ae5767d111c95d0f2f548746640aa465c02b7d26f30fdf580bd
7
- data.tar.gz: 6120b8b7459300f6ece61de0a8545431d628c95aaab995c1cbfcaa64f260e450d40ef1463ccf16027a0509351e186090da49d2a6c3fc581204d01d0ac4dcd2bb
6
+ metadata.gz: e326f904d321901affbfa826f74705fe79472247ce52b1c157b2966d047b733a73fba7826d5dfeee08061dfe114ff6697d79d54f0ac53b60e2dace34f9b84cee
7
+ data.tar.gz: 8addec410307b8cc7c56c0cb884ad8cd9bfa1cc628054d16ae359a81c7856a5dac88257d7251d9a26fd3ee5905f638e63724525962d02d0dd012e77a6170739f
@@ -1,3 +1,3 @@
1
1
  module VideojsRails
2
- VERSION = '4.7.2'
2
+ VERSION = '4.7.3'
3
3
  end
@@ -118,6 +118,25 @@ if (vjs.CDN_VERSION !== 'GENERATED'+'_CDN_VSN') {
118
118
  videojs.options['flash']['swf'] = "<%= asset_path('video-js.swf') %>";
119
119
  }
120
120
 
121
+ /**
122
+ * Utility function for adding languages to the default options. Useful for
123
+ * amending multiple language support at runtime.
124
+ *
125
+ * Example: vjs.addLanguage('es', {'Hello':'Hola'});
126
+ *
127
+ * @param {String} code The language code or dictionary property
128
+ * @param {Object} data The data values to be translated
129
+ * @return {Object} The resulting global languages dictionary object
130
+ */
131
+ vjs.addLanguage = function(code, data){
132
+ if(vjs.options['languages'][code] !== undefined) {
133
+ vjs.options['languages'][code] = vjs.util.mergeOptions(vjs.options['languages'][code], data);
134
+ } else {
135
+ vjs.options['languages'][code] = data;
136
+ }
137
+ return vjs.options['languages'];
138
+ };
139
+
121
140
  /**
122
141
  * Global player list
123
142
  * @type {Object}
@@ -1551,7 +1570,7 @@ vjs.util = {};
1551
1570
  vjs.util.mergeOptions = function(obj1, obj2){
1552
1571
  var key, val1, val2;
1553
1572
 
1554
- // make a copy of obj1 so we're not ovewriting original values.
1573
+ // make a copy of obj1 so we're not overwriting original values.
1555
1574
  // like prototype.options_ and all sub options objects
1556
1575
  obj1 = vjs.obj.copy(obj1);
1557
1576
 
@@ -1569,10 +1588,7 @@ vjs.util.mergeOptions = function(obj1, obj2){
1569
1588
  }
1570
1589
  }
1571
1590
  return obj1;
1572
- };
1573
-
1574
-
1575
- /**
1591
+ };/**
1576
1592
  * @fileoverview Player Component - Base class for all UI objects
1577
1593
  *
1578
1594
  */
@@ -4416,7 +4432,7 @@ vjs.Player.prototype.sourceList_ = function(sources){
4416
4432
  this.loadTech(sourceTech.tech, sourceTech.source);
4417
4433
  }
4418
4434
  } else {
4419
- this.error({ code: 4, message: this.options()['notSupportedMessage'] });
4435
+ this.error({ code: 4, message: this.localize(this.options()['notSupportedMessage']) });
4420
4436
  // we could not find an appropriate tech, but let's still notify the delegate that this is it
4421
4437
  // this needs a better comment about why this is needed
4422
4438
  this.triggerReady();
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  Video.js Default Styles (http://videojs.com)
3
- Version 4.7.2
3
+ Version 4.7.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.7.2
4
+ version: 4.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Behan