shaka-player 4.9.13 → 4.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/deps.js CHANGED
@@ -141,7 +141,8 @@ goog.addDependency('../../../../lib/polyfill/symbol.js', ['shaka.polyfill.Symbol
141
141
  goog.addDependency('../../../../lib/polyfill/video_play_promise.js', ['shaka.polyfill.VideoPlayPromise'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
142
142
  goog.addDependency('../../../../lib/polyfill/videoplaybackquality.js', ['shaka.polyfill.VideoPlaybackQuality'], ['shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es6'});
143
143
  goog.addDependency('../../../../lib/polyfill/vttcue.js', ['shaka.polyfill.VTTCue'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
144
- goog.addDependency('../../../../lib/text/cue.js', ['shaka.text.Cue', 'shaka.text.CueRegion'], ['shaka.util.ArrayUtils'], {'lang': 'es6'});
144
+ goog.addDependency('../../../../lib/text/cue.js', ['shaka.text.Cue'], ['shaka.text.CueRegion', 'shaka.util.ArrayUtils'], {'lang': 'es6'});
145
+ goog.addDependency('../../../../lib/text/cue_region.js', ['shaka.text.CueRegion'], [], {'lang': 'es6'});
145
146
  goog.addDependency('../../../../lib/text/lrc_text_parser.js', ['shaka.text.LrcTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.util.StringUtils'], {'lang': 'es6'});
146
147
  goog.addDependency('../../../../lib/text/mp4_ttml_parser.js', ['shaka.text.Mp4TtmlParser'], ['shaka.text.TextEngine', 'shaka.text.TtmlTextParser', 'shaka.util.Error', 'shaka.util.Mp4Parser'], {'lang': 'es6'});
147
148
  goog.addDependency('../../../../lib/text/mp4_vtt_parser.js', ['shaka.text.Mp4VttParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.text.VttTextParser', 'shaka.util.DataViewReader', 'shaka.util.Error', 'shaka.util.Functional', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
package/dist/locales.js CHANGED
@@ -274,7 +274,7 @@ shaka.ui.Locales.addTo = function(localization) {
274
274
  localization.insert('fr', new Map([
275
275
  ['AD_DURATION', 'Durée de l\'annonce'],
276
276
  ['AD_PROGRESS', 'Annonce [AD_ON] sur [NUM_ADS]'],
277
- ['AD_STATISTICS', 'Statistiques de la annonce'],
277
+ ['AD_STATISTICS', 'Statistiques de l\'annonce'],
278
278
  ['AD_TIME', 'Annonce : [AD_TIME]'],
279
279
  ['AIRPLAY', 'AirPlay'],
280
280
  ['AUTO_QUALITY', 'Automatique'],
@@ -761,49 +761,49 @@ shaka.ui.Locales.addTo = function(localization) {
761
761
  * @const
762
762
  */
763
763
  shaka.ui.Locales.Ids = {
764
- RECENTER_VR: 'RECENTER_VR',
765
- FULL_SCREEN: 'FULL_SCREEN',
766
- MORE_SETTINGS: 'MORE_SETTINGS',
767
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
768
- SEEK: 'SEEK',
769
- REWIND: 'REWIND',
770
- AUTO_QUALITY: 'AUTO_QUALITY',
764
+ AD_DURATION: 'AD_DURATION',
771
765
  OFF: 'OFF',
772
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
773
- LOOP: 'LOOP',
774
- UNMUTE: 'UNMUTE',
775
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
776
- RESOLUTION: 'RESOLUTION',
777
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
778
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
779
- SURROUND: 'SURROUND',
780
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
766
+ REPLAY: 'REPLAY',
767
+ PLAY: 'PLAY',
768
+ LIVE: 'LIVE',
769
+ CAPTIONS: 'CAPTIONS',
781
770
  ON: 'ON',
782
- AD_PROGRESS: 'AD_PROGRESS',
783
- PAUSE: 'PAUSE',
784
- VOLUME: 'VOLUME',
785
- FAST_FORWARD: 'FAST_FORWARD',
786
- BACK: 'BACK',
787
- NOT_APPLICABLE: 'NOT_APPLICABLE',
788
- AIRPLAY: 'AIRPLAY',
771
+ LANGUAGE: 'LANGUAGE',
772
+ MUTE: 'MUTE',
773
+ LOOP: 'LOOP',
774
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
789
775
  QUALITY: 'QUALITY',
776
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
777
+ VOLUME: 'VOLUME',
778
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
779
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
790
780
  TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
791
- AD_TIME: 'AD_TIME',
792
- AD_DURATION: 'AD_DURATION',
793
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
781
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
782
+ CAST: 'CAST',
783
+ SKIP_AD: 'SKIP_AD',
784
+ FAST_FORWARD: 'FAST_FORWARD',
794
785
  EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
795
- LANGUAGE: 'LANGUAGE',
796
- MUTE: 'MUTE',
797
786
  AD_STATISTICS: 'AD_STATISTICS',
798
- STATISTICS: 'STATISTICS',
799
- REPLAY: 'REPLAY',
800
- LIVE: 'LIVE',
801
- PLAY: 'PLAY',
802
- CAST: 'CAST',
787
+ AUTO_QUALITY: 'AUTO_QUALITY',
788
+ UNMUTE: 'UNMUTE',
789
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
790
+ MORE_SETTINGS: 'MORE_SETTINGS',
791
+ AD_PROGRESS: 'AD_PROGRESS',
792
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
793
+ FULL_SCREEN: 'FULL_SCREEN',
803
794
  UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
804
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
805
- PLAYBACK_RATE: 'PLAYBACK_RATE',
806
- CAPTIONS: 'CAPTIONS',
807
- SKIP_AD: 'SKIP_AD',
795
+ STATISTICS: 'STATISTICS',
808
796
  MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
797
+ RECENTER_VR: 'RECENTER_VR',
798
+ SEEK: 'SEEK',
799
+ REWIND: 'REWIND',
800
+ PAUSE: 'PAUSE',
801
+ SURROUND: 'SURROUND',
802
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
803
+ AD_TIME: 'AD_TIME',
804
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
805
+ RESOLUTION: 'RESOLUTION',
806
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
807
+ AIRPLAY: 'AIRPLAY',
808
+ BACK: 'BACK',
809
809
  };
@@ -4503,7 +4503,7 @@ declare namespace shaka.extern {
4503
4503
  }
4504
4504
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4505
4505
  declare namespace shaka.extern {
4506
- type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , cacheLoadThreshold : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
4506
+ type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , cacheLoadThreshold : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , minTimeToSwitch : number , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
4507
4507
  }
4508
4508
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4509
4509
  declare namespace shaka.extern {
@@ -4503,7 +4503,7 @@ declare namespace shaka.extern {
4503
4503
  }
4504
4504
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4505
4505
  declare namespace shaka.extern {
4506
- type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , cacheLoadThreshold : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
4506
+ type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , cacheLoadThreshold : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , minTimeToSwitch : number , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
4507
4507
  }
4508
4508
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4509
4509
  declare namespace shaka.extern {
@@ -214,6 +214,89 @@ shaka.media.ClosedCaptionParser = class {
214
214
  */
215
215
  static findDecoder() {}
216
216
  };
217
+ /**
218
+ */
219
+ shaka.text.CueRegion = class {
220
+ /** */
221
+ constructor() {}
222
+ };
223
+ /**
224
+ * Region identifier.
225
+ * @type {string}
226
+ */
227
+ shaka.text.CueRegion.prototype.id;
228
+ /**
229
+ * The X offset to start the rendering area in viewportAnchorUnits of the
230
+ * video width.
231
+ * @type {number}
232
+ */
233
+ shaka.text.CueRegion.prototype.viewportAnchorX;
234
+ /**
235
+ * The X offset to start the rendering area in viewportAnchorUnits of the
236
+ * video height.
237
+ * @type {number}
238
+ */
239
+ shaka.text.CueRegion.prototype.viewportAnchorY;
240
+ /**
241
+ * The X offset to start the rendering area in percentage (0-100) of this
242
+ * region width.
243
+ * @type {number}
244
+ */
245
+ shaka.text.CueRegion.prototype.regionAnchorX;
246
+ /**
247
+ * The Y offset to start the rendering area in percentage (0-100) of the
248
+ * region height.
249
+ * @type {number}
250
+ */
251
+ shaka.text.CueRegion.prototype.regionAnchorY;
252
+ /**
253
+ * The width of the rendering area in widthUnits.
254
+ * @type {number}
255
+ */
256
+ shaka.text.CueRegion.prototype.width;
257
+ /**
258
+ * The width of the rendering area in heightUnits.
259
+ * @type {number}
260
+ */
261
+ shaka.text.CueRegion.prototype.height;
262
+ /**
263
+ * The units (percentage, pixels or lines) the region height is in.
264
+ * @type {shaka.text.CueRegion.units}
265
+ */
266
+ shaka.text.CueRegion.prototype.heightUnits;
267
+ /**
268
+ * The units (percentage or pixels) the region width is in.
269
+ * @type {shaka.text.CueRegion.units}
270
+ */
271
+ shaka.text.CueRegion.prototype.widthUnits;
272
+ /**
273
+ * The units (percentage or pixels) the region viewportAnchors are in.
274
+ * @type {shaka.text.CueRegion.units}
275
+ */
276
+ shaka.text.CueRegion.prototype.viewportAnchorUnits;
277
+ /**
278
+ * If scroll=UP, it means that cues in the region will be added to the
279
+ * bottom of the region and will push any already displayed cues in the
280
+ * region up. Otherwise (scroll=NONE) cues will stay fixed at the location
281
+ * they were first painted in.
282
+ * @type {shaka.text.CueRegion.scrollMode}
283
+ */
284
+ shaka.text.CueRegion.prototype.scroll;
285
+ /**
286
+ * @enum {number}
287
+ */
288
+ shaka.text.CueRegion.units = {
289
+ 'PX': 0,
290
+ 'PERCENTAGE': 1,
291
+ 'LINES': 2
292
+ };
293
+ /**
294
+ * @enum {string}
295
+ */
296
+ shaka.text.CueRegion.scrollMode = {
297
+ 'NONE': '',
298
+ 'UP': 'up'
299
+ };
217
300
  /**
218
301
  */
219
302
  shaka.text.Cue = class {
@@ -570,89 +653,6 @@ shaka.text.Cue.textDecoration = {
570
653
  'LINE_THROUGH': 'lineThrough',
571
654
  'OVERLINE': 'overline'
572
655
  };
573
- /**
574
- */
575
- shaka.text.CueRegion = class {
576
- /** */
577
- constructor() {}
578
- };
579
- /**
580
- * Region identifier.
581
- * @type {string}
582
- */
583
- shaka.text.CueRegion.prototype.id;
584
- /**
585
- * The X offset to start the rendering area in viewportAnchorUnits of the
586
- * video width.
587
- * @type {number}
588
- */
589
- shaka.text.CueRegion.prototype.viewportAnchorX;
590
- /**
591
- * The X offset to start the rendering area in viewportAnchorUnits of the
592
- * video height.
593
- * @type {number}
594
- */
595
- shaka.text.CueRegion.prototype.viewportAnchorY;
596
- /**
597
- * The X offset to start the rendering area in percentage (0-100) of this
598
- * region width.
599
- * @type {number}
600
- */
601
- shaka.text.CueRegion.prototype.regionAnchorX;
602
- /**
603
- * The Y offset to start the rendering area in percentage (0-100) of the
604
- * region height.
605
- * @type {number}
606
- */
607
- shaka.text.CueRegion.prototype.regionAnchorY;
608
- /**
609
- * The width of the rendering area in widthUnits.
610
- * @type {number}
611
- */
612
- shaka.text.CueRegion.prototype.width;
613
- /**
614
- * The width of the rendering area in heightUnits.
615
- * @type {number}
616
- */
617
- shaka.text.CueRegion.prototype.height;
618
- /**
619
- * The units (percentage, pixels or lines) the region height is in.
620
- * @type {shaka.text.CueRegion.units}
621
- */
622
- shaka.text.CueRegion.prototype.heightUnits;
623
- /**
624
- * The units (percentage or pixels) the region width is in.
625
- * @type {shaka.text.CueRegion.units}
626
- */
627
- shaka.text.CueRegion.prototype.widthUnits;
628
- /**
629
- * The units (percentage or pixels) the region viewportAnchors are in.
630
- * @type {shaka.text.CueRegion.units}
631
- */
632
- shaka.text.CueRegion.prototype.viewportAnchorUnits;
633
- /**
634
- * If scroll=UP, it means that cues in the region will be added to the
635
- * bottom of the region and will push any already displayed cues in the
636
- * region up. Otherwise (scroll=NONE) cues will stay fixed at the location
637
- * they were first painted in.
638
- * @type {shaka.text.CueRegion.scrollMode}
639
- */
640
- shaka.text.CueRegion.prototype.scroll;
641
- /**
642
- * @enum {number}
643
- */
644
- shaka.text.CueRegion.units = {
645
- 'PX': 0,
646
- 'PERCENTAGE': 1,
647
- 'LINES': 2
648
- };
649
- /**
650
- * @enum {string}
651
- */
652
- shaka.text.CueRegion.scrollMode = {
653
- 'NONE': '',
654
- 'UP': 'up'
655
- };
656
656
  /**
657
657
  * An interface to standardize how objects are destroyed.
658
658
  * @interface