shaka-player 4.12.5 → 4.12.7
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/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +3 -3
- package/dist/locales.js +34 -34
- package/dist/shaka-player.compiled.d.ts +12 -4
- package/dist/shaka-player.compiled.debug.d.ts +12 -4
- package/dist/shaka-player.compiled.debug.externs.js +10 -6
- package/dist/shaka-player.compiled.debug.js +439 -425
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +10 -6
- package/dist/shaka-player.compiled.js +1352 -1345
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +12 -4
- package/dist/shaka-player.ui.debug.d.ts +12 -4
- package/dist/shaka-player.ui.debug.externs.js +10 -6
- package/dist/shaka-player.ui.debug.js +439 -425
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +10 -6
- package/dist/shaka-player.ui.js +1596 -1588
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/codecs.js +21 -0
- package/externs/shaka/offline.js +4 -0
- package/lib/cast/cast_utils.js +1 -0
- package/lib/cea/cea708_service.js +27 -2
- package/lib/cea/dtvcc_packet_builder.js +15 -0
- package/lib/dash/dash_parser.js +5 -2
- package/lib/dash/mpd_utils.js +7 -4
- package/lib/dash/segment_template.js +30 -17
- package/lib/hls/hls_parser.js +31 -7
- package/lib/media/drm_engine.js +55 -12
- package/lib/media/media_source_engine.js +127 -41
- package/lib/media/segment_utils.js +65 -47
- package/lib/net/http_fetch_plugin.js +1 -1
- package/lib/net/http_plugin_utils.js +3 -0
- 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 +53 -22
- 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/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/drm_utils.js +20 -0
- package/lib/util/stream_utils.js +0 -60
- package/lib/util/ts_parser.js +111 -85
- package/package.json +1 -1
- package/ui/audio_language_selection.js +1 -1
- package/ui/controls.js +4 -0
- package/ui/fast_forward_button.js +7 -0
- package/ui/play_button.js +1 -1
- package/ui/playback_rate_selection.js +1 -1
- package/ui/rewind_button.js +7 -0
|
@@ -2326,11 +2326,10 @@ shaka.util.TsParser = class {
|
|
|
2326
2326
|
* The code is based on hls.js
|
|
2327
2327
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
2328
2328
|
* @param {shaka.extern.MPEG_PES} pes
|
|
2329
|
-
* @param {?shaka.extern.VideoNalu
|
|
2330
|
-
* @param {?number=} lastState
|
|
2329
|
+
* @param {{nalu: ?shaka.extern.VideoNalu, state: ?number}} lastInfo
|
|
2331
2330
|
* @return {!Array.<shaka.extern.VideoNalu>}
|
|
2332
2331
|
*/
|
|
2333
|
-
parseNalus(pes,
|
|
2332
|
+
parseNalus(pes, lastInfo) {}
|
|
2334
2333
|
/**
|
|
2335
2334
|
* Return the ID3 metadata
|
|
2336
2335
|
* @return {!Array.<shaka.extern.ID3Metadata>}
|
|
@@ -3114,9 +3113,8 @@ shaka.text.UITextDisplayer = class {
|
|
|
3114
3113
|
* Constructor.
|
|
3115
3114
|
* @param {HTMLMediaElement} video
|
|
3116
3115
|
* @param {HTMLElement} videoContainer
|
|
3117
|
-
* @param {shaka.extern.TextDisplayerConfiguration} config
|
|
3118
3116
|
*/
|
|
3119
|
-
constructor(video, videoContainer
|
|
3117
|
+
constructor(video, videoContainer) {}
|
|
3120
3118
|
/**
|
|
3121
3119
|
* @override
|
|
3122
3120
|
*/
|
|
@@ -3651,8 +3649,9 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3651
3649
|
* @param {number=} channelsCount
|
|
3652
3650
|
* @param {number=} safeMargin
|
|
3653
3651
|
* @param {string=} codec
|
|
3652
|
+
* @param {boolean=} spatialAudio
|
|
3654
3653
|
*/
|
|
3655
|
-
selectAudioLanguage(language, role, channelsCount, safeMargin, codec) {}
|
|
3654
|
+
selectAudioLanguage(language, role, channelsCount, safeMargin, codec, spatialAudio) {}
|
|
3656
3655
|
/**
|
|
3657
3656
|
* Sets the current text language and current text role to the selected
|
|
3658
3657
|
* language and role, and chooses a new variant if need be. If the player has
|
|
@@ -3824,6 +3823,11 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
3824
3823
|
* @return {boolean}
|
|
3825
3824
|
*/
|
|
3826
3825
|
isRemotePlayback() {}
|
|
3826
|
+
/**
|
|
3827
|
+
* Indicate if the video has ended.
|
|
3828
|
+
* @return {boolean}
|
|
3829
|
+
*/
|
|
3830
|
+
isEnded() {}
|
|
3827
3831
|
};
|
|
3828
3832
|
/**
|
|
3829
3833
|
* In order to know what method of loading the player used for some content, we
|