shaka-player 4.10.17 → 4.10.19
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/cast-boot.js +7 -0
- package/dist/deps.js +2 -2
- package/dist/locales.js +37 -37
- 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.js +318 -315
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +828 -825
- package/dist/shaka-player.compiled.map +3 -3
- 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.js +273 -268
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +873 -870
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/player.js +10 -1
- package/lib/dash/dash_parser.js +7 -4
- package/lib/hls/hls_parser.js +18 -4
- package/lib/media/gap_jumping_controller.js +4 -2
- package/lib/media/presentation_timeline.js +7 -1
- package/lib/media/streaming_engine.js +15 -9
- package/lib/net/networking_utils.js +5 -0
- package/lib/offline/storage.js +12 -10
- package/lib/player.js +33 -24
- package/lib/polyfill/encryption_scheme.js +9 -0
- package/lib/util/platform.js +9 -1
- package/lib/util/player_configuration.js +5 -0
- package/package.json +1 -1
- package/ui/controls.js +14 -2
- package/ui/locales/README.md +16 -0
- package/ui/locales/sjn-translations.yaml +50 -4
- package/ui/locales/sjn.json +8 -1
- package/ui/locales/sync-sjn.py +41 -0
- package/ui/resolution_selection.js +4 -1
package/dist/cast-boot.js
CHANGED
|
@@ -33,5 +33,12 @@ if (navigator.userAgent.indexOf('CrKey') != -1) {
|
|
|
33
33
|
console.log('Cast SDK loaded');
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
// Use an anonymous function here, normally banned in favor of arrow
|
|
37
|
+
// functions, for compatibility with the oldest devices and runtimes.
|
|
38
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
39
|
+
script.onerror = function(error) {
|
|
40
|
+
window.dump('Unable to load Cast SDK: ' + error);
|
|
41
|
+
};
|
|
42
|
+
|
|
36
43
|
document.head.appendChild(script);
|
|
37
44
|
}
|
package/dist/deps.js
CHANGED
|
@@ -129,7 +129,7 @@ goog.addDependency('../../../../lib/player.js', ['shaka.Player'], ['goog.asserts
|
|
|
129
129
|
goog.addDependency('../../../../lib/polyfill/abort_controller.js', ['shaka.polyfill.AbortController'], ['shaka.polyfill', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
|
|
130
130
|
goog.addDependency('../../../../lib/polyfill/all.js', ['shaka.polyfill'], ['shaka.log'], {'lang': 'es6'});
|
|
131
131
|
goog.addDependency('../../../../lib/polyfill/aria.js', ['shaka.polyfill.Aria'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
|
|
132
|
-
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
132
|
+
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
133
133
|
goog.addDependency('../../../../lib/polyfill/fullscreen.js', ['shaka.polyfill.Fullscreen'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
134
134
|
goog.addDependency('../../../../lib/polyfill/media_capabilities.js', ['shaka.polyfill.MediaCapabilities'], ['shaka.log', 'shaka.media.Capabilities', 'shaka.polyfill', 'shaka.util.DrmUtils', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
135
135
|
goog.addDependency('../../../../lib/polyfill/mediasource.js', ['shaka.polyfill.MediaSource'], ['shaka.log', 'shaka.polyfill', 'shaka.util.MimeUtils', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
@@ -264,7 +264,7 @@ goog.addDependency('../../../../ui/presentation_time.js', ['shaka.ui.Presentatio
|
|
|
264
264
|
goog.addDependency('../../../../ui/range_element.js', ['shaka.ui.RangeElement'], ['shaka.ui.Element', 'shaka.util.Dom', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
265
265
|
goog.addDependency('../../../../ui/recenter_vr.js', ['shaka.ui.RecenterVRButton'], ['shaka.ui.Controls', 'shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.OverflowMenu', 'shaka.ui.Utils', 'shaka.util.Dom'], {'lang': 'es6'});
|
|
266
266
|
goog.addDependency('../../../../ui/remote_button.js', ['shaka.ui.RemoteButton'], ['shaka.Player', 'shaka.ui.Controls', 'shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.OverflowMenu', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
267
|
-
goog.addDependency('../../../../ui/resolution_selection.js', ['shaka.ui.ResolutionSelection'], ['goog.asserts', 'shaka.Player', 'shaka.ui.Controls', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.OverflowMenu', 'shaka.ui.Overlay.TrackLabelFormat', 'shaka.ui.SettingsMenu', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.FakeEvent'], {'lang': 'es6'});
|
|
267
|
+
goog.addDependency('../../../../ui/resolution_selection.js', ['shaka.ui.ResolutionSelection'], ['goog.asserts', 'shaka.Player', 'shaka.ui.Controls', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.OverflowMenu', 'shaka.ui.Overlay.TrackLabelFormat', 'shaka.ui.SettingsMenu', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.FakeEvent', 'shaka.util.Functional'], {'lang': 'es6'});
|
|
268
268
|
goog.addDependency('../../../../ui/rewind_button.js', ['shaka.ui.RewindButton'], ['shaka.ui.Controls', 'shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.util.Dom'], {'lang': 'es6'});
|
|
269
269
|
goog.addDependency('../../../../ui/save_video_frame_button.js', ['shaka.ui.SaveVideoFrameButton'], ['shaka.ads.Utils', 'shaka.ui.ContextMenu', 'shaka.ui.Controls', 'shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.OverflowMenu', 'shaka.ui.Utils', 'shaka.util.Dom'], {'lang': 'es6'});
|
|
270
270
|
goog.addDependency('../../../../ui/seek_bar.js', ['shaka.ui.SeekBar'], ['shaka.ads.Utils', 'shaka.net.NetworkingEngine', 'shaka.ui.Constants', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.RangeElement', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.Error', 'shaka.util.Mp4Parser', 'shaka.util.Networking', 'shaka.util.Timer'], {'lang': 'es8'});
|
package/dist/locales.js
CHANGED
|
@@ -909,51 +909,51 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
909
909
|
* @const
|
|
910
910
|
*/
|
|
911
911
|
shaka.ui.Locales.Ids = {
|
|
912
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
913
|
-
RESOLUTION: 'RESOLUTION',
|
|
914
|
-
LANGUAGE: 'LANGUAGE',
|
|
915
|
-
LOOP: 'LOOP',
|
|
916
|
-
MUTE: 'MUTE',
|
|
917
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
918
912
|
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
919
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
920
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
921
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
922
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
923
|
-
SKIP_AD: 'SKIP_AD',
|
|
924
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
925
913
|
FAST_FORWARD: 'FAST_FORWARD',
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
914
|
+
QUALITY: 'QUALITY',
|
|
915
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
916
|
+
RESOLUTION: 'RESOLUTION',
|
|
917
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
918
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
919
|
+
REWIND: 'REWIND',
|
|
920
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
921
|
+
AD_DURATION: 'AD_DURATION',
|
|
932
922
|
SURROUND: 'SURROUND',
|
|
933
|
-
|
|
923
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
924
|
+
LANGUAGE: 'LANGUAGE',
|
|
925
|
+
PLAY: 'PLAY',
|
|
934
926
|
BACK: 'BACK',
|
|
935
|
-
|
|
936
|
-
ON: 'ON',
|
|
927
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
937
928
|
CAPTIONS: 'CAPTIONS',
|
|
938
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
939
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
940
|
-
PLAY: 'PLAY',
|
|
941
|
-
AD_DURATION: 'AD_DURATION',
|
|
942
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
943
|
-
SEEK: 'SEEK',
|
|
944
|
-
AIRPLAY: 'AIRPLAY',
|
|
945
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
946
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
947
|
-
STATISTICS: 'STATISTICS',
|
|
948
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
949
929
|
PAUSE: 'PAUSE',
|
|
930
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
931
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
932
|
+
CHAPTERS: 'CHAPTERS',
|
|
950
933
|
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
934
|
+
STATISTICS: 'STATISTICS',
|
|
951
935
|
UNMUTE: 'UNMUTE',
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
936
|
+
ON: 'ON',
|
|
937
|
+
SEEK: 'SEEK',
|
|
938
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
939
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
940
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
941
|
+
AIRPLAY: 'AIRPLAY',
|
|
942
|
+
MUTE: 'MUTE',
|
|
943
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
956
944
|
OFF: 'OFF',
|
|
945
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
946
|
+
REPLAY: 'REPLAY',
|
|
947
|
+
LOOP: 'LOOP',
|
|
948
|
+
VOLUME: 'VOLUME',
|
|
957
949
|
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
958
|
-
|
|
950
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
951
|
+
LIVE: 'LIVE',
|
|
952
|
+
CAST: 'CAST',
|
|
953
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
954
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
955
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
956
|
+
SKIP_AD: 'SKIP_AD',
|
|
957
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
958
|
+
AD_TIME: 'AD_TIME',
|
|
959
959
|
};
|
|
@@ -4923,7 +4923,7 @@ declare namespace shaka.extern {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4925
4925
|
declare namespace shaka.extern {
|
|
4926
|
-
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , clearDecodingCache : boolean , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , dontChooseCodecs : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTP : boolean , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : shaka.extern.LiveSyncConfiguration , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , preloadNextUrlWindow : number , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , shouldFixTimestampOffset : boolean , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
4926
|
+
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , clearDecodingCache : boolean , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , dontChooseCodecs : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTP : boolean , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , gapPadding : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : shaka.extern.LiveSyncConfiguration , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , preloadNextUrlWindow : number , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , shouldFixTimestampOffset : boolean , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
4927
4927
|
}
|
|
4928
4928
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4929
4929
|
declare namespace shaka.extern {
|
|
@@ -4923,7 +4923,7 @@ declare namespace shaka.extern {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4925
4925
|
declare namespace shaka.extern {
|
|
4926
|
-
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , clearDecodingCache : boolean , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , dontChooseCodecs : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTP : boolean , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : shaka.extern.LiveSyncConfiguration , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , preloadNextUrlWindow : number , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , shouldFixTimestampOffset : boolean , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
4926
|
+
type StreamingConfiguration = { allowMediaSourceRecoveries : boolean , alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , clearDecodingCache : boolean , disableAudioPrefetch : boolean , disableTextPrefetch : boolean , disableVideoPrefetch : boolean , dispatchAllEmsgBoxes : boolean , dontChooseCodecs : boolean , durationBackoff : number , evictionGoal : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTP : boolean , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , gapPadding : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , infiniteLiveStreamDuration : boolean , liveSync : shaka.extern.LiveSyncConfiguration , loadTimeout : number , lowLatencyMode : boolean , maxDisabledTime : number , minTimeBetweenRecoveries : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , prefetchAudioLanguages : string [] , preloadNextUrlWindow : number , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , shouldFixTimestampOffset : boolean , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsForFairPlay : boolean , vodDynamicPlaybackRate : boolean , vodDynamicPlaybackRateBufferRatio : number , vodDynamicPlaybackRateLowBufferRate : number } ;
|
|
4927
4927
|
}
|
|
4928
4928
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
4929
4929
|
declare namespace shaka.extern {
|