shaka-player 4.11.4 → 4.11.6
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/README.md +2 -4
- package/dist/cast-boot.js +7 -0
- package/dist/deps.js +2 -2
- package/dist/locales.js +37 -37
- package/dist/shaka-player.compiled.debug.js +59 -55
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +445 -442
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.debug.js +69 -65
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +459 -456
- package/dist/shaka-player.ui.map +3 -3
- package/lib/ads/interstitial_ad_manager.js +4 -0
- package/lib/hls/hls_parser.js +18 -4
- package/lib/media/preload_manager.js +17 -0
- package/lib/media/presentation_timeline.js +7 -1
- package/lib/media/streaming_engine.js +27 -9
- package/lib/player.js +35 -32
- package/lib/polyfill/encryption_scheme.js +9 -0
- package/lib/util/periods.js +3 -0
- package/lib/util/platform.js +9 -1
- package/package.json +1 -1
- package/ui/controls.js +10 -3
- package/ui/locales/zh-HK.json +30 -11
- package/ui/resolution_selection.js +4 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ for the up-to-date list of maintained branches of Shaka Player.
|
|
|
41
41
|
|Edge Chromium |**Y** |**Y** |**Y** |untested⁵|**Native**|**Native** |**Native** | - | - |
|
|
42
42
|
|IE | N | - | - | - | - | - | - | - | - |
|
|
43
43
|
|Safari¹ | - |**Y** | - | - |**Native**|**Y** |**Y** | - | - |
|
|
44
|
-
|Opera¹ |untested
|
|
44
|
+
|Opera¹ |**Y** |**Y** |**Y** |untested⁵|**Native**| - | - | - | - |
|
|
45
45
|
|Chromecast². | - | - | - | - | - | - | - | - |**Y**|
|
|
46
46
|
|Tizen TV³ | - | - | - | - | - | - | - | - |**Y**|
|
|
47
47
|
|WebOS⁶ | - | - | - | - | - | - | - | - |**Y**|
|
|
@@ -187,7 +187,7 @@ MSS features **not** supported:
|
|
|
187
187
|
|Edge³ | - |**Y** | - | - |
|
|
188
188
|
|Edge Chromium |**Y** |**Y** | - |**Y** |
|
|
189
189
|
|Safari | - | - |**Y** | - |
|
|
190
|
-
|Opera |
|
|
190
|
+
|Opera |**Y** | - | - |**Y** |
|
|
191
191
|
|Chromecast |**Y** |**Y** | - |**Y** |
|
|
192
192
|
|Tizen TV |**Y** |**Y** | - |**Y** |
|
|
193
193
|
|WebOS⁷ |untested⁷ |untested⁷| - |untested⁷ |
|
|
@@ -205,8 +205,6 @@ NOTES:
|
|
|
205
205
|
- ²: DRM must be enabled by the user. The first time a Firefox user visits a
|
|
206
206
|
site with encrypted media, the user will be prompted to enable DRM.
|
|
207
207
|
- ³: PlayReady in Edge does not seem to work on a VM or over Remote Desktop.
|
|
208
|
-
- ⁵: These are expected to work, but are not actively tested by the Shaka
|
|
209
|
-
Player team.
|
|
210
208
|
- ⁶: ClearKey is a useful tool for debugging, and does not provide actual
|
|
211
209
|
content security.
|
|
212
210
|
- ⁷: These are expected to work, but are community-supported and untested by
|
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
|
@@ -128,7 +128,7 @@ goog.addDependency('../../../../lib/offline/stream_bandwidth_estimator.js', ['sh
|
|
|
128
128
|
goog.addDependency('../../../../lib/player.js', ['shaka.Player'], ['goog.asserts', 'shaka.Deprecate', 'shaka.config.AutoShowText', 'shaka.lcevc.Dec', 'shaka.log', 'shaka.media.AdaptationSetCriteria', 'shaka.media.BufferingObserver', 'shaka.media.DrmEngine', 'shaka.media.ExampleBasedCriteria', 'shaka.media.ManifestFilterer', 'shaka.media.ManifestParser', 'shaka.media.MediaSourceEngine', 'shaka.media.MediaSourcePlayhead', 'shaka.media.MetaSegmentIndex', 'shaka.media.PlayRateController', 'shaka.media.Playhead', 'shaka.media.PlayheadObserverManager', 'shaka.media.PreferenceBasedCriteria', 'shaka.media.PreloadManager', 'shaka.media.QualityObserver', 'shaka.media.RegionObserver', 'shaka.media.RegionTimeline', 'shaka.media.SegmentIndex', 'shaka.media.SegmentPrefetch', 'shaka.media.SegmentReference', 'shaka.media.SrcEqualsPlayhead', 'shaka.media.StreamingEngine', 'shaka.media.TimeRangesUtils', 'shaka.net.NetworkingEngine', 'shaka.net.NetworkingUtils', 'shaka.text.SimpleTextDisplayer', 'shaka.text.StubTextDisplayer', 'shaka.text.TextEngine', 'shaka.text.UITextDisplayer', 'shaka.text.Utils', 'shaka.text.WebVttGenerator', 'shaka.util.BufferUtils', 'shaka.util.CmcdManager', 'shaka.util.CmsdManager', 'shaka.util.ConfigUtils', 'shaka.util.Dom', 'shaka.util.DrmUtils', 'shaka.util.Error', 'shaka.util.EventManager', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget', 'shaka.util.Functional', 'shaka.util.IDestroyable', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MediaReadyState', 'shaka.util.MimeUtils', 'shaka.util.Mutex', 'shaka.util.ObjectUtils', 'shaka.util.Platform', 'shaka.util.PlayerConfiguration', 'shaka.util.PublicPromise', 'shaka.util.Stats', 'shaka.util.StreamUtils', 'shaka.util.Timer'], {'lang': 'es8'});
|
|
129
129
|
goog.addDependency('../../../../lib/polyfill/all.js', ['shaka.polyfill'], ['shaka.log'], {'lang': 'es6'});
|
|
130
130
|
goog.addDependency('../../../../lib/polyfill/aria.js', ['shaka.polyfill.Aria'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
|
|
131
|
-
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
131
|
+
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
132
132
|
goog.addDependency('../../../../lib/polyfill/fullscreen.js', ['shaka.polyfill.Fullscreen'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
133
133
|
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'});
|
|
134
134
|
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
|
@@ -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
|
-
|
|
919
|
-
|
|
920
|
-
|
|
915
|
+
CAST: 'CAST',
|
|
916
|
+
SEEK: 'SEEK',
|
|
917
|
+
LIVE: 'LIVE',
|
|
918
|
+
OFF: 'OFF',
|
|
919
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
920
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
921
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
922
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
923
|
+
PAUSE: 'PAUSE',
|
|
924
|
+
PLAY: 'PLAY',
|
|
925
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
926
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
927
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
928
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
929
|
+
QUALITY: 'QUALITY',
|
|
921
930
|
CAPTIONS: 'CAPTIONS',
|
|
931
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
932
|
+
SKIP_AD: 'SKIP_AD',
|
|
933
|
+
REPLAY: 'REPLAY',
|
|
934
|
+
SURROUND: 'SURROUND',
|
|
935
|
+
ON: 'ON',
|
|
936
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
937
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
938
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
939
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
940
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
922
941
|
LANGUAGE: 'LANGUAGE',
|
|
942
|
+
BACK: 'BACK',
|
|
943
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
944
|
+
STATISTICS: 'STATISTICS',
|
|
923
945
|
LOOP: 'LOOP',
|
|
924
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
925
946
|
CHAPTERS: 'CHAPTERS',
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
UNMUTE: 'UNMUTE',
|
|
947
|
+
REWIND: 'REWIND',
|
|
948
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
929
949
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
930
|
-
OFF: 'OFF',
|
|
931
|
-
STATISTICS: 'STATISTICS',
|
|
932
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
933
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
934
950
|
AD_DURATION: 'AD_DURATION',
|
|
951
|
+
AD_TIME: 'AD_TIME',
|
|
952
|
+
MUTE: 'MUTE',
|
|
953
|
+
RESOLUTION: 'RESOLUTION',
|
|
935
954
|
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
936
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
937
|
-
SURROUND: 'SURROUND',
|
|
938
|
-
SKIP_AD: 'SKIP_AD',
|
|
939
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
940
|
-
SEEK: 'SEEK',
|
|
941
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
942
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
943
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
944
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
945
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
946
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
947
|
-
LIVE: 'LIVE',
|
|
948
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
949
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
950
|
-
PLAY: 'PLAY',
|
|
951
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
952
|
-
CAST: 'CAST',
|
|
953
955
|
VOLUME: 'VOLUME',
|
|
954
|
-
|
|
955
|
-
MUTE: 'MUTE',
|
|
956
|
-
PAUSE: 'PAUSE',
|
|
957
|
-
BACK: 'BACK',
|
|
956
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
958
957
|
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
959
|
-
|
|
958
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
960
959
|
AIRPLAY: 'AIRPLAY',
|
|
961
|
-
|
|
960
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
961
|
+
UNMUTE: 'UNMUTE',
|
|
962
962
|
};
|