shaka-player 4.10.1 → 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 +2 -1
- package/dist/locales.js +36 -36
- package/dist/shaka-player.compiled.d.ts +1 -1
- package/dist/shaka-player.compiled.debug.d.ts +1 -1
- package/dist/shaka-player.compiled.debug.externs.js +83 -83
- package/dist/shaka-player.compiled.debug.js +353 -351
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +83 -83
- package/dist/shaka-player.compiled.js +1097 -1093
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +1 -1
- package/dist/shaka-player.ui.debug.d.ts +1 -1
- package/dist/shaka-player.ui.debug.externs.js +83 -83
- package/dist/shaka-player.ui.debug.js +247 -245
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +83 -83
- package/dist/shaka-player.ui.js +1293 -1290
- package/dist/shaka-player.ui.map +4 -4
- package/externs/shaka/player.js +7 -1
- package/lib/abr/simple_abr_manager.js +11 -8
- package/lib/ads/interstitial_ad_manager.js +2 -1
- package/lib/hls/hls_parser.js +4 -3
- package/lib/media/media_source_engine.js +40 -1
- package/lib/media/segment_utils.js +7 -10
- package/lib/player.js +6 -3
- package/lib/text/cue.js +1 -117
- package/lib/text/cue_region.js +123 -0
- package/lib/text/ui_text_displayer.js +20 -3
- package/lib/util/mp4_box_parsers.js +42 -0
- package/lib/util/platform.js +16 -16
- package/lib/util/player_configuration.js +1 -0
- package/package.json +1 -1
- package/ui/locales/fr.json +1 -1
- package/ui/seek_bar.js +5 -6
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'
|
|
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
|
@@ -281,7 +281,7 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
281
281
|
localization.insert('fr', new Map([
|
|
282
282
|
['AD_DURATION', 'Durée de l\'annonce'],
|
|
283
283
|
['AD_PROGRESS', 'Annonce [AD_ON] sur [NUM_ADS]'],
|
|
284
|
-
['AD_STATISTICS', 'Statistiques de
|
|
284
|
+
['AD_STATISTICS', 'Statistiques de l\'annonce'],
|
|
285
285
|
['AD_TIME', 'Annonce : [AD_TIME]'],
|
|
286
286
|
['AIRPLAY', 'AirPlay'],
|
|
287
287
|
['AUTO_QUALITY', 'Automatique'],
|
|
@@ -771,50 +771,50 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
771
771
|
* @const
|
|
772
772
|
*/
|
|
773
773
|
shaka.ui.Locales.Ids = {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
778
|
-
AD_TIME: 'AD_TIME',
|
|
774
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
775
|
+
PLAY: 'PLAY',
|
|
776
|
+
AIRPLAY: 'AIRPLAY',
|
|
779
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',
|
|
780
782
|
SKIP_AD: 'SKIP_AD',
|
|
781
|
-
|
|
782
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
783
|
-
LIVE: 'LIVE',
|
|
784
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
785
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
786
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
783
|
+
QUALITY: 'QUALITY',
|
|
787
784
|
REPLAY: 'REPLAY',
|
|
788
|
-
|
|
785
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
786
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
789
787
|
UNMUTE: 'UNMUTE',
|
|
790
|
-
|
|
788
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
789
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
790
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
791
|
+
SEEK: 'SEEK',
|
|
791
792
|
VOLUME: 'VOLUME',
|
|
792
|
-
|
|
793
|
-
RESOLUTION: 'RESOLUTION',
|
|
794
|
-
AIRPLAY: 'AIRPLAY',
|
|
795
|
-
REWIND: 'REWIND',
|
|
793
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
796
794
|
SURROUND: 'SURROUND',
|
|
795
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
796
|
+
RESOLUTION: 'RESOLUTION',
|
|
797
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
798
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
799
|
+
AD_TIME: 'AD_TIME',
|
|
797
800
|
CAST: 'CAST',
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
801
|
+
MUTE: 'MUTE',
|
|
802
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
803
|
+
OFF: 'OFF',
|
|
804
|
+
ON: 'ON',
|
|
802
805
|
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
803
|
-
|
|
804
|
-
QUALITY: 'QUALITY',
|
|
805
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
806
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
806
807
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
807
|
-
OFF: 'OFF',
|
|
808
|
-
PLAY: 'PLAY',
|
|
809
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
810
808
|
PAUSE: 'PAUSE',
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
809
|
+
LANGUAGE: 'LANGUAGE',
|
|
810
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
811
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
812
|
+
REWIND: 'REWIND',
|
|
813
|
+
STATISTICS: 'STATISTICS',
|
|
814
|
+
LIVE: 'LIVE',
|
|
815
|
+
AD_DURATION: 'AD_DURATION',
|
|
819
816
|
BACK: 'BACK',
|
|
817
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
818
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
819
|
+
LOOP: 'LOOP',
|
|
820
820
|
};
|
|
@@ -4770,7 +4770,7 @@ declare namespace shaka.extern {
|
|
|
4770
4770
|
}
|
|
4771
4771
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4772
4772
|
declare namespace shaka.extern {
|
|
4773
|
-
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 } ;
|
|
4773
|
+
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 } ;
|
|
4774
4774
|
}
|
|
4775
4775
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4776
4776
|
declare namespace shaka.extern {
|
|
@@ -4770,7 +4770,7 @@ declare namespace shaka.extern {
|
|
|
4770
4770
|
}
|
|
4771
4771
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4772
4772
|
declare namespace shaka.extern {
|
|
4773
|
-
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 } ;
|
|
4773
|
+
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 } ;
|
|
4774
4774
|
}
|
|
4775
4775
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4776
4776
|
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
|