shaka-player 4.13.0 → 4.13.1
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 +3 -3
- package/dist/locales.js +34 -34
- 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 +2 -9
- package/dist/shaka-player.compiled.debug.js +265 -260
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +2 -9
- package/dist/shaka-player.compiled.js +1410 -1403
- 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 +2 -9
- package/dist/shaka-player.ui.debug.js +492 -486
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +2 -9
- package/dist/shaka-player.ui.js +1613 -1605
- package/dist/shaka-player.ui.map +4 -4
- package/lib/cast/cast_proxy.js +2 -2
- package/lib/cast/cast_receiver.js +6 -9
- package/lib/cast/cast_sender.js +14 -11
- package/lib/cast/cast_utils.js +43 -46
- package/lib/cea/mp4_cea_parser.js +23 -23
- package/lib/dash/content_protection.js +1 -1
- package/lib/dash/dash_parser.js +39 -29
- package/lib/dash/mpd_utils.js +8 -9
- package/lib/dash/segment_list.js +2 -2
- package/lib/dash/segment_template.js +9 -9
- package/lib/hls/hls_parser.js +95 -98
- package/lib/media/closed_caption_parser.js +5 -5
- package/lib/media/content_workarounds.js +78 -0
- package/lib/media/example_based_criteria.js +4 -3
- package/lib/media/manifest_parser.js +8 -12
- package/lib/media/media_source_engine.js +13 -0
- package/lib/mss/mss_parser.js +6 -7
- package/lib/net/http_plugin_utils.js +1 -1
- package/lib/net/networking_engine.js +7 -7
- package/lib/net/networking_utils.js +38 -39
- package/lib/offline/stream_bandwidth_estimator.js +8 -8
- package/lib/player.js +12 -10
- package/lib/polyfill/media_capabilities.js +8 -9
- package/lib/text/text_engine.js +7 -7
- package/lib/text/ttml_text_parser.js +14 -16
- package/lib/transmuxer/ac3_transmuxer.js +6 -1
- package/lib/transmuxer/transmuxer_engine.js +6 -6
- package/lib/util/manifest_parser_utils.js +7 -8
- package/lib/util/mp4_generator.js +23 -8
- package/lib/util/mp4_parser.js +10 -10
- package/lib/util/multi_map.js +22 -20
- package/lib/util/platform.js +16 -6
- package/lib/util/player_configuration.js +1 -1
- package/lib/util/stream_utils.js +22 -17
- package/package.json +2 -2
- package/third_party/closure-uri/uri.js +13 -13
- package/ui/ad_statistics_button.js +15 -16
- package/ui/audio_language_selection.js +6 -1
- package/ui/statistics_button.js +33 -34
package/dist/deps.js
CHANGED
|
@@ -165,7 +165,7 @@ goog.addDependency('../../../../lib/text/vtt_text_parser.js', ['shaka.text.VttTe
|
|
|
165
165
|
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
166
166
|
goog.addDependency('../../../../lib/transmuxer/aac_transmuxer.js', ['shaka.transmuxer.AacTransmuxer'], ['shaka.media.Capabilities', 'shaka.transmuxer.ADTS', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4Generator', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
167
167
|
goog.addDependency('../../../../lib/transmuxer/ac3.js', ['shaka.transmuxer.Ac3'], [], {'lang': 'es6'});
|
|
168
|
-
goog.addDependency('../../../../lib/transmuxer/ac3_transmuxer.js', ['shaka.transmuxer.Ac3Transmuxer'], ['shaka.media.Capabilities', 'shaka.transmuxer.Ac3', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.Mp4Generator', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
168
|
+
goog.addDependency('../../../../lib/transmuxer/ac3_transmuxer.js', ['shaka.transmuxer.Ac3Transmuxer'], ['shaka.media.Capabilities', 'shaka.transmuxer.Ac3', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.Mp4Generator', 'shaka.util.Platform', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
169
169
|
goog.addDependency('../../../../lib/transmuxer/adts.js', ['shaka.transmuxer.ADTS'], [], {'lang': 'es6'});
|
|
170
170
|
goog.addDependency('../../../../lib/transmuxer/ec3.js', ['shaka.transmuxer.Ec3'], ['shaka.util.ExpGolomb'], {'lang': 'es6'});
|
|
171
171
|
goog.addDependency('../../../../lib/transmuxer/ec3_transmuxer.js', ['shaka.transmuxer.Ec3Transmuxer'], ['shaka.media.Capabilities', 'shaka.transmuxer.Ec3', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.Mp4Generator', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
@@ -208,7 +208,7 @@ goog.addDependency('../../../../lib/util/map_utils.js', ['shaka.util.MapUtils'],
|
|
|
208
208
|
goog.addDependency('../../../../lib/util/media_ready_state_utils.js', ['shaka.util.MediaReadyState'], ['shaka.util.EventManager', 'shaka.util.Lazy'], {'lang': 'es6'});
|
|
209
209
|
goog.addDependency('../../../../lib/util/mime_utils.js', ['shaka.util.MimeUtils'], ['shaka.transmuxer.TransmuxerEngine', 'shaka.util.ManifestParserUtils'], {'lang': 'es6'});
|
|
210
210
|
goog.addDependency('../../../../lib/util/mp4_box_parsers.js', ['shaka.util.Mp4BoxParsers'], ['shaka.util.DataViewReader', 'shaka.util.Mp4Parser', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es7'});
|
|
211
|
-
goog.addDependency('../../../../lib/util/mp4_generator.js', ['shaka.util.Mp4Generator'], ['goog.asserts', 'shaka.util.ManifestParserUtils', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
211
|
+
goog.addDependency('../../../../lib/util/mp4_generator.js', ['shaka.util.Mp4Generator'], ['goog.asserts', 'shaka.util.ManifestParserUtils', 'shaka.util.Platform', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
212
212
|
goog.addDependency('../../../../lib/util/mp4_parser.js', ['shaka.util.Mp4Parser'], ['goog.asserts', 'shaka.log', 'shaka.util.DataViewReader'], {'lang': 'es6'});
|
|
213
213
|
goog.addDependency('../../../../lib/util/multi_map.js', ['shaka.util.MultiMap'], [], {'lang': 'es6'});
|
|
214
214
|
goog.addDependency('../../../../lib/util/mutex.js', ['shaka.util.Mutex'], ['shaka.log'], {'lang': 'es8'});
|
|
@@ -232,7 +232,7 @@ goog.addDependency('../../../../lib/util/timer.js', ['shaka.util.Timer'], ['shak
|
|
|
232
232
|
goog.addDependency('../../../../lib/util/ts_parser.js', ['shaka.util.TsParser'], ['goog.asserts', 'shaka.Deprecate', 'shaka.log', 'shaka.util.ExpGolomb', 'shaka.util.Id3Utils', 'shaka.util.StringUtils', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
233
233
|
goog.addDependency('../../../../lib/util/uint8array_utils.js', ['shaka.util.Uint8ArrayUtils'], ['shaka.util.BufferUtils', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
234
234
|
goog.addDependency('../../../../lib/util/xml_utils.js', ['shaka.util.XmlUtils'], ['goog.asserts', 'shaka.log', 'shaka.util.Lazy', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
235
|
-
goog.addDependency('../../../../third_party/closure-uri/uri.js', ['goog.Uri', 'goog.Uri.QueryData'], ['goog.asserts', 'goog.uri.utils', 'goog.uri.utils.ComponentIndex']);
|
|
235
|
+
goog.addDependency('../../../../third_party/closure-uri/uri.js', ['goog.Uri', 'goog.Uri.QueryData'], ['goog.asserts', 'goog.uri.utils', 'goog.uri.utils.ComponentIndex'], {'lang': 'es6'});
|
|
236
236
|
goog.addDependency('../../../../third_party/closure-uri/utils.js', ['goog.uri.utils', 'goog.uri.utils.ComponentIndex'], []);
|
|
237
237
|
goog.addDependency('../../../../third_party/language-mapping-list/language-mapping-list.js', ['mozilla.LanguageMapping'], [], {'lang': 'es6'});
|
|
238
238
|
goog.addDependency('../../../../ui/ad_counter.js', ['shaka.ui.AdCounter'], ['goog.asserts', 'shaka.ads.Utils', 'shaka.ui.Element', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.Timer'], {'lang': 'es6'});
|
package/dist/locales.js
CHANGED
|
@@ -912,51 +912,51 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
912
912
|
* @const
|
|
913
913
|
*/
|
|
914
914
|
shaka.ui.Locales.Ids = {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
919
|
-
MUTE: 'MUTE',
|
|
915
|
+
SURROUND: 'SURROUND',
|
|
916
|
+
ON: 'ON',
|
|
917
|
+
SKIP_AD: 'SKIP_AD',
|
|
920
918
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
921
919
|
SEEK: 'SEEK',
|
|
922
|
-
OFF: 'OFF',
|
|
923
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
924
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
925
|
-
SKIP_AD: 'SKIP_AD',
|
|
926
920
|
BACK: 'BACK',
|
|
921
|
+
RESOLUTION: 'RESOLUTION',
|
|
922
|
+
AIRPLAY: 'AIRPLAY',
|
|
923
|
+
REPLAY: 'REPLAY',
|
|
924
|
+
PAUSE: 'PAUSE',
|
|
927
925
|
CAPTIONS: 'CAPTIONS',
|
|
928
|
-
|
|
929
|
-
PLAY: 'PLAY',
|
|
930
|
-
CHAPTERS: 'CHAPTERS',
|
|
931
|
-
SURROUND: 'SURROUND',
|
|
932
|
-
CAST: 'CAST',
|
|
933
|
-
LIVE: 'LIVE',
|
|
934
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
926
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
935
927
|
AD_DURATION: 'AD_DURATION',
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
928
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
929
|
+
QUALITY: 'QUALITY',
|
|
930
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
931
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
932
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
933
|
+
CHAPTERS: 'CHAPTERS',
|
|
934
|
+
OFF: 'OFF',
|
|
940
935
|
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
936
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
937
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
938
|
+
MUTE: 'MUTE',
|
|
941
939
|
LANGUAGE: 'LANGUAGE',
|
|
940
|
+
LIVE: 'LIVE',
|
|
941
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
942
|
+
STATISTICS: 'STATISTICS',
|
|
943
|
+
REWIND: 'REWIND',
|
|
944
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
942
945
|
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
946
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
947
|
+
CAST: 'CAST',
|
|
948
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
943
949
|
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
950
|
+
PLAY: 'PLAY',
|
|
944
951
|
VOLUME: 'VOLUME',
|
|
945
|
-
|
|
946
|
-
|
|
952
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
953
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
954
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
947
955
|
LOOP: 'LOOP',
|
|
948
|
-
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
949
|
-
AD_TIME: 'AD_TIME',
|
|
950
|
-
STATISTICS: 'STATISTICS',
|
|
951
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
952
|
-
QUALITY: 'QUALITY',
|
|
953
|
-
REPLAY: 'REPLAY',
|
|
954
|
-
REWIND: 'REWIND',
|
|
955
956
|
UNMUTE: 'UNMUTE',
|
|
956
|
-
|
|
957
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
958
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
957
959
|
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
961
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
960
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
961
|
+
AD_TIME: 'AD_TIME',
|
|
962
962
|
};
|
|
@@ -383,7 +383,7 @@ declare namespace shaka {
|
|
|
383
383
|
* language, role and channel count, and chooses a new variant if need be.
|
|
384
384
|
* If the player has not loaded any content, this will be a no-op.
|
|
385
385
|
*/
|
|
386
|
-
selectAudioLanguage (language : string , role ? : string , channelsCount ? : number , safeMargin ? : number , codec ? : string , spatialAudio ? : boolean ) : any ;
|
|
386
|
+
selectAudioLanguage (language : string , role ? : string , channelsCount ? : number , safeMargin ? : number , codec ? : string , spatialAudio ? : boolean , label ? : string ) : any ;
|
|
387
387
|
/**
|
|
388
388
|
* Sets the current text language and current text role to the selected
|
|
389
389
|
* language and role, and chooses a new variant if need be. If the player has
|
|
@@ -383,7 +383,7 @@ declare namespace shaka {
|
|
|
383
383
|
* language, role and channel count, and chooses a new variant if need be.
|
|
384
384
|
* If the player has not loaded any content, this will be a no-op.
|
|
385
385
|
*/
|
|
386
|
-
selectAudioLanguage (language : string , role ? : string , channelsCount ? : number , safeMargin ? : number , codec ? : string , spatialAudio ? : boolean ) : any ;
|
|
386
|
+
selectAudioLanguage (language : string , role ? : string , channelsCount ? : number , safeMargin ? : number , codec ? : string , spatialAudio ? : boolean , label ? : string ) : any ;
|
|
387
387
|
/**
|
|
388
388
|
* Sets the current text language and current text role to the selected
|
|
389
389
|
* language and role, and chooses a new variant if need be. If the player has
|
|
@@ -3776,8 +3776,9 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3776
3776
|
* @param {number=} safeMargin
|
|
3777
3777
|
* @param {string=} codec
|
|
3778
3778
|
* @param {boolean=} spatialAudio
|
|
3779
|
+
* @param {string=} label
|
|
3779
3780
|
*/
|
|
3780
|
-
selectAudioLanguage(language, role, channelsCount, safeMargin, codec, spatialAudio) {}
|
|
3781
|
+
selectAudioLanguage(language, role, channelsCount, safeMargin, codec, spatialAudio, label) {}
|
|
3781
3782
|
/**
|
|
3782
3783
|
* Sets the current text language and current text role to the selected
|
|
3783
3784
|
* language and role, and chooses a new variant if need be. If the player has
|
|
@@ -5910,14 +5911,6 @@ shaka.polyfill.MediaCapabilities = class {
|
|
|
5910
5911
|
* @type {MediaCapabilities}
|
|
5911
5912
|
*/
|
|
5912
5913
|
shaka.polyfill.MediaCapabilities.originalMcap;
|
|
5913
|
-
/**
|
|
5914
|
-
* A cache that stores the canDisplayType result of calling
|
|
5915
|
-
* `cast.__platform__.canDisplayType`.
|
|
5916
|
-
* @type {(Object<(!string), (!boolean)>)}
|
|
5917
|
-
*/
|
|
5918
|
-
shaka.polyfill.MediaCapabilities.memoizedCanDisplayTypeRequests_ = {
|
|
5919
|
-
|
|
5920
|
-
};
|
|
5921
5914
|
/**
|
|
5922
5915
|
* @summary A polyfill to patch MSE bugs.
|
|
5923
5916
|
*/
|