shaka-player 4.13.0 → 4.13.2
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/CONTRIBUTORS +1 -0
- package/dist/deps.js +4 -4
- 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 +2 -9
- package/dist/shaka-player.compiled.debug.js +491 -478
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +2 -9
- package/dist/shaka-player.compiled.js +1455 -1443
- 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 +544 -530
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +2 -9
- package/dist/shaka-player.ui.js +1627 -1613
- package/dist/shaka-player.ui.map +4 -4
- package/eslint.config.mjs +14 -1
- package/lib/cast/cast_proxy.js +50 -12
- 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/debug/log.js +16 -17
- package/lib/hls/hls_parser.js +122 -99
- 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 +136 -119
- package/lib/media/preload_manager.js +10 -5
- package/lib/media/region_observer.js +9 -8
- package/lib/media/region_timeline.js +10 -8
- package/lib/media/streaming_engine.js +25 -9
- 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 +98 -47
- package/lib/polyfill/media_capabilities.js +8 -9
- package/lib/text/cue.js +6 -2
- package/lib/text/text_engine.js +7 -7
- package/lib/text/ttml_text_parser.js +14 -16
- package/lib/text/ui_text_displayer.js +25 -4
- 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 +40 -9
- package/lib/util/player_configuration.js +1 -1
- package/lib/util/stream_utils.js +35 -17
- package/package.json +2 -2
- package/project-words.txt +1 -0
- package/third_party/closure-uri/uri.js +13 -13
- package/ui/ad_statistics_button.js +17 -16
- package/ui/audio_language_selection.js +6 -1
- package/ui/statistics_button.js +36 -35
|
@@ -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
|
|
@@ -3888,8 +3888,9 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3888
3888
|
* @param {number=} safeMargin
|
|
3889
3889
|
* @param {string=} codec
|
|
3890
3890
|
* @param {boolean=} spatialAudio
|
|
3891
|
+
* @param {string=} label
|
|
3891
3892
|
*/
|
|
3892
|
-
selectAudioLanguage(language, role, channelsCount, safeMargin, codec, spatialAudio) {}
|
|
3893
|
+
selectAudioLanguage(language, role, channelsCount, safeMargin, codec, spatialAudio, label) {}
|
|
3893
3894
|
/**
|
|
3894
3895
|
* Sets the current text language and current text role to the selected
|
|
3895
3896
|
* language and role, and chooses a new variant if need be. If the player has
|
|
@@ -6022,14 +6023,6 @@ shaka.polyfill.MediaCapabilities = class {
|
|
|
6022
6023
|
* @type {MediaCapabilities}
|
|
6023
6024
|
*/
|
|
6024
6025
|
shaka.polyfill.MediaCapabilities.originalMcap;
|
|
6025
|
-
/**
|
|
6026
|
-
* A cache that stores the canDisplayType result of calling
|
|
6027
|
-
* `cast.__platform__.canDisplayType`.
|
|
6028
|
-
* @type {(Object<(!string), (!boolean)>)}
|
|
6029
|
-
*/
|
|
6030
|
-
shaka.polyfill.MediaCapabilities.memoizedCanDisplayTypeRequests_ = {
|
|
6031
|
-
|
|
6032
|
-
};
|
|
6033
6026
|
/**
|
|
6034
6027
|
* @summary A polyfill to patch MSE bugs.
|
|
6035
6028
|
*/
|