shaka-player 4.10.18 → 4.10.20
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 +38 -38
- package/dist/shaka-player.compiled.debug.js +62 -58
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +432 -430
- 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 -457
- 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/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**|
|
|
@@ -186,7 +186,7 @@ MSS features **not** supported:
|
|
|
186
186
|
|Edge³ | - |**Y** | - | - |
|
|
187
187
|
|Edge Chromium |**Y** |**Y** | - |**Y** |
|
|
188
188
|
|Safari | - | - |**Y** | - |
|
|
189
|
-
|Opera |
|
|
189
|
+
|Opera |**Y** | - | - |**Y** |
|
|
190
190
|
|Chromecast |**Y** |**Y** | - |**Y** |
|
|
191
191
|
|Tizen TV |**Y** |**Y** | - |**Y** |
|
|
192
192
|
|WebOS⁷ |untested⁷ |untested⁷| - |untested⁷ |
|
|
@@ -204,8 +204,6 @@ NOTES:
|
|
|
204
204
|
- ²: DRM must be enabled by the user. The first time a Firefox user visits a
|
|
205
205
|
site with encrypted media, the user will be prompted to enable DRM.
|
|
206
206
|
- ³: PlayReady in Edge does not seem to work on a VM or over Remote Desktop.
|
|
207
|
-
- ⁵: These are expected to work, but are not actively tested by the Shaka
|
|
208
|
-
Player team.
|
|
209
207
|
- ⁶: ClearKey is a useful tool for debugging, and does not provide actual
|
|
210
208
|
content security.
|
|
211
209
|
- ⁷: 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
|
@@ -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
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
CHAPTERS: 'CHAPTERS',
|
|
917
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
918
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
919
|
-
MUTE: 'MUTE',
|
|
920
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
921
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
922
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
923
|
-
ON: 'ON',
|
|
924
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
925
|
-
OFF: 'OFF',
|
|
926
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
912
|
+
AD_TIME: 'AD_TIME',
|
|
913
|
+
LOOP: 'LOOP',
|
|
914
|
+
PAUSE: 'PAUSE',
|
|
915
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
927
916
|
LANGUAGE: 'LANGUAGE',
|
|
917
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
918
|
+
UNMUTE: 'UNMUTE',
|
|
928
919
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
929
|
-
|
|
930
|
-
|
|
920
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
921
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
922
|
+
AIRPLAY: 'AIRPLAY',
|
|
923
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
924
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
931
925
|
REWIND: 'REWIND',
|
|
926
|
+
STATISTICS: 'STATISTICS',
|
|
932
927
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
933
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
934
|
-
AD_TIME: 'AD_TIME',
|
|
935
|
-
AIRPLAY: 'AIRPLAY',
|
|
936
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
937
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
938
|
-
SURROUND: 'SURROUND',
|
|
939
|
-
VOLUME: 'VOLUME',
|
|
940
|
-
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
941
928
|
SKIP_AD: 'SKIP_AD',
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
929
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
930
|
+
ON: 'ON',
|
|
931
|
+
OFF: 'OFF',
|
|
932
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
947
933
|
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
948
|
-
|
|
949
|
-
|
|
934
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
935
|
+
CHAPTERS: 'CHAPTERS',
|
|
936
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
950
937
|
QUALITY: 'QUALITY',
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
938
|
+
BACK: 'BACK',
|
|
939
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
940
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
941
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
942
|
+
SURROUND: 'SURROUND',
|
|
954
943
|
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
955
|
-
|
|
956
|
-
|
|
944
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
945
|
+
PLAY: 'PLAY',
|
|
946
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
947
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
957
948
|
CAST: 'CAST',
|
|
958
|
-
|
|
949
|
+
MUTE: 'MUTE',
|
|
950
|
+
LIVE: 'LIVE',
|
|
951
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
952
|
+
SEEK: 'SEEK',
|
|
953
|
+
AD_DURATION: 'AD_DURATION',
|
|
954
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
955
|
+
RESOLUTION: 'RESOLUTION',
|
|
956
|
+
VOLUME: 'VOLUME',
|
|
957
|
+
REPLAY: 'REPLAY',
|
|
958
|
+
CAPTIONS: 'CAPTIONS',
|
|
959
959
|
};
|