shaka-player 4.9.28 → 4.9.30
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 +4 -4
- package/dist/locales.js +34 -34
- package/dist/shaka-player.compiled.debug.js +79 -76
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +699 -694
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.debug.js +97 -94
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +445 -440
- package/dist/shaka-player.ui.map +3 -3
- package/lib/dash/dash_parser.js +39 -11
- package/lib/dash/segment_template.js +1 -1
- package/lib/media/drm_engine.js +11 -0
- package/lib/media/media_source_engine.js +19 -30
- package/lib/media/playhead.js +3 -1
- package/lib/media/preload_manager.js +17 -0
- package/lib/media/presentation_timeline.js +7 -1
- package/lib/media/streaming_engine.js +43 -12
- package/lib/player.js +40 -32
- package/lib/polyfill/encryption_scheme.js +9 -0
- package/lib/polyfill/media_capabilities.js +8 -2
- package/lib/util/periods.js +3 -0
- package/lib/util/platform.js +12 -3
- package/lib/util/player_configuration.js +3 -1
- package/package.json +1 -1
- package/ui/externs/ui.js +2 -1
- package/ui/locales/zh-HK.json +30 -11
- package/ui/remote_button.js +3 -2
- package/ui/resolution_selection.js +4 -1
- package/ui/ui.js +6 -3
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**|
|
|
@@ -182,7 +182,7 @@ MSS features **not** supported:
|
|
|
182
182
|
|Edge³ | - |**Y** | - | - |
|
|
183
183
|
|Edge Chromium |**Y** |**Y** | - |**Y** |
|
|
184
184
|
|Safari | - | - |**Y** | - |
|
|
185
|
-
|Opera |
|
|
185
|
+
|Opera |**Y** | - | - |**Y** |
|
|
186
186
|
|Chromecast |**Y** |**Y** | - |**Y** |
|
|
187
187
|
|Tizen TV |**Y** |**Y** | - |**Y** |
|
|
188
188
|
|WebOS⁷ |untested⁷ |untested⁷| - |untested⁷ |
|
|
@@ -200,8 +200,6 @@ NOTES:
|
|
|
200
200
|
- ²: DRM must be enabled by the user. The first time a Firefox user visits a
|
|
201
201
|
site with encrypted media, the user will be prompted to enable DRM.
|
|
202
202
|
- ³: PlayReady in Edge does not seem to work on a VM or over Remote Desktop.
|
|
203
|
-
- ⁵: These are expected to work, but are not actively tested by the Shaka
|
|
204
|
-
Player team.
|
|
205
203
|
- ⁶: ClearKey is a useful tool for debugging, and does not provide actual
|
|
206
204
|
content security.
|
|
207
205
|
- ⁷: 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
|
@@ -126,9 +126,9 @@ goog.addDependency('../../../../lib/player.js', ['shaka.Player'], ['goog.asserts
|
|
|
126
126
|
goog.addDependency('../../../../lib/polyfill/abort_controller.js', ['shaka.polyfill.AbortController'], ['shaka.polyfill', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
|
|
127
127
|
goog.addDependency('../../../../lib/polyfill/all.js', ['shaka.polyfill'], ['shaka.log'], {'lang': 'es6'});
|
|
128
128
|
goog.addDependency('../../../../lib/polyfill/aria.js', ['shaka.polyfill.Aria'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
|
|
129
|
-
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
129
|
+
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
130
130
|
goog.addDependency('../../../../lib/polyfill/fullscreen.js', ['shaka.polyfill.Fullscreen'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
131
|
-
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'});
|
|
131
|
+
goog.addDependency('../../../../lib/polyfill/media_capabilities.js', ['shaka.polyfill.MediaCapabilities'], ['shaka.log', 'shaka.media.Capabilities', 'shaka.polyfill', 'shaka.util.DrmUtils', 'shaka.util.MimeUtils', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
132
132
|
goog.addDependency('../../../../lib/polyfill/mediasource.js', ['shaka.polyfill.MediaSource'], ['shaka.log', 'shaka.polyfill', 'shaka.util.MimeUtils', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
133
133
|
goog.addDependency('../../../../lib/polyfill/orientation.js', ['shaka.polyfill.Orientation'], ['shaka.log', 'shaka.polyfill', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
|
|
134
134
|
goog.addDependency('../../../../lib/polyfill/patchedmediakeys_apple.js', ['shaka.polyfill.PatchedMediaKeysApple'], ['goog.asserts', 'shaka.log', 'shaka.polyfill', 'shaka.util.BufferUtils', 'shaka.util.DrmUtils', 'shaka.util.EventManager', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget', 'shaka.util.MediaReadyState', 'shaka.util.PublicPromise', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
@@ -212,7 +212,7 @@ goog.addDependency('../../../../lib/util/object_utils.js', ['shaka.util.ObjectUt
|
|
|
212
212
|
goog.addDependency('../../../../lib/util/operation_manager.js', ['shaka.util.OperationManager'], ['shaka.util.ArrayUtils', 'shaka.util.IDestroyable'], {'lang': 'es6'});
|
|
213
213
|
goog.addDependency('../../../../lib/util/periods.js', ['shaka.util.PeriodCombiner'], ['goog.asserts', 'shaka.log', 'shaka.media.MetaSegmentIndex', 'shaka.media.SegmentIndex', 'shaka.util.DrmUtils', 'shaka.util.Error', 'shaka.util.IReleasable', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils'], {'lang': 'es8'});
|
|
214
214
|
goog.addDependency('../../../../lib/util/platform.js', ['shaka.util.Platform'], ['shaka.log', 'shaka.util.DrmUtils', 'shaka.util.Timer'], {'lang': 'es8'});
|
|
215
|
-
goog.addDependency('../../../../lib/util/player_configuration.js', ['shaka.util.PlayerConfiguration'], ['goog.asserts', 'shaka.abr.SimpleAbrManager', 'shaka.config.AutoShowText', 'shaka.config.CodecSwitchingStrategy', 'shaka.log', 'shaka.net.NetworkingEngine', 'shaka.util.ConfigUtils', 'shaka.util.FairPlayUtils', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
215
|
+
goog.addDependency('../../../../lib/util/player_configuration.js', ['shaka.util.PlayerConfiguration'], ['goog.asserts', 'shaka.abr.SimpleAbrManager', 'shaka.config.AutoShowText', 'shaka.config.CodecSwitchingStrategy', 'shaka.log', 'shaka.media.Capabilities', 'shaka.net.NetworkingEngine', 'shaka.util.ConfigUtils', 'shaka.util.FairPlayUtils', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
216
216
|
goog.addDependency('../../../../lib/util/pssh.js', ['shaka.util.Pssh'], ['goog.asserts', 'shaka.log', 'shaka.util.BufferUtils', 'shaka.util.Mp4Parser', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
217
217
|
goog.addDependency('../../../../lib/util/public_promise.js', ['shaka.util.PublicPromise'], [], {'lang': 'es6'});
|
|
218
218
|
goog.addDependency('../../../../lib/util/state_history.js', ['shaka.util.StateHistory'], ['goog.asserts', 'shaka.log'], {'lang': 'es6'});
|
|
@@ -260,7 +260,7 @@ goog.addDependency('../../../../ui/presentation_time.js', ['shaka.ui.Presentatio
|
|
|
260
260
|
goog.addDependency('../../../../ui/range_element.js', ['shaka.ui.RangeElement'], ['shaka.ui.Element', 'shaka.util.Dom', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
261
261
|
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'});
|
|
262
262
|
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'});
|
|
263
|
-
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'});
|
|
263
|
+
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'});
|
|
264
264
|
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'});
|
|
265
265
|
goog.addDependency('../../../../ui/seek_bar.js', ['shaka.ui.SeekBar'], ['shaka.ads.AdManager', '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'});
|
|
266
266
|
goog.addDependency('../../../../ui/settings_menu.js', ['shaka.ui.SettingsMenu'], ['shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.FakeEvent', 'shaka.util.Iterables'], {'lang': 'es6'});
|
package/dist/locales.js
CHANGED
|
@@ -761,49 +761,49 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
761
761
|
* @const
|
|
762
762
|
*/
|
|
763
763
|
shaka.ui.Locales.Ids = {
|
|
764
|
-
OFF: 'OFF',
|
|
765
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
766
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
767
|
-
BACK: 'BACK',
|
|
768
764
|
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
769
|
-
ON: 'ON',
|
|
770
|
-
LIVE: 'LIVE',
|
|
771
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
772
|
-
QUALITY: 'QUALITY',
|
|
773
|
-
SURROUND: 'SURROUND',
|
|
774
|
-
VOLUME: 'VOLUME',
|
|
775
|
-
AD_STATISTICS: 'AD_STATISTICS',
|
|
776
|
-
REPLAY: 'REPLAY',
|
|
777
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
778
|
-
LOOP: 'LOOP',
|
|
779
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
780
|
-
MUTE: 'MUTE',
|
|
781
765
|
STATISTICS: 'STATISTICS',
|
|
782
|
-
|
|
783
|
-
|
|
766
|
+
SEEK: 'SEEK',
|
|
767
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
768
|
+
MUTE: 'MUTE',
|
|
784
769
|
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
785
|
-
|
|
770
|
+
UNMUTE: 'UNMUTE',
|
|
786
771
|
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
772
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
773
|
+
SURROUND: 'SURROUND',
|
|
774
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
775
|
+
BACK: 'BACK',
|
|
776
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
791
777
|
AD_DURATION: 'AD_DURATION',
|
|
792
|
-
|
|
793
|
-
|
|
778
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
779
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
780
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
781
|
+
CAPTIONS: 'CAPTIONS',
|
|
782
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
794
783
|
SKIP_AD: 'SKIP_AD',
|
|
784
|
+
OFF: 'OFF',
|
|
785
|
+
LIVE: 'LIVE',
|
|
786
|
+
ON: 'ON',
|
|
787
|
+
AD_TIME: 'AD_TIME',
|
|
788
|
+
VOLUME: 'VOLUME',
|
|
789
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
790
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
791
|
+
REPLAY: 'REPLAY',
|
|
792
|
+
AIRPLAY: 'AIRPLAY',
|
|
795
793
|
PAUSE: 'PAUSE',
|
|
796
|
-
|
|
797
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
794
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
798
795
|
AD_PROGRESS: 'AD_PROGRESS',
|
|
799
|
-
|
|
800
|
-
RESOLUTION: 'RESOLUTION',
|
|
801
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
796
|
+
PLAY: 'PLAY',
|
|
802
797
|
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
803
|
-
|
|
798
|
+
RESOLUTION: 'RESOLUTION',
|
|
799
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
804
800
|
REWIND: 'REWIND',
|
|
805
|
-
|
|
801
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
802
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
803
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
804
|
+
LOOP: 'LOOP',
|
|
806
805
|
CAST: 'CAST',
|
|
807
|
-
|
|
808
|
-
|
|
806
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
807
|
+
QUALITY: 'QUALITY',
|
|
808
|
+
LANGUAGE: 'LANGUAGE',
|
|
809
809
|
};
|