shaka-player 4.9.32 → 4.9.34
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/deps.js +6 -5
- package/dist/locales.js +36 -36
- package/dist/shaka-player.compiled.d.ts +11 -3
- package/dist/shaka-player.compiled.debug.d.ts +11 -3
- package/dist/shaka-player.compiled.debug.externs.js +8 -5
- package/dist/shaka-player.compiled.debug.js +453 -440
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +8 -5
- package/dist/shaka-player.compiled.js +1281 -1271
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +11 -3
- package/dist/shaka-player.ui.debug.d.ts +11 -3
- package/dist/shaka-player.ui.debug.externs.js +8 -5
- package/dist/shaka-player.ui.debug.js +483 -470
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +8 -5
- package/dist/shaka-player.ui.js +1478 -1468
- package/dist/shaka-player.ui.map +4 -4
- package/externs/managedmediasource.js +6 -0
- package/externs/shaka/codecs.js +21 -0
- package/externs/shaka/offline.js +4 -0
- package/lib/cast/cast_utils.js +1 -0
- package/lib/hls/hls_parser.js +26 -5
- package/lib/media/drm_engine.js +78 -18
- package/lib/media/media_source_capabilities.js +3 -2
- package/lib/media/media_source_engine.js +117 -36
- package/lib/media/segment_utils.js +57 -47
- package/lib/offline/download_info.js +5 -0
- package/lib/offline/download_manager.js +54 -0
- package/lib/offline/manifest_converter.js +1 -0
- package/lib/offline/storage.js +11 -2
- package/lib/player.js +89 -53
- package/lib/polyfill/media_capabilities.js +1 -1
- package/lib/text/simple_text_displayer.js +9 -1
- package/lib/text/ui_text_displayer.js +2 -14
- package/lib/text/vtt_text_parser.js +9 -4
- package/lib/transmuxer/aac_transmuxer.js +11 -3
- package/lib/transmuxer/ac3_transmuxer.js +11 -3
- package/lib/transmuxer/ec3_transmuxer.js +11 -3
- package/lib/transmuxer/h264.js +143 -70
- package/lib/transmuxer/mp3_transmuxer.js +11 -3
- package/lib/transmuxer/ts_transmuxer.js +68 -28
- package/lib/util/abortable_operation.js +3 -0
- package/lib/util/drm_utils.js +20 -0
- package/lib/util/functional.js +27 -0
- package/lib/util/mime_utils.js +2 -0
- package/lib/util/number_utils.js +37 -0
- package/lib/util/object_utils.js +83 -0
- package/lib/util/platform.js +48 -40
- package/lib/util/stream_utils.js +27 -106
- package/lib/util/ts_parser.js +111 -85
- package/package.json +2 -2
- package/ui/controls.js +4 -0
- package/ui/fast_forward_button.js +7 -0
- package/ui/play_button.js +1 -1
- package/ui/rewind_button.js +7 -0
|
@@ -2296,11 +2296,10 @@ shaka.util.TsParser = class {
|
|
|
2296
2296
|
* The code is based on hls.js
|
|
2297
2297
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
2298
2298
|
* @param {shaka.extern.MPEG_PES} pes
|
|
2299
|
-
* @param {?shaka.extern.VideoNalu
|
|
2300
|
-
* @param {?number=} lastState
|
|
2299
|
+
* @param {{nalu: ?shaka.extern.VideoNalu, state: ?number}} lastInfo
|
|
2301
2300
|
* @return {!Array.<shaka.extern.VideoNalu>}
|
|
2302
2301
|
*/
|
|
2303
|
-
parseNalus(pes,
|
|
2302
|
+
parseNalus(pes, lastInfo) {}
|
|
2304
2303
|
/**
|
|
2305
2304
|
* Return the ID3 metadata
|
|
2306
2305
|
* @return {!Array.<shaka.extern.ID3Metadata>}
|
|
@@ -3066,9 +3065,8 @@ shaka.text.UITextDisplayer = class {
|
|
|
3066
3065
|
* Constructor.
|
|
3067
3066
|
* @param {HTMLMediaElement} video
|
|
3068
3067
|
* @param {HTMLElement} videoContainer
|
|
3069
|
-
* @param {shaka.extern.TextDisplayerConfiguration} config
|
|
3070
3068
|
*/
|
|
3071
|
-
constructor(video, videoContainer
|
|
3069
|
+
constructor(video, videoContainer) {}
|
|
3072
3070
|
/**
|
|
3073
3071
|
* @override
|
|
3074
3072
|
*/
|
|
@@ -3737,6 +3735,11 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3737
3735
|
* @param {HTMLElement} videoContainer
|
|
3738
3736
|
*/
|
|
3739
3737
|
setVideoContainer(videoContainer) {}
|
|
3738
|
+
/**
|
|
3739
|
+
* Indicate if the video has ended.
|
|
3740
|
+
* @return {boolean}
|
|
3741
|
+
*/
|
|
3742
|
+
isEnded() {}
|
|
3740
3743
|
};
|
|
3741
3744
|
/**
|
|
3742
3745
|
* In order to know what method of loading the player used for some content, we
|