shaka-player 4.10.2 → 4.10.3

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
@@ -144,7 +144,8 @@ goog.addDependency('../../../../lib/polyfill/symbol.js', ['shaka.polyfill.Symbol
144
144
  goog.addDependency('../../../../lib/polyfill/video_play_promise.js', ['shaka.polyfill.VideoPlayPromise'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
145
145
  goog.addDependency('../../../../lib/polyfill/videoplaybackquality.js', ['shaka.polyfill.VideoPlaybackQuality'], ['shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es6'});
146
146
  goog.addDependency('../../../../lib/polyfill/vttcue.js', ['shaka.polyfill.VTTCue'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
147
- goog.addDependency('../../../../lib/text/cue.js', ['shaka.text.Cue', 'shaka.text.CueRegion'], ['shaka.util.ArrayUtils'], {'lang': 'es6'});
147
+ goog.addDependency('../../../../lib/text/cue.js', ['shaka.text.Cue'], ['shaka.text.CueRegion', 'shaka.util.ArrayUtils'], {'lang': 'es6'});
148
+ goog.addDependency('../../../../lib/text/cue_region.js', ['shaka.text.CueRegion'], [], {'lang': 'es6'});
148
149
  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'});
149
150
  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'});
150
151
  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
@@ -771,50 +771,50 @@ shaka.ui.Locales.addTo = function(localization) {
771
771
  * @const
772
772
  */
773
773
  shaka.ui.Locales.Ids = {
774
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
774
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
775
+ PLAY: 'PLAY',
776
+ AIRPLAY: 'AIRPLAY',
777
+ DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
778
+ CAPTIONS: 'CAPTIONS',
779
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
780
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
781
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
775
782
  SKIP_AD: 'SKIP_AD',
776
- STATISTICS: 'STATISTICS',
777
- LOOP: 'LOOP',
778
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
779
783
  QUALITY: 'QUALITY',
780
- AUTO_QUALITY: 'AUTO_QUALITY',
784
+ REPLAY: 'REPLAY',
785
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
786
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
781
787
  UNMUTE: 'UNMUTE',
782
- RECENTER_VR: 'RECENTER_VR',
783
- REWIND: 'REWIND',
784
- PLAYBACK_RATE: 'PLAYBACK_RATE',
788
+ FULL_SCREEN: 'FULL_SCREEN',
789
+ FAST_FORWARD: 'FAST_FORWARD',
790
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
785
791
  SEEK: 'SEEK',
786
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
792
+ VOLUME: 'VOLUME',
793
+ AUTO_QUALITY: 'AUTO_QUALITY',
794
+ SURROUND: 'SURROUND',
787
795
  MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
788
- BACK: 'BACK',
789
- DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
790
- AD_DURATION: 'AD_DURATION',
791
- PLAY: 'PLAY',
792
- MUTE: 'MUTE',
796
+ RESOLUTION: 'RESOLUTION',
797
+ TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
798
+ RECENTER_VR: 'RECENTER_VR',
793
799
  AD_TIME: 'AD_TIME',
800
+ CAST: 'CAST',
801
+ MUTE: 'MUTE',
794
802
  AD_STATISTICS: 'AD_STATISTICS',
803
+ OFF: 'OFF',
804
+ ON: 'ON',
805
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
795
806
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
796
807
  NOT_APPLICABLE: 'NOT_APPLICABLE',
797
- MORE_SETTINGS: 'MORE_SETTINGS',
808
+ PAUSE: 'PAUSE',
798
809
  LANGUAGE: 'LANGUAGE',
799
- FAST_FORWARD: 'FAST_FORWARD',
800
- RESOLUTION: 'RESOLUTION',
801
- CAST: 'CAST',
802
- SURROUND: 'SURROUND',
803
- ON: 'ON',
804
- AIRPLAY: 'AIRPLAY',
810
+ MORE_SETTINGS: 'MORE_SETTINGS',
805
811
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
806
- CAPTIONS: 'CAPTIONS',
807
- OFF: 'OFF',
808
- VOLUME: 'VOLUME',
809
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
810
- AD_PROGRESS: 'AD_PROGRESS',
811
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
812
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
813
- PAUSE: 'PAUSE',
814
- TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
815
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
816
- REPLAY: 'REPLAY',
812
+ REWIND: 'REWIND',
813
+ STATISTICS: 'STATISTICS',
817
814
  LIVE: 'LIVE',
815
+ AD_DURATION: 'AD_DURATION',
816
+ BACK: 'BACK',
817
+ AD_PROGRESS: 'AD_PROGRESS',
818
818
  ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
819
- FULL_SCREEN: 'FULL_SCREEN',
819
+ LOOP: 'LOOP',
820
820
  };
@@ -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