shaka-player 4.4.3 → 4.6.0
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/.github/ISSUE_TEMPLATE/bug_report.md +1 -1
- package/.github/workflows/release-please.yaml +2 -27
- package/AUTHORS +2 -0
- package/CHANGELOG.md +156 -39
- package/CODE_OF_CONDUCT.md +1 -1
- package/CONTRIBUTORS +2 -0
- package/README.md +54 -42
- package/demo/asset_card.js +18 -21
- package/demo/cast_receiver/index.html +0 -1
- package/demo/close_button.js +0 -3
- package/demo/common/asset.js +33 -22
- package/demo/common/assets.js +249 -60
- package/demo/config.js +219 -253
- package/demo/custom.js +88 -133
- package/demo/front.js +7 -10
- package/demo/index.html +19 -22
- package/demo/input.js +6 -11
- package/demo/input_container.js +8 -9
- package/demo/main.js +62 -126
- package/demo/search.js +29 -34
- package/demo/service_worker.js +0 -3
- package/demo/tooltip.js +3 -5
- package/demo/visualizer.js +3 -5
- package/demo/visualizer_button.js +1 -20
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/demo.compiled.debug.js +211 -228
- package/dist/demo.compiled.debug.map +4 -4
- package/dist/demo.compiled.js +211 -228
- package/dist/demo.compiled.map +4 -4
- package/dist/deps.js +42 -37
- package/dist/locales.js +34 -30
- package/dist/receiver.compiled.debug.js +64 -77
- package/dist/receiver.compiled.debug.map +4 -4
- package/dist/receiver.compiled.js +64 -77
- package/dist/receiver.compiled.map +4 -4
- package/dist/shaka-player.compiled.d.ts +343 -151
- package/dist/shaka-player.compiled.debug.d.ts +343 -151
- package/dist/shaka-player.compiled.debug.externs.js +356 -117
- package/dist/shaka-player.compiled.debug.js +952 -811
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +356 -117
- package/dist/shaka-player.compiled.js +1165 -1078
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +359 -153
- package/dist/shaka-player.ui.debug.d.ts +359 -153
- package/dist/shaka-player.ui.debug.externs.js +382 -117
- package/dist/shaka-player.ui.debug.js +1084 -918
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +382 -117
- package/dist/shaka-player.ui.js +1377 -1274
- package/dist/shaka-player.ui.map +4 -4
- package/docs/design/lcevc-integration.md +14 -14
- package/docs/tutorials/ad_monetization.md +54 -0
- package/docs/tutorials/basic-usage.md +2 -1
- package/docs/tutorials/errors.md +2 -1
- package/docs/tutorials/faq.md +27 -55
- package/docs/tutorials/index.json +2 -1
- package/docs/tutorials/lcevc.md +118 -0
- package/docs/tutorials/offline.md +10 -8
- package/docs/tutorials/plugins.md +5 -0
- package/docs/tutorials/ui-customization.md +17 -0
- package/docs/tutorials/ui.md +2 -1
- package/docs/tutorials/upgrade.md +3 -0
- package/externs/css_style_declaration.js +19 -0
- package/externs/lcevc.js +37 -13
- package/externs/managedmediasource.js +24 -0
- package/externs/media_remote.js +68 -0
- package/externs/mediatailor.js +193 -0
- package/externs/pictureinpicture.js +11 -0
- package/externs/shaka/abr_manager.js +6 -2
- package/externs/shaka/ads.js +27 -0
- package/externs/shaka/cea.js +7 -0
- package/externs/shaka/codecs.js +5 -3
- package/externs/shaka/manifest.js +31 -10
- package/externs/shaka/manifest_parser.js +24 -1
- package/externs/shaka/net.js +2 -2
- package/externs/shaka/offline.js +13 -2
- package/externs/shaka/player.js +65 -8
- package/externs/shaka/text.js +3 -1
- package/externs/shaka/transmuxer.js +1 -1
- package/karma.conf.js +7 -3
- package/lib/abr/simple_abr_manager.js +66 -9
- package/lib/ads/ad_manager.js +104 -50
- package/lib/ads/media_tailor_ad.js +297 -0
- package/lib/ads/media_tailor_ad_manager.js +839 -0
- package/lib/cast/cast_receiver.js +1 -1
- package/lib/cea/cea_decoder.js +28 -0
- package/lib/cea/dummy_caption_decoder.js +5 -0
- package/lib/cea/ts_cea_parser.js +15 -2
- package/lib/config/codec_switching_strategy.js +24 -0
- package/lib/dash/content_protection.js +120 -2
- package/lib/dash/dash_parser.js +322 -93
- package/lib/dash/mpd_utils.js +62 -37
- package/lib/dash/segment_base.js +17 -10
- package/lib/dash/segment_list.js +18 -9
- package/lib/dash/segment_template.js +122 -107
- package/lib/dependencies/all.js +8 -7
- package/lib/hls/hls_classes.js +28 -43
- package/lib/hls/hls_parser.js +798 -658
- package/lib/hls/hls_utils.js +64 -5
- package/lib/hls/manifest_text_parser.js +7 -11
- package/lib/lcevc/lcevc_dec.js +220 -0
- package/lib/media/adaptation_set.js +32 -14
- package/lib/media/adaptation_set_criteria.js +86 -16
- package/lib/media/closed_caption_parser.js +13 -0
- package/lib/media/content_workarounds.js +6 -0
- package/lib/media/drm_engine.js +8 -13
- package/lib/media/manifest_parser.js +8 -113
- package/lib/media/media_source_capabilities.js +10 -3
- package/lib/media/media_source_engine.js +286 -44
- package/lib/media/play_rate_controller.js +8 -38
- package/lib/media/presentation_timeline.js +7 -1
- package/lib/media/quality_observer.js +1 -1
- package/lib/media/segment_index.js +6 -6
- package/lib/media/segment_prefetch.js +92 -24
- package/lib/media/segment_reference.js +73 -7
- package/lib/media/segment_utils.js +343 -0
- package/lib/media/stall_detector.js +0 -3
- package/lib/media/streaming_engine.js +73 -38
- package/lib/mss/mss_parser.js +19 -2
- package/lib/net/networking_engine.js +67 -12
- package/lib/net/networking_utils.js +95 -0
- package/lib/offline/indexeddb/v1_storage_cell.js +3 -0
- package/lib/offline/indexeddb/v2_storage_cell.js +3 -0
- package/lib/offline/manifest_converter.js +3 -0
- package/lib/offline/offline_manifest_parser.js +10 -0
- package/lib/offline/storage.js +14 -7
- package/lib/player.js +1098 -1537
- package/lib/polyfill/mediasource.js +22 -1
- package/lib/text/cue.js +15 -0
- package/lib/text/mp4_ttml_parser.js +2 -2
- package/lib/text/srt_text_parser.js +2 -2
- package/lib/text/stub_text_displayer.js +51 -0
- package/lib/text/text_engine.js +3 -2
- package/lib/text/ttml_text_parser.js +45 -5
- package/lib/text/ui_text_displayer.js +8 -0
- package/lib/text/vtt_text_parser.js +40 -22
- package/lib/transmuxer/aac_transmuxer.js +1 -1
- package/lib/transmuxer/ac3_transmuxer.js +1 -1
- package/lib/transmuxer/ec3_transmuxer.js +1 -1
- package/lib/transmuxer/h264.js +5 -4
- package/lib/transmuxer/h265.js +863 -0
- package/lib/transmuxer/mp3_transmuxer.js +1 -1
- package/lib/transmuxer/mpeg_ts_transmuxer.js +4 -3
- package/lib/transmuxer/mss_transmuxer.js +1 -1
- package/lib/transmuxer/ts_transmuxer.js +187 -22
- package/lib/util/buffer_utils.js +26 -4
- package/lib/util/content_steering_manager.js +358 -0
- package/lib/util/error.js +30 -15
- package/lib/util/exp_golomb.js +30 -2
- package/lib/util/fairplay_utils.js +1 -1
- package/lib/util/fake_event.js +8 -1
- package/lib/util/id3_utils.js +50 -1
- package/lib/util/manifest_parser_utils.js +12 -8
- package/lib/util/mp4_generator.js +6 -8
- package/lib/util/mutex.js +59 -0
- package/lib/util/object_utils.js +1 -1
- package/lib/util/periods.js +156 -179
- package/lib/util/platform.js +44 -3
- package/lib/util/player_configuration.js +43 -6
- package/lib/util/state_history.js +6 -2
- package/lib/util/stream_utils.js +206 -283
- package/lib/util/ts_parser.js +335 -98
- package/lib/util/uint8array_utils.js +5 -1
- package/lib/util/xml_utils.js +5 -0
- package/maintained-branches.md +3 -2
- package/package.json +4 -6
- package/roadmap.md +25 -5
- package/shaka-player.uncompiled.js +2 -2
- package/support.html +0 -1
- package/test/abr/simple_abr_manager_unit.js +33 -33
- package/test/ads/ad_manager_unit.js +3 -2
- package/test/cast/cast_receiver_integration.js +50 -4
- package/test/cast/cast_utils_unit.js +2 -0
- package/test/cea/cea_decoder_unit.js +7 -0
- package/test/codec_switching/codec_switching_integration.js +182 -0
- package/test/dash/dash_parser_content_protection_unit.js +2 -0
- package/test/dash/dash_parser_integration.js +74 -0
- package/test/dash/dash_parser_live_unit.js +2 -19
- package/test/dash/dash_parser_manifest_unit.js +536 -2
- package/test/dash/dash_parser_segment_base_unit.js +2 -0
- package/test/dash/dash_parser_segment_list_unit.js +2 -0
- package/test/dash/dash_parser_segment_template_unit.js +2 -0
- package/test/dash/mpd_utils_unit.js +61 -30
- package/test/demo/demo_unit.js +0 -16
- package/test/hls/hls_live_unit.js +14 -3
- package/test/hls/hls_parser_unit.js +385 -33
- package/test/hls/manifest_text_parser_unit.js +32 -99
- package/test/media/adaptation_set_criteria_unit.js +284 -15
- package/test/media/adaptation_set_unit.js +2 -0
- package/test/media/content_workarounds_unit.js +1 -1
- package/test/media/drm_engine_unit.js +3 -3
- package/test/media/media_source_engine_unit.js +166 -2
- package/test/media/play_rate_controller_unit.js +0 -48
- package/test/media/segment_index_unit.js +5 -4
- package/test/media/segment_prefetch_unit.js +1 -1
- package/test/media/streaming_engine_unit.js +17 -17
- package/test/mss/mss_parser_unit.js +2 -0
- package/test/mss/mss_player_integration.js +3 -2
- package/test/net/networking_engine_unit.js +3 -3
- package/test/{media/manifest_parser_unit.js → net/networking_utils_unit.js} +2 -2
- package/test/offline/manifest_convert_unit.js +14 -0
- package/test/offline/offline_integration.js +2 -1
- package/test/offline/storage_integration.js +22 -13
- package/test/player_external.js +4 -2
- package/test/player_integration.js +15 -4
- package/test/player_load_graph_integration.js +47 -151
- package/test/player_src_equals_external.js +1 -0
- package/test/player_src_equals_integration.js +71 -4
- package/test/player_unit.js +182 -158
- package/test/test/assets/dash-aes-128/Fragments(video=0,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=20000000,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=40000000,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=60000000,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/Fragments(video=i,format=mpd-time-csf) +0 -0
- package/test/test/assets/dash-aes-128/dash.mpd +18 -0
- package/test/test/assets/dash-aes-128/license +1 -0
- package/test/test/assets/dash-multi-codec/audio_en_2c_128k_aac.mp4 +0 -0
- package/test/test/assets/dash-multi-codec/audio_es_2c_64k_opus.webm +0 -0
- package/test/test/assets/dash-multi-codec/dash.mpd +32 -0
- package/test/test/assets/dash-multi-codec/video_144p_108k_h264.mp4 +0 -0
- package/test/test/assets/hls-ts-h265/0.ts +0 -0
- package/test/test/assets/hls-ts-h265/hevc.m3u8 +6 -0
- package/test/test/assets/hls-ts-h265/index.m3u8 +7 -0
- package/test/test/assets/hls-ts-muxed-aac-h265/0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h265/1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h265/media.m3u8 +9 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/media.m3u8 +24 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00000.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00001.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00002.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00003.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00004.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ac3-h264/s_00005.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0000.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0001.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0002.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0003.ts +0 -0
- package/test/test/assets/hls-ts-muxed-ec3-h264/prog_index.m3u8 +14 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/index.m3u8 +23 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-1-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-2-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-3-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-4-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-5-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-6-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-7-v1-a1.ts +0 -0
- package/test/test/assets/hls-ts-muxed-mp3-h264/seg-8-v1-a1.ts +0 -0
- package/test/test/util/dash_parser_util.js +4 -0
- package/test/test/util/fake_ad_manager.js +20 -0
- package/test/test/util/fake_media_source_engine.js +13 -2
- package/test/test/util/fake_networking_engine.js +9 -1
- package/test/test/util/fake_segment_prefetch.js +3 -0
- package/test/test/util/manifest_generator.js +11 -3
- package/test/test/util/manifest_parser_util.js +14 -2
- package/test/test/util/mss_parser_util.js +4 -0
- package/test/test/util/offline_utils.js +2 -0
- package/test/test/util/simple_fakes.js +2 -2
- package/test/test/util/streaming_engine_util.js +10 -4
- package/test/test/util/test_scheme.js +6 -0
- package/test/test/util/ui_utils.js +4 -3
- package/test/text/mp4_ttml_parser_unit.js +4 -4
- package/test/text/srt_text_parser_unit.js +1 -1
- package/test/text/text_displayer_layout_unit.js +1 -1
- package/test/text/text_engine_unit.js +6 -0
- package/test/text/ttml_text_parser_unit.js +85 -2
- package/test/text/vtt_text_parser_unit.js +103 -31
- package/test/transmuxer/transmuxer_engine_integration.js +9 -0
- package/test/transmuxer/transmuxer_integration.js +150 -3
- package/test/ui/ad_ui_unit.js +2 -2
- package/test/ui/ui_customization_unit.js +17 -16
- package/test/ui/ui_integration.js +30 -20
- package/test/ui/ui_unit.js +28 -29
- package/test/util/buffer_utils_unit.js +1 -1
- package/test/util/content_steering_manager_unit.js +427 -0
- package/test/util/id3_utils_unit.js +52 -0
- package/test/util/stream_utils_unit.js +207 -169
- package/test/util/ts_parser_unit.js +3 -3
- package/third_party/closure-uri/uri.js +13 -1
- package/ui/audio_language_selection.js +9 -2
- package/ui/controls.js +125 -0
- package/ui/externs/ui.js +24 -2
- package/ui/language_utils.js +43 -8
- package/ui/less/range_elements.less +33 -0
- package/ui/locales/en.json +1 -0
- package/ui/locales/es-419.json +1 -0
- package/ui/locales/es.json +1 -0
- package/ui/locales/source.json +4 -0
- package/ui/localization.js +10 -0
- package/ui/pip_button.js +22 -120
- package/ui/remote_button.js +203 -0
- package/ui/resolution_selection.js +47 -10
- package/ui/seek_bar.js +296 -3
- package/ui/text_selection.js +2 -1
- package/ui/ui.js +11 -4
- package/demo/common/message_ids.js +0 -309
- package/demo/locales/en.json +0 -288
- package/demo/locales/source.json +0 -1146
- package/externs/mux.js +0 -69
- package/lib/lcevc/lcevc_dil.js +0 -152
- package/lib/routing/node.js +0 -23
- package/lib/routing/payload.js +0 -43
- package/lib/routing/walker.js +0 -587
- package/lib/transmuxer/muxjs_transmuxer.js +0 -242
- package/test/routing/walker_unit.js +0 -504
- package/test/transmuxer/muxjs_transmuxer_integration.js +0 -177
|
@@ -34,16 +34,9 @@ declare namespace shaka {
|
|
|
34
34
|
*/
|
|
35
35
|
addThumbnailsTrack (uri : string , mimeType ? : string ) : Promise < shaka.extern.Track > ;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* Calling <code>attach</code> with <code>initializedMediaSource=true</code>
|
|
41
|
-
* will tell the player to take the initial load step and initialize media
|
|
42
|
-
* source.
|
|
43
|
-
* <p>
|
|
44
|
-
* Calls to <code>attach</code> will interrupt any in-progress calls to
|
|
45
|
-
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
|
|
46
|
-
* <code>detach</code>, or <code>unload</code>.
|
|
37
|
+
* Attaches the player to a media element.
|
|
38
|
+
* If the player was already attached to a media element, first detaches from
|
|
39
|
+
* that media element.
|
|
47
40
|
*/
|
|
48
41
|
attach (mediaElement : HTMLMediaElement , initializeMediaSource ? : boolean ) : Promise < any > ;
|
|
49
42
|
/**
|
|
@@ -81,21 +74,11 @@ declare namespace shaka {
|
|
|
81
74
|
*/
|
|
82
75
|
destroy ( ) : Promise < any > ;
|
|
83
76
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* <li>attached, this will release the media element,
|
|
88
|
-
* <li>loading, this will abort loading, unload, and release the media
|
|
89
|
-
* element,
|
|
90
|
-
* <li>playing content, this will stop playback, unload, and release the
|
|
91
|
-
* media element.
|
|
92
|
-
* </ul>
|
|
93
|
-
* <p>
|
|
94
|
-
* Calls to <code>detach</code> will interrupt any in-progress calls to
|
|
95
|
-
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
|
|
96
|
-
* <code>detach</code>, or <code>unload</code>.
|
|
77
|
+
* Detach the player from the current media element. Leaves the player in a
|
|
78
|
+
* state where it cannot play media, until it has been attached to something
|
|
79
|
+
* else.
|
|
97
80
|
*/
|
|
98
|
-
detach ( ) : Promise < any > ;
|
|
81
|
+
detach (keepAdManager ? : boolean ) : Promise < any > ;
|
|
99
82
|
/**
|
|
100
83
|
* Get the drm info used to initialize EME. If EME is not being used, this
|
|
101
84
|
* will return <code>null</code>. If the player is idle or has not initialized
|
|
@@ -111,6 +94,11 @@ declare namespace shaka {
|
|
|
111
94
|
* Ad Insertion functionality.
|
|
112
95
|
*/
|
|
113
96
|
getAdManager ( ) : shaka.extern.IAdManager | null ;
|
|
97
|
+
/**
|
|
98
|
+
* Returns Thumbnail objects for each thumbnail for a given image track ID.
|
|
99
|
+
* If the player has not loaded content, this will return a null.
|
|
100
|
+
*/
|
|
101
|
+
getAllThumbnails (trackId : number ) : Promise < shaka.extern.Thumbnail [] | null > ;
|
|
114
102
|
/**
|
|
115
103
|
* Get the uri to the asset that the player has loaded. If the player has not
|
|
116
104
|
* loaded content, this will return <code>null</code>.
|
|
@@ -290,16 +278,15 @@ declare namespace shaka {
|
|
|
290
278
|
*/
|
|
291
279
|
keySystem ( ) : string ;
|
|
292
280
|
/**
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
* a call to <code>attach</code> must have succeeded.
|
|
296
|
-
* <p>
|
|
297
|
-
* Calls to <code>load</code> will interrupt any in-progress calls to
|
|
298
|
-
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
|
|
299
|
-
* <code>detach</code>, or <code>unload</code>.
|
|
281
|
+
* Loads a new stream.
|
|
282
|
+
* If another stream was already playing, first unloads that stream.
|
|
300
283
|
* @param startTime When <code>startTime</code> is <code>null</code> or <code>undefined</code>, playback will start at the default start time (0 for VOD and liveEdge for LIVE).
|
|
301
284
|
*/
|
|
302
|
-
load (assetUri : string , startTime ? : number | null , mimeType ? : string ) : Promise < any > ;
|
|
285
|
+
load (assetUri : string , startTime ? : number | null , mimeType ? : string | null ) : Promise < any > ;
|
|
286
|
+
/**
|
|
287
|
+
* Releases all of the mutexes of the player. Meant for use by the tests.
|
|
288
|
+
*/
|
|
289
|
+
releaseAllMutexes ( ) : any ;
|
|
303
290
|
/**
|
|
304
291
|
* Reset configuration to default.
|
|
305
292
|
*/
|
|
@@ -318,7 +305,8 @@ declare namespace shaka {
|
|
|
318
305
|
retryStreaming (retryDelaySeconds ? : number ) : boolean ;
|
|
319
306
|
/**
|
|
320
307
|
* Get the range of time (in seconds) that seeking is allowed. If the player
|
|
321
|
-
* has not loaded content, this will return a range
|
|
308
|
+
* has not loaded content and the manifest is HLS, this will return a range
|
|
309
|
+
* from 0 to 0.
|
|
322
310
|
*/
|
|
323
311
|
seekRange ( ) : shaka.extern.BufferedRange ;
|
|
324
312
|
/**
|
|
@@ -397,20 +385,9 @@ declare namespace shaka {
|
|
|
397
385
|
*/
|
|
398
386
|
trickPlay (rate : number ) : any ;
|
|
399
387
|
/**
|
|
400
|
-
*
|
|
401
|
-
* <ul>
|
|
402
|
-
* <li>detached (when it does not have a media element),
|
|
403
|
-
* <li>attached (when it has a media element and
|
|
404
|
-
* <code>initializedMediaSource=false</code>)
|
|
405
|
-
* <li>media source initialized (when it has a media element and
|
|
406
|
-
* <code>initializedMediaSource=true</code>)
|
|
407
|
-
* </ul>
|
|
408
|
-
* <p>
|
|
409
|
-
* Calls to <code>unload</code> will interrupt any in-progress calls to
|
|
410
|
-
* <code>load</code> but cannot interrupt calls to <code>attach</code>,
|
|
411
|
-
* <code>detach</code>, or <code>unload</code>.
|
|
388
|
+
* Unloads the currently playing stream, if any.
|
|
412
389
|
*/
|
|
413
|
-
unload (initializeMediaSource ? : boolean ) : Promise < any > ;
|
|
390
|
+
unload (initializeMediaSource ? : boolean , keepAdManager ? : boolean ) : Promise < any > ;
|
|
414
391
|
/**
|
|
415
392
|
* Provides a way to update the stream start position during the media loading
|
|
416
393
|
* process. Can for example be called from the <code>manifestparsed</code>
|
|
@@ -479,7 +456,7 @@ declare namespace shaka.Player {
|
|
|
479
456
|
declare namespace shaka.abr {
|
|
480
457
|
class SimpleAbrManager implements shaka.extern.AbrManager , shaka.util.IReleasable {
|
|
481
458
|
private noStructuralTyping_shaka_abr_SimpleAbrManager : any;
|
|
482
|
-
chooseVariant ( ) :
|
|
459
|
+
chooseVariant (preferFastSwitching ? : boolean ) : shaka.extern.Variant ;
|
|
483
460
|
configure (config : any ) : any ;
|
|
484
461
|
disable ( ) : any ;
|
|
485
462
|
enable ( ) : any ;
|
|
@@ -487,7 +464,7 @@ declare namespace shaka.abr {
|
|
|
487
464
|
init (switchCallback : any ) : any ;
|
|
488
465
|
playbackRateChanged (rate : any ) : any ;
|
|
489
466
|
release ( ) : any ;
|
|
490
|
-
segmentDownloaded (deltaTimeMs : any , numBytes : any ) : any ;
|
|
467
|
+
segmentDownloaded (deltaTimeMs : any , numBytes : any , allowSwitch : any ) : any ;
|
|
491
468
|
setMediaElement (mediaElement : any ) : any ;
|
|
492
469
|
setVariants (variants : any ) : any ;
|
|
493
470
|
stop ( ) : any ;
|
|
@@ -501,17 +478,21 @@ declare namespace shaka.ads {
|
|
|
501
478
|
class AdManager extends shaka.util.FakeEventTarget implements shaka.extern.IAdManager , shaka.util.IReleasable {
|
|
502
479
|
private noStructuralTyping_shaka_ads_AdManager : any;
|
|
503
480
|
configure (config : any ) : any ;
|
|
481
|
+
getCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
504
482
|
getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
505
483
|
getStats ( ) : shaka.extern.AdsStats ;
|
|
506
484
|
initClientSide (adContainer : any , video : any , adsRenderingSettings : any ) : any ;
|
|
485
|
+
initMediaTailor (adContainer : any , networkingEngine : any , video : any ) : any ;
|
|
507
486
|
initServerSide (adContainer : any , video : any ) : any ;
|
|
508
487
|
onAssetUnload ( ) : any ;
|
|
509
488
|
onCueMetadataChange (value : any ) : any ;
|
|
510
489
|
onDashTimedMetadata (region : any ) : any ;
|
|
511
490
|
onHlsTimedMetadata (metadata : any , timestamp : any ) : any ;
|
|
491
|
+
onManifestUpdated (isLive : any ) : any ;
|
|
512
492
|
release ( ) : any ;
|
|
513
493
|
replaceServerSideAdTagParameters (adTagParameters : any ) : any ;
|
|
514
494
|
requestClientSideAds (imaRequest : any ) : any ;
|
|
495
|
+
requestMediaTailorStream (url : string , adsParams : object | null , backupUrl ? : string ) : Promise < string > ;
|
|
515
496
|
requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
|
|
516
497
|
setLocale (locale : any ) : any ;
|
|
517
498
|
updateClientSideAdsRenderingSettings (adsRenderingSettings : any ) : any ;
|
|
@@ -684,6 +665,43 @@ declare namespace shaka.ads {
|
|
|
684
665
|
}
|
|
685
666
|
}
|
|
686
667
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
668
|
+
declare namespace shaka.ads {
|
|
669
|
+
class MediaTailorAd implements shaka.extern.IAd {
|
|
670
|
+
private noStructuralTyping_shaka_ads_MediaTailorAd : any;
|
|
671
|
+
constructor (mediaTailorAd : mediaTailor.Ad , adPosition : number , totalAds : number , isLinear : any , video : HTMLMediaElement | null ) ;
|
|
672
|
+
canSkipNow ( ) : any ;
|
|
673
|
+
getAdId ( ) : any ;
|
|
674
|
+
getAdvertiserName ( ) : any ;
|
|
675
|
+
getCreativeAdId ( ) : any ;
|
|
676
|
+
getDescription ( ) : any ;
|
|
677
|
+
getDuration ( ) : any ;
|
|
678
|
+
getMediaUrl ( ) : any ;
|
|
679
|
+
getMinSuggestedDuration ( ) : any ;
|
|
680
|
+
getPodIndex ( ) : any ;
|
|
681
|
+
getPositionInSequence ( ) : any ;
|
|
682
|
+
getRemainingTime ( ) : any ;
|
|
683
|
+
getSequenceLength ( ) : any ;
|
|
684
|
+
getTimeOffset ( ) : any ;
|
|
685
|
+
getTimeUntilSkippable ( ) : any ;
|
|
686
|
+
getTitle ( ) : any ;
|
|
687
|
+
getVastMediaBitrate ( ) : any ;
|
|
688
|
+
getVastMediaHeight ( ) : any ;
|
|
689
|
+
getVastMediaWidth ( ) : any ;
|
|
690
|
+
getVolume ( ) : any ;
|
|
691
|
+
isLinear ( ) : any ;
|
|
692
|
+
isMuted ( ) : any ;
|
|
693
|
+
isPaused ( ) : any ;
|
|
694
|
+
isSkippable ( ) : any ;
|
|
695
|
+
pause ( ) : any ;
|
|
696
|
+
play ( ) : any ;
|
|
697
|
+
release ( ) : any ;
|
|
698
|
+
resize (width : any , height : any ) : any ;
|
|
699
|
+
setMuted (muted : any ) : any ;
|
|
700
|
+
setVolume (volume : any ) : any ;
|
|
701
|
+
skip ( ) : any ;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
687
705
|
declare namespace shaka.ads {
|
|
688
706
|
class ServerSideAd implements shaka.extern.IAd {
|
|
689
707
|
private noStructuralTyping_shaka_ads_ServerSideAd : any;
|
|
@@ -822,6 +840,7 @@ declare namespace shaka.cea {
|
|
|
822
840
|
clear ( ) : any ;
|
|
823
841
|
decode ( ) : shaka.extern.ICaptionDecoder.ClosedCaption [] ;
|
|
824
842
|
extract (userDataSeiMessage : Uint8Array , pts : number ) : any ;
|
|
843
|
+
getStreams ( ) : string [] ;
|
|
825
844
|
}
|
|
826
845
|
}
|
|
827
846
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
@@ -856,14 +875,23 @@ declare namespace shaka.config {
|
|
|
856
875
|
}
|
|
857
876
|
}
|
|
858
877
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
878
|
+
declare namespace shaka.config {
|
|
879
|
+
enum CodecSwitchingStrategy {
|
|
880
|
+
RELOAD = 'reload' ,
|
|
881
|
+
SMOOTH = 'smooth' ,
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
859
885
|
declare namespace shaka.dash {
|
|
860
886
|
/**
|
|
861
887
|
* Creates a new DASH parser.
|
|
862
888
|
*/
|
|
863
889
|
class DashParser implements shaka.extern.ManifestParser {
|
|
864
890
|
private noStructuralTyping_shaka_dash_DashParser : any;
|
|
891
|
+
banLocation (uri : any ) : any ;
|
|
865
892
|
configure (config : any ) : any ;
|
|
866
893
|
onExpirationUpdated (sessionId : any , expiration : any ) : any ;
|
|
894
|
+
onInitialVariantChosen (variant : any ) : any ;
|
|
867
895
|
start (uri : any , playerInterface : any ) : any ;
|
|
868
896
|
stop ( ) : any ;
|
|
869
897
|
update ( ) : any ;
|
|
@@ -900,8 +928,10 @@ declare namespace shaka.hls {
|
|
|
900
928
|
*/
|
|
901
929
|
class HlsParser implements shaka.extern.ManifestParser {
|
|
902
930
|
private noStructuralTyping_shaka_hls_HlsParser : any;
|
|
931
|
+
banLocation (uri : any ) : any ;
|
|
903
932
|
configure (config : any ) : any ;
|
|
904
933
|
onExpirationUpdated (sessionId : any , expiration : any ) : any ;
|
|
934
|
+
onInitialVariantChosen (variant : any ) : any ;
|
|
905
935
|
start (uri : any , playerInterface : any ) : any ;
|
|
906
936
|
stop ( ) : any ;
|
|
907
937
|
update ( ) : any ;
|
|
@@ -909,11 +939,11 @@ declare namespace shaka.hls {
|
|
|
909
939
|
}
|
|
910
940
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
911
941
|
declare namespace shaka.lcevc {
|
|
912
|
-
class
|
|
913
|
-
private
|
|
914
|
-
constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null ,
|
|
942
|
+
class Dec implements shaka.util.IReleasable {
|
|
943
|
+
private noStructuralTyping_shaka_lcevc_Dec : any;
|
|
944
|
+
constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , lcevcConfig : shaka.extern.LcevcConfiguration ) ;
|
|
915
945
|
/**
|
|
916
|
-
* Close LCEVC
|
|
946
|
+
* Close LCEVC Decoder.
|
|
917
947
|
*/
|
|
918
948
|
release ( ) : any ;
|
|
919
949
|
}
|
|
@@ -958,7 +988,7 @@ declare namespace shaka.media {
|
|
|
958
988
|
*/
|
|
959
989
|
class InitSegmentReference {
|
|
960
990
|
private noStructuralTyping_shaka_media_InitSegmentReference : any;
|
|
961
|
-
constructor (uris : ( ) => string [] , startByte : number , endByte : number | null , mediaQuality ? : null | shaka.extern.MediaQualityInfo , timescale ? : null | number , segmentData ? : null | ArrayBuffer | ArrayBufferView , aes128Key ? : shaka.extern.
|
|
991
|
+
constructor (uris : ( ) => string [] , startByte : number , endByte : number | null , mediaQuality ? : null | shaka.extern.MediaQualityInfo , timescale ? : null | number , segmentData ? : null | ArrayBuffer | ArrayBufferView , aes128Key ? : shaka.extern.aes128Key | null ) ;
|
|
962
992
|
/**
|
|
963
993
|
* Returns the offset from the start of the resource to the end of the
|
|
964
994
|
* segment, inclusive. A value of null indicates that the segment extends
|
|
@@ -1167,7 +1197,7 @@ declare namespace shaka.media {
|
|
|
1167
1197
|
}
|
|
1168
1198
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
1169
1199
|
declare namespace shaka.media.PresentationTimeline {
|
|
1170
|
-
type TimeRange = { end : number , start : number , unscaledStart : number } ;
|
|
1200
|
+
type TimeRange = { end : number , partialSegments : number , segmentPosition : number , start : number , unscaledStart : number } ;
|
|
1171
1201
|
}
|
|
1172
1202
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
1173
1203
|
declare namespace shaka.media {
|
|
@@ -1285,7 +1315,7 @@ declare namespace shaka.media {
|
|
|
1285
1315
|
*/
|
|
1286
1316
|
class SegmentReference {
|
|
1287
1317
|
private noStructuralTyping_shaka_media_SegmentReference : any;
|
|
1288
|
-
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] , tilesLayout ? : string | null , tileDuration ? : number | null , syncTime ? : number | null , status ? : shaka.media.SegmentReference.Status ,
|
|
1318
|
+
constructor (startTime : number , endTime : number , uris : ( ) => string [] , startByte : number , endByte : number | null , initSegmentReference : shaka.media.InitSegmentReference | null , timestampOffset : number , appendWindowStart : number , appendWindowEnd : number , partialReferences ? : shaka.media.SegmentReference [] , tilesLayout ? : string | null , tileDuration ? : number | null , syncTime ? : number | null , status ? : shaka.media.SegmentReference.Status , aes128Key ? : shaka.extern.aes128Key | null , allPartialSegments ? : boolean ) ;
|
|
1289
1319
|
/**
|
|
1290
1320
|
* Returns the offset from the start of the resource to the end of the
|
|
1291
1321
|
* segment, inclusive. A value of null indicates that the segment extends to
|
|
@@ -1334,6 +1364,14 @@ declare namespace shaka.media {
|
|
|
1334
1364
|
* Returns true if the segment is independent.
|
|
1335
1365
|
*/
|
|
1336
1366
|
isIndependent ( ) : boolean ;
|
|
1367
|
+
/**
|
|
1368
|
+
* Returns true if reference as being the last part of the full segment.
|
|
1369
|
+
*/
|
|
1370
|
+
isLastPartial ( ) : boolean ;
|
|
1371
|
+
/**
|
|
1372
|
+
* Returns true if the segment is partial.
|
|
1373
|
+
*/
|
|
1374
|
+
isPartial ( ) : boolean ;
|
|
1337
1375
|
/**
|
|
1338
1376
|
* Returns true if the segment is preloaded.
|
|
1339
1377
|
*/
|
|
@@ -1344,10 +1382,18 @@ declare namespace shaka.media {
|
|
|
1344
1382
|
* latency streaming with chunked data.
|
|
1345
1383
|
*/
|
|
1346
1384
|
markAsByterangeOptimization ( ) : any ;
|
|
1385
|
+
/**
|
|
1386
|
+
* Mark the reference as being the last part of the full segment
|
|
1387
|
+
*/
|
|
1388
|
+
markAsLastPartial ( ) : any ;
|
|
1347
1389
|
/**
|
|
1348
1390
|
* Mark the reference as non-independent.
|
|
1349
1391
|
*/
|
|
1350
1392
|
markAsNonIndependent ( ) : any ;
|
|
1393
|
+
/**
|
|
1394
|
+
* Mark the reference as partial.
|
|
1395
|
+
*/
|
|
1396
|
+
markAsPartial ( ) : any ;
|
|
1351
1397
|
/**
|
|
1352
1398
|
* Mark the reference as preload.
|
|
1353
1399
|
*/
|
|
@@ -1399,8 +1445,10 @@ declare namespace shaka.mss {
|
|
|
1399
1445
|
*/
|
|
1400
1446
|
class MssParser implements shaka.extern.ManifestParser {
|
|
1401
1447
|
private noStructuralTyping_shaka_mss_MssParser : any;
|
|
1448
|
+
banLocation (uri : any ) : any ;
|
|
1402
1449
|
configure (config : any ) : any ;
|
|
1403
1450
|
onExpirationUpdated (sessionId : any , expiration : any ) : any ;
|
|
1451
|
+
onInitialVariantChosen (variant : any ) : any ;
|
|
1404
1452
|
start (uri : any , playerInterface : any ) : any ;
|
|
1405
1453
|
stop ( ) : any ;
|
|
1406
1454
|
update ( ) : any ;
|
|
@@ -1447,7 +1495,7 @@ declare namespace shaka.net {
|
|
|
1447
1495
|
* handle the actual request. A plugin is registered using registerScheme.
|
|
1448
1496
|
* Each scheme has at most one plugin to handle the request.
|
|
1449
1497
|
*/
|
|
1450
|
-
constructor (onProgressUpdated ? : (a : number , b : number ) => any , onHeadersReceived ? : shaka.net.NetworkingEngine.OnHeadersReceived , onDownloadFailed ? : shaka.net.NetworkingEngine.OnDownloadFailed , onRequest ? : shaka.net.NetworkingEngine.OnRequest ) ;
|
|
1498
|
+
constructor (onProgressUpdated ? : (a : number , b : number , c : boolean ) => any , onHeadersReceived ? : shaka.net.NetworkingEngine.OnHeadersReceived , onDownloadFailed ? : shaka.net.NetworkingEngine.OnDownloadFailed , onRequest ? : shaka.net.NetworkingEngine.OnRequest , onRetry ? : shaka.net.NetworkingEngine.OnRetry ) ;
|
|
1451
1499
|
/**
|
|
1452
1500
|
* Clears all request filters.
|
|
1453
1501
|
*/
|
|
@@ -1553,6 +1601,10 @@ declare namespace shaka.net.NetworkingEngine {
|
|
|
1553
1601
|
type OnRequest = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Request , c : shaka.extern.RequestContext | undefined ) => any ;
|
|
1554
1602
|
}
|
|
1555
1603
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
1604
|
+
declare namespace shaka.net.NetworkingEngine {
|
|
1605
|
+
type OnRetry = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.RequestContext | undefined , c : string , d : string ) => any ;
|
|
1606
|
+
}
|
|
1607
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
1556
1608
|
declare namespace shaka.net.NetworkingEngine {
|
|
1557
1609
|
/**
|
|
1558
1610
|
* A pending network request. This can track the current progress of the
|
|
@@ -1594,7 +1646,9 @@ declare namespace shaka.net.NetworkingEngine {
|
|
|
1594
1646
|
* Request types. Allows a filter to decide which requests to read/alter.
|
|
1595
1647
|
*/
|
|
1596
1648
|
enum RequestType {
|
|
1649
|
+
ADS = 7.0 ,
|
|
1597
1650
|
APP = 3.0 ,
|
|
1651
|
+
CONTENT_STEERING = 8.0 ,
|
|
1598
1652
|
KEY = 6.0 ,
|
|
1599
1653
|
LICENSE = 2.0 ,
|
|
1600
1654
|
MANIFEST = 0.0 ,
|
|
@@ -2047,6 +2101,11 @@ declare namespace shaka.text {
|
|
|
2047
2101
|
* because nested cues are inline elements.
|
|
2048
2102
|
*/
|
|
2049
2103
|
region : shaka.text.CueRegion | null ;
|
|
2104
|
+
/**
|
|
2105
|
+
* Used to indicate the type of ruby tag that should be used when rendering
|
|
2106
|
+
* the cue. Valid values: ruby, rp, rt.
|
|
2107
|
+
*/
|
|
2108
|
+
rubyTag : string | null ;
|
|
2050
2109
|
/**
|
|
2051
2110
|
* Size of the cue box (in percents), where 0 means "auto".
|
|
2052
2111
|
*/
|
|
@@ -2060,6 +2119,10 @@ declare namespace shaka.text {
|
|
|
2060
2119
|
* Alignment of the text inside the cue box.
|
|
2061
2120
|
*/
|
|
2062
2121
|
textAlign : shaka.text.Cue.textAlign ;
|
|
2122
|
+
/**
|
|
2123
|
+
* Text combine upright as a CSS text-combine-upright value.
|
|
2124
|
+
*/
|
|
2125
|
+
textCombineUpright : string ;
|
|
2063
2126
|
/**
|
|
2064
2127
|
* Text decoration. A combination of underline, overline
|
|
2065
2128
|
* and line through. Empty array means no decoration.
|
|
@@ -2317,7 +2380,7 @@ declare namespace shaka.text {
|
|
|
2317
2380
|
class Mp4TtmlParser implements shaka.extern.TextParser {
|
|
2318
2381
|
private noStructuralTyping_shaka_text_Mp4TtmlParser : any;
|
|
2319
2382
|
parseInit (data : any ) : any ;
|
|
2320
|
-
parseMedia (data : any , time : any ) : any ;
|
|
2383
|
+
parseMedia (data : any , time : any , uri : any ) : any ;
|
|
2321
2384
|
setManifestType (manifestType : any ) : any ;
|
|
2322
2385
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2323
2386
|
}
|
|
@@ -2365,7 +2428,7 @@ declare namespace shaka.text {
|
|
|
2365
2428
|
class SrtTextParser implements shaka.extern.TextParser {
|
|
2366
2429
|
private noStructuralTyping_shaka_text_SrtTextParser : any;
|
|
2367
2430
|
parseInit (data : any ) : any ;
|
|
2368
|
-
parseMedia (data : any , time : any ) : any ;
|
|
2431
|
+
parseMedia (data : any , time : any , uri : any ) : any ;
|
|
2369
2432
|
setManifestType (manifestType : any ) : any ;
|
|
2370
2433
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2371
2434
|
/**
|
|
@@ -2389,6 +2452,20 @@ declare namespace shaka.text {
|
|
|
2389
2452
|
}
|
|
2390
2453
|
}
|
|
2391
2454
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
2455
|
+
declare namespace shaka.text {
|
|
2456
|
+
/**
|
|
2457
|
+
* A stub text displayer plugin that does nothing
|
|
2458
|
+
*/
|
|
2459
|
+
class StubTextDisplayer implements shaka.extern.TextDisplayer {
|
|
2460
|
+
private noStructuralTyping_shaka_text_StubTextDisplayer : any;
|
|
2461
|
+
append (cues : any ) : any ;
|
|
2462
|
+
destroy ( ) : any ;
|
|
2463
|
+
isTextVisible ( ) : any ;
|
|
2464
|
+
remove (start : any , end : any ) : any ;
|
|
2465
|
+
setTextVisibility (on : any ) : any ;
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
2392
2469
|
declare namespace shaka.text {
|
|
2393
2470
|
class TextEngine implements shaka.util.IDestroyable {
|
|
2394
2471
|
private noStructuralTyping_shaka_text_TextEngine : any;
|
|
@@ -2404,7 +2481,7 @@ declare namespace shaka.text {
|
|
|
2404
2481
|
class TtmlTextParser implements shaka.extern.TextParser {
|
|
2405
2482
|
private noStructuralTyping_shaka_text_TtmlTextParser : any;
|
|
2406
2483
|
parseInit (data : any ) : any ;
|
|
2407
|
-
parseMedia (data : any , time : any ) : any ;
|
|
2484
|
+
parseMedia (data : any , time : any , uri : any ) : any ;
|
|
2408
2485
|
setManifestType (manifestType : any ) : any ;
|
|
2409
2486
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2410
2487
|
}
|
|
@@ -2452,7 +2529,7 @@ declare namespace shaka.transmuxer {
|
|
|
2452
2529
|
constructor (mimeType : string ) ;
|
|
2453
2530
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2454
2531
|
destroy ( ) : any ;
|
|
2455
|
-
|
|
2532
|
+
getOriginalMimeType ( ) : any ;
|
|
2456
2533
|
/**
|
|
2457
2534
|
* Check if the mime type and the content type is supported.
|
|
2458
2535
|
*/
|
|
@@ -2467,7 +2544,7 @@ declare namespace shaka.transmuxer {
|
|
|
2467
2544
|
constructor (mimeType : string ) ;
|
|
2468
2545
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2469
2546
|
destroy ( ) : any ;
|
|
2470
|
-
|
|
2547
|
+
getOriginalMimeType ( ) : any ;
|
|
2471
2548
|
/**
|
|
2472
2549
|
* Check if the mime type and the content type is supported.
|
|
2473
2550
|
*/
|
|
@@ -2482,7 +2559,7 @@ declare namespace shaka.transmuxer {
|
|
|
2482
2559
|
constructor (mimeType : string ) ;
|
|
2483
2560
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2484
2561
|
destroy ( ) : any ;
|
|
2485
|
-
|
|
2562
|
+
getOriginalMimeType ( ) : any ;
|
|
2486
2563
|
/**
|
|
2487
2564
|
* Check if the mime type and the content type is supported.
|
|
2488
2565
|
*/
|
|
@@ -2497,7 +2574,7 @@ declare namespace shaka.transmuxer {
|
|
|
2497
2574
|
constructor (mimeType : string ) ;
|
|
2498
2575
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2499
2576
|
destroy ( ) : any ;
|
|
2500
|
-
|
|
2577
|
+
getOriginalMimeType ( ) : any ;
|
|
2501
2578
|
/**
|
|
2502
2579
|
* Check if the mime type and the content type is supported.
|
|
2503
2580
|
*/
|
|
@@ -2512,12 +2589,12 @@ declare namespace shaka.transmuxer {
|
|
|
2512
2589
|
constructor (mimeType : string ) ;
|
|
2513
2590
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2514
2591
|
destroy ( ) : any ;
|
|
2515
|
-
|
|
2592
|
+
getOriginalMimeType ( ) : any ;
|
|
2516
2593
|
/**
|
|
2517
2594
|
* Check if the mime type and the content type is supported.
|
|
2518
2595
|
*/
|
|
2519
2596
|
isSupported (mimeType : string , contentType ? : string ) : boolean ;
|
|
2520
|
-
transmux (data : any ) : any ;
|
|
2597
|
+
transmux (data : any , stream : any , reference : any , duration : any , contentType : any ) : any ;
|
|
2521
2598
|
}
|
|
2522
2599
|
}
|
|
2523
2600
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
@@ -2527,7 +2604,7 @@ declare namespace shaka.transmuxer {
|
|
|
2527
2604
|
constructor (mimeType : string ) ;
|
|
2528
2605
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2529
2606
|
destroy ( ) : any ;
|
|
2530
|
-
|
|
2607
|
+
getOriginalMimeType ( ) : any ;
|
|
2531
2608
|
/**
|
|
2532
2609
|
* Check if the mime type and the content type is supported.
|
|
2533
2610
|
*/
|
|
@@ -2536,21 +2613,6 @@ declare namespace shaka.transmuxer {
|
|
|
2536
2613
|
}
|
|
2537
2614
|
}
|
|
2538
2615
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
2539
|
-
declare namespace shaka.transmuxer {
|
|
2540
|
-
class MuxjsTransmuxer implements shaka.extern.Transmuxer {
|
|
2541
|
-
private noStructuralTyping_shaka_transmuxer_MuxjsTransmuxer : any;
|
|
2542
|
-
constructor (mimeType : string ) ;
|
|
2543
|
-
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2544
|
-
destroy ( ) : any ;
|
|
2545
|
-
getOrginalMimeType ( ) : any ;
|
|
2546
|
-
/**
|
|
2547
|
-
* Check if the mime type and the content type is supported.
|
|
2548
|
-
*/
|
|
2549
|
-
isSupported (mimeType : string , contentType ? : string ) : boolean ;
|
|
2550
|
-
transmux (data : any ) : any ;
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
2554
2616
|
declare namespace shaka.transmuxer {
|
|
2555
2617
|
class TransmuxerEngine implements shaka.util.IDestroyable {
|
|
2556
2618
|
private noStructuralTyping_shaka_transmuxer_TransmuxerEngine : any;
|
|
@@ -2586,7 +2648,7 @@ declare namespace shaka.transmuxer {
|
|
|
2586
2648
|
constructor (mimeType : string ) ;
|
|
2587
2649
|
convertCodecs (contentType : any , mimeType : any ) : any ;
|
|
2588
2650
|
destroy ( ) : any ;
|
|
2589
|
-
|
|
2651
|
+
getOriginalMimeType ( ) : any ;
|
|
2590
2652
|
/**
|
|
2591
2653
|
* Check if the mime type and the content type is supported.
|
|
2592
2654
|
*/
|
|
@@ -2681,6 +2743,8 @@ declare namespace shaka.ui {
|
|
|
2681
2743
|
isFullScreenEnabled ( ) : boolean ;
|
|
2682
2744
|
isFullScreenSupported ( ) : boolean ;
|
|
2683
2745
|
isOpaque ( ) : boolean ;
|
|
2746
|
+
isPiPAllowed ( ) : boolean ;
|
|
2747
|
+
isPiPEnabled ( ) : boolean ;
|
|
2684
2748
|
isSeeking ( ) : boolean ;
|
|
2685
2749
|
/**
|
|
2686
2750
|
* Used by the application to notify the controls that a load operation is
|
|
@@ -2702,6 +2766,7 @@ declare namespace shaka.ui {
|
|
|
2702
2766
|
setSeeking (seeking : boolean ) : any ;
|
|
2703
2767
|
showAdUI ( ) : any ;
|
|
2704
2768
|
toggleFullScreen ( ) : any ;
|
|
2769
|
+
togglePiP ( ) : any ;
|
|
2705
2770
|
static registerElement (name : string , factory : shaka.extern.IUIElement.Factory ) : any ;
|
|
2706
2771
|
static registerSeekBar (factory : shaka.extern.IUISeekBar.Factory ) : any ;
|
|
2707
2772
|
}
|
|
@@ -2756,6 +2821,10 @@ declare namespace shaka.ui {
|
|
|
2756
2821
|
* @param locales The locale codes for the requested locales in order of preference.
|
|
2757
2822
|
*/
|
|
2758
2823
|
changeLocale (locales : Iterable < string > ) : any ;
|
|
2824
|
+
/**
|
|
2825
|
+
* The locales currently used. An empty set means "no preference".
|
|
2826
|
+
*/
|
|
2827
|
+
getCurrentLocales ( ) : Set < string > ;
|
|
2759
2828
|
/**
|
|
2760
2829
|
* Insert a set of localizations for a single locale. This will amend the
|
|
2761
2830
|
* existing localizations for the given locale.
|
|
@@ -2976,6 +3045,13 @@ declare namespace shaka.ui {
|
|
|
2976
3045
|
}
|
|
2977
3046
|
}
|
|
2978
3047
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
3048
|
+
declare namespace shaka.ui {
|
|
3049
|
+
class RemoteButton extends shaka.ui.Element {
|
|
3050
|
+
private noStructuralTyping_shaka_ui_RemoteButton : any;
|
|
3051
|
+
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
2979
3055
|
declare namespace shaka.ui {
|
|
2980
3056
|
class ResolutionSelection extends shaka.ui.SettingsMenu {
|
|
2981
3057
|
private noStructuralTyping_shaka_ui_ResolutionSelection : any;
|
|
@@ -3106,6 +3182,15 @@ declare namespace shaka.util {
|
|
|
3106
3182
|
* Creates a DataView over the given buffer.
|
|
3107
3183
|
*/
|
|
3108
3184
|
static toDataView (buffer : ArrayBuffer | ArrayBufferView , offset ? : number , length ? : number ) : DataView ;
|
|
3185
|
+
/**
|
|
3186
|
+
* Creates a new Uint16Array view on the same buffer. This clamps the values
|
|
3187
|
+
* to be within the same view (i.e. you can't use this to move past the end
|
|
3188
|
+
* of the view, even if the underlying buffer is larger). However, you can
|
|
3189
|
+
* pass a negative offset to access the data before the view.
|
|
3190
|
+
* @param offset The offset from the beginning of this data's view to start the new view at.
|
|
3191
|
+
* @param length The byte length of the new view.
|
|
3192
|
+
*/
|
|
3193
|
+
static toUint16 (data : ArrayBuffer | ArrayBufferView , offset ? : number , length ? : number ) : Uint16Array ;
|
|
3109
3194
|
/**
|
|
3110
3195
|
* Creates a new Uint8Array view on the same buffer. This clamps the values
|
|
3111
3196
|
* to be within the same view (i.e. you can't use this to move past the end
|
|
@@ -3253,6 +3338,8 @@ declare namespace shaka.util.Error {
|
|
|
3253
3338
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
3254
3339
|
declare namespace shaka.util.Error {
|
|
3255
3340
|
enum Code {
|
|
3341
|
+
AES_128_INVALID_IV_LENGTH = 4048.0 ,
|
|
3342
|
+
AES_128_INVALID_KEY_LENGTH = 4049.0 ,
|
|
3256
3343
|
ALREADY_CASTING = 8002.0 ,
|
|
3257
3344
|
ATTEMPTS_EXHAUSTED = 1010.0 ,
|
|
3258
3345
|
BAD_ENCODING = 2004.0 ,
|
|
@@ -3261,7 +3348,6 @@ declare namespace shaka.util.Error {
|
|
|
3261
3348
|
CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM = 4033.0 ,
|
|
3262
3349
|
CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS = 2012.0 ,
|
|
3263
3350
|
CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM = 4045.0 ,
|
|
3264
|
-
CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS = 2016.0 ,
|
|
3265
3351
|
CANNOT_STORE_LIVE_OFFLINE = 9005.0 ,
|
|
3266
3352
|
CAST_API_UNAVAILABLE = 8000.0 ,
|
|
3267
3353
|
CAST_CANCELED_BY_USER = 8004.0 ,
|
|
@@ -3274,6 +3360,7 @@ declare namespace shaka.util.Error {
|
|
|
3274
3360
|
CS_AD_MANAGER_NOT_INITIALIZED = 10001.0 ,
|
|
3275
3361
|
CS_IMA_SDK_MISSING = 10000.0 ,
|
|
3276
3362
|
CURRENT_DAI_REQUEST_NOT_FINISHED = 10004.0 ,
|
|
3363
|
+
DASH_CONFLICTING_AES_128 = 4050.0 ,
|
|
3277
3364
|
DASH_CONFLICTING_KEY_IDS = 4010.0 ,
|
|
3278
3365
|
DASH_DUPLICATE_REPRESENTATION_ID = 4018.0 ,
|
|
3279
3366
|
DASH_EMPTY_ADAPTATION_SET = 4003.0 ,
|
|
@@ -3283,6 +3370,7 @@ declare namespace shaka.util.Error {
|
|
|
3283
3370
|
DASH_NO_COMMON_KEY_SYSTEM = 4008.0 ,
|
|
3284
3371
|
DASH_NO_SEGMENT_INFO = 4002.0 ,
|
|
3285
3372
|
DASH_PSSH_BAD_ENCODING = 4007.0 ,
|
|
3373
|
+
DASH_UNSUPPORTED_AES_128 = 4051.0 ,
|
|
3286
3374
|
DASH_UNSUPPORTED_CONTAINER = 4006.0 ,
|
|
3287
3375
|
DASH_UNSUPPORTED_XLINK_ACTUATE = 4027.0 ,
|
|
3288
3376
|
DASH_WEBM_MISSING_INIT = 4005.0 ,
|
|
@@ -3298,8 +3386,6 @@ declare namespace shaka.util.Error {
|
|
|
3298
3386
|
FAILED_TO_CREATE_CDM = 6002.0 ,
|
|
3299
3387
|
FAILED_TO_CREATE_SESSION = 6005.0 ,
|
|
3300
3388
|
FAILED_TO_GENERATE_LICENSE_REQUEST = 6006.0 ,
|
|
3301
|
-
HLS_AES_128_INVALID_IV_LENGTH = 4043.0 ,
|
|
3302
|
-
HLS_AES_128_INVALID_KEY_LENGTH = 4044.0 ,
|
|
3303
3389
|
HLS_COULD_NOT_GUESS_CODECS = 4025.0 ,
|
|
3304
3390
|
HLS_INVALID_PLAYLIST_HIERARCHY = 4017.0 ,
|
|
3305
3391
|
HLS_KEYFORMATS_NOT_SUPPORTED = 4026.0 ,
|
|
@@ -3346,6 +3432,7 @@ declare namespace shaka.util.Error {
|
|
|
3346
3432
|
MSS_MISSING_DATA_FOR_TRANSMUXING = 3020.0 ,
|
|
3347
3433
|
MSS_TRANSMUXING_CODEC_UNKNOWN = 3021.0 ,
|
|
3348
3434
|
MSS_TRANSMUXING_FAILED = 3022.0 ,
|
|
3435
|
+
MT_AD_MANAGER_NOT_INITIALIZED = 10005.0 ,
|
|
3349
3436
|
NEW_KEY_OPERATION_NOT_SUPPORTED = 9011.0 ,
|
|
3350
3437
|
NO_CAST_RECEIVERS = 8001.0 ,
|
|
3351
3438
|
NO_INIT_DATA_FOR_OFFLINE = 9007.0 ,
|
|
@@ -3446,7 +3533,7 @@ declare namespace shaka.util.EventManager {
|
|
|
3446
3533
|
declare namespace shaka.util {
|
|
3447
3534
|
class ExpGolomb {
|
|
3448
3535
|
private noStructuralTyping_shaka_util_ExpGolomb : any;
|
|
3449
|
-
constructor (data : Uint8Array ) ;
|
|
3536
|
+
constructor (data : Uint8Array , convertEbsp2rbsp ? : boolean ) ;
|
|
3450
3537
|
}
|
|
3451
3538
|
}
|
|
3452
3539
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
@@ -3925,11 +4012,11 @@ declare namespace shaka.util {
|
|
|
3925
4012
|
/**
|
|
3926
4013
|
* Return the start time for the audio and video
|
|
3927
4014
|
*/
|
|
3928
|
-
getStartTime (
|
|
4015
|
+
getStartTime (contentType : string ) : number | null ;
|
|
3929
4016
|
/**
|
|
3930
4017
|
* Return the audio data
|
|
3931
4018
|
*/
|
|
3932
|
-
getVideoData ( ) : shaka.extern.MPEG_PES [] ;
|
|
4019
|
+
getVideoData (naluProcessing ? : boolean ) : shaka.extern.MPEG_PES [] ;
|
|
3933
4020
|
/**
|
|
3934
4021
|
* Return the video information
|
|
3935
4022
|
*/
|
|
@@ -3952,6 +4039,12 @@ declare namespace shaka.util {
|
|
|
3952
4039
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
3953
4040
|
*/
|
|
3954
4041
|
parseAvcNalus (pes : shaka.extern.MPEG_PES , nextPes ? : shaka.extern.MPEG_PES | null ) : shaka.extern.VideoNalu [] ;
|
|
4042
|
+
/**
|
|
4043
|
+
* Parse AVC and HVC Nalus
|
|
4044
|
+
* The code is based on hls.js
|
|
4045
|
+
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
4046
|
+
*/
|
|
4047
|
+
parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
|
|
3955
4048
|
static Timescale : number ;
|
|
3956
4049
|
/**
|
|
3957
4050
|
* Check if the passed data corresponds to an MPEG2-TS
|
|
@@ -4353,13 +4446,16 @@ declare namespace ಠ_ಠ.clutz {
|
|
|
4353
4446
|
}
|
|
4354
4447
|
}
|
|
4355
4448
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
|
|
4356
|
-
declare namespace
|
|
4449
|
+
declare namespace LCEVCdec {
|
|
4357
4450
|
/**
|
|
4358
|
-
* LCEVC
|
|
4451
|
+
* LCEVC Dec constructor
|
|
4359
4452
|
*/
|
|
4360
|
-
class
|
|
4361
|
-
private
|
|
4362
|
-
|
|
4453
|
+
class LCEVCdec {
|
|
4454
|
+
private noStructuralTyping_LCEVCdec_LCEVCdec : any;
|
|
4455
|
+
/**
|
|
4456
|
+
* LCEVC Dec constructor
|
|
4457
|
+
*/
|
|
4458
|
+
constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , lcevcConfig : shaka.extern.LcevcConfiguration ) ;
|
|
4363
4459
|
/**
|
|
4364
4460
|
* Append the video buffers before they are appended to
|
|
4365
4461
|
* Media Source Extensions SourceBuffer. Here the lcevc data
|
|
@@ -4367,10 +4463,11 @@ declare namespace LcevcDil {
|
|
|
4367
4463
|
* @param data Video Buffer Data.
|
|
4368
4464
|
* @param type Type of Video Buffer Data.
|
|
4369
4465
|
* @param variantId Variant that the fragment belongs to.
|
|
4466
|
+
* @param timestampOffset Timestamp offset for appended segments
|
|
4370
4467
|
*/
|
|
4371
|
-
appendBuffer (data : ArrayBuffer | ArrayBufferView , type : string , variantId : number ) : any ;
|
|
4468
|
+
appendBuffer (data : ArrayBuffer | ArrayBufferView , type : string , variantId : number , timestampOffset : number ) : any ;
|
|
4372
4469
|
/**
|
|
4373
|
-
* Close LCEVC
|
|
4470
|
+
* Close LCEVC DEC
|
|
4374
4471
|
*/
|
|
4375
4472
|
close ( ) : any ;
|
|
4376
4473
|
/**
|
|
@@ -4380,32 +4477,60 @@ declare namespace LcevcDil {
|
|
|
4380
4477
|
setContainerFormat (containerFormat : number ) : any ;
|
|
4381
4478
|
/**
|
|
4382
4479
|
* Set current variant as variantId to the LCEVC decoder
|
|
4383
|
-
* @param autoBufferSwitch is
|
|
4480
|
+
* @param autoBufferSwitch is lcevcDec mode that switches variant when the downloaded buffer from last variant has finished playing and buffers from the new variant starts to play.
|
|
4384
4481
|
*/
|
|
4385
4482
|
setLevelSwitching (variantId : number , autoBufferSwitch : boolean ) : any ;
|
|
4483
|
+
/**
|
|
4484
|
+
* Set streaming Format for LCEVC Data Parsing.
|
|
4485
|
+
* @param streamingFormat container type of the stream.
|
|
4486
|
+
*/
|
|
4487
|
+
setStreamingFormat (streamingFormat : number ) : any ;
|
|
4386
4488
|
}
|
|
4387
4489
|
}
|
|
4388
4490
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
|
|
4389
|
-
declare namespace
|
|
4491
|
+
declare namespace LCEVCdec {
|
|
4492
|
+
/**
|
|
4493
|
+
* The older module interface, for backward compatibility.
|
|
4494
|
+
* Typed to the same interface, but under a different name.
|
|
4495
|
+
*/
|
|
4496
|
+
export import LcevcDil = LCEVCdec.LCEVCdec ;
|
|
4497
|
+
}
|
|
4498
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
|
|
4499
|
+
declare namespace LCEVCdec.SupportObject {
|
|
4390
4500
|
/**
|
|
4391
4501
|
* LCEVC Support CheckList Error if any.
|
|
4392
4502
|
*/
|
|
4393
4503
|
let SupportError : string ;
|
|
4394
4504
|
}
|
|
4395
4505
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
|
|
4396
|
-
declare namespace
|
|
4506
|
+
declare namespace LCEVCdec.SupportObject {
|
|
4397
4507
|
/**
|
|
4398
4508
|
* LCEVC Support Checklist Result
|
|
4399
4509
|
*/
|
|
4400
4510
|
let SupportStatus : boolean ;
|
|
4401
4511
|
}
|
|
4402
4512
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
|
|
4403
|
-
declare namespace
|
|
4513
|
+
declare namespace LCEVCdec.SupportObject {
|
|
4404
4514
|
/**
|
|
4405
4515
|
* Check if canvas has WebGL support
|
|
4406
4516
|
*/
|
|
4407
4517
|
function webGLSupport (canvas : HTMLCanvasElement | null ) : boolean ;
|
|
4408
4518
|
}
|
|
4519
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
|
|
4520
|
+
declare namespace ಠ_ಠ.clutz {
|
|
4521
|
+
/**
|
|
4522
|
+
* Typedef for the module interface. Both LCEVCdec (new module) and LcevcDil
|
|
4523
|
+
* (old module) implement roughly the same interface.
|
|
4524
|
+
*/
|
|
4525
|
+
type LCEVCmodule = typeof LCEVCdec ;
|
|
4526
|
+
}
|
|
4527
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/managedmediasource.js
|
|
4528
|
+
declare namespace ಠ_ಠ.clutz {
|
|
4529
|
+
class ManagedMediaSource extends MediaSource {
|
|
4530
|
+
private noStructuralTyping_ManagedMediaSource : any;
|
|
4531
|
+
static isTypeSupported (type : string ) : boolean ;
|
|
4532
|
+
}
|
|
4533
|
+
}
|
|
4409
4534
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mdl.js
|
|
4410
4535
|
declare namespace ಠ_ಠ.clutz {
|
|
4411
4536
|
class MaterialLayout {
|
|
@@ -4414,6 +4539,42 @@ declare namespace ಠ_ಠ.clutz {
|
|
|
4414
4539
|
toggleDrawer ( ) : any ;
|
|
4415
4540
|
}
|
|
4416
4541
|
}
|
|
4542
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/media_remote.js
|
|
4543
|
+
declare namespace ಠ_ಠ.clutz {
|
|
4544
|
+
class RemotePlayback implements EventTarget {
|
|
4545
|
+
private noStructuralTyping_RemotePlayback : any;
|
|
4546
|
+
addEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , opt_options ? : boolean | AddEventListenerOptions ) : void ;
|
|
4547
|
+
/**
|
|
4548
|
+
* The cancelWatchAvailability() method of the RemotePlayback interface
|
|
4549
|
+
* cancels the request to watch for one or all available devices.
|
|
4550
|
+
*/
|
|
4551
|
+
cancelWatchAvailability (id : number ) : Promise < any > ;
|
|
4552
|
+
dispatchEvent (evt : Event ) : boolean ;
|
|
4553
|
+
/**
|
|
4554
|
+
* The prompt() method of the RemotePlayback interface prompts the user
|
|
4555
|
+
* to select an available remote playback device and give permission
|
|
4556
|
+
* for the current media to be played using that device.
|
|
4557
|
+
*
|
|
4558
|
+
* If the user gives permission, the state will be set to connecting and
|
|
4559
|
+
* the user agent will connect to the device to initiate playback.
|
|
4560
|
+
*
|
|
4561
|
+
* If the user chooses to instead disconnect from the device, the state will
|
|
4562
|
+
* be set to disconnected and user agent will disconnect from this device.
|
|
4563
|
+
*/
|
|
4564
|
+
prompt ( ) : Promise < any > ;
|
|
4565
|
+
removeEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , opt_options ? : boolean | EventListenerOptions ) : void ;
|
|
4566
|
+
/**
|
|
4567
|
+
* Represents the RemotePlayback connection's state.
|
|
4568
|
+
*/
|
|
4569
|
+
state : string ;
|
|
4570
|
+
/**
|
|
4571
|
+
* The watchAvailability() method of the RemotePlayback interface watches
|
|
4572
|
+
* the list of available remote playback devices and returns a Promise that
|
|
4573
|
+
* resolves with the callbackId of a remote playback device.
|
|
4574
|
+
*/
|
|
4575
|
+
watchAvailability (callback : (a : boolean ) => any ) : Promise < any > ;
|
|
4576
|
+
}
|
|
4577
|
+
}
|
|
4417
4578
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediasession.js
|
|
4418
4579
|
declare namespace ಠ_ಠ.clutz {
|
|
4419
4580
|
class MediaMetadata {
|
|
@@ -4431,35 +4592,49 @@ declare namespace ಠ_ಠ.clutz {
|
|
|
4431
4592
|
metadata : MediaMetadata | null ;
|
|
4432
4593
|
}
|
|
4433
4594
|
}
|
|
4434
|
-
// Generated from /home/runner/work/shaka-player/shaka-player/externs/
|
|
4435
|
-
declare namespace
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4595
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4596
|
+
declare namespace mediaTailor {
|
|
4597
|
+
type Ad = { adId : string , adParameters : string , adSystem : string , adTitle : string , creativeId : string , creativeSequence : string , durationInSeconds : number , nonLinearAdList : mediaTailor.NonLinearAd [] , skipOffset : number | null , startTimeInSeconds : number , trackingEvents : mediaTailor.TrackingEvent [] } ;
|
|
4598
|
+
}
|
|
4599
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4600
|
+
declare namespace mediaTailor {
|
|
4601
|
+
type AdBreak = { adBreakTrackingEvents : mediaTailor.TrackingEvent [] , ads : mediaTailor.Ad [] , durationInSeconds : number , nonLinearAdsList : mediaTailor.Ad [] , startTimeInSeconds : number } ;
|
|
4602
|
+
}
|
|
4603
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4604
|
+
declare namespace mediaTailor {
|
|
4605
|
+
type NonLinearAd = { adId : string , adParameters : string , adSystem : string , adTitle : string , creativeAdId : string , creativeId : string , creativeSequence : string , height : number | null , staticResource : string , width : number | null } ;
|
|
4606
|
+
}
|
|
4607
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4608
|
+
declare namespace mediaTailor {
|
|
4609
|
+
type SessionResponse = { manifestUrl : string | null , trackingUrl : string | null } ;
|
|
4610
|
+
}
|
|
4611
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4612
|
+
declare namespace mediaTailor {
|
|
4613
|
+
type TrackingEvent = { beaconUrls : string [] , eventType : string } ;
|
|
4614
|
+
}
|
|
4615
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4616
|
+
declare namespace mediaTailor {
|
|
4617
|
+
type TrackingResponse = { avails : mediaTailor.AdBreak [] } ;
|
|
4618
|
+
}
|
|
4619
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4620
|
+
declare namespace mediaTailorExternalResource {
|
|
4621
|
+
type App = { data : mediaTailorExternalResource.AppData , placeholder : mediaTailorExternalResource.AppPlaceholder } ;
|
|
4622
|
+
}
|
|
4623
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4624
|
+
declare namespace mediaTailorExternalResource {
|
|
4625
|
+
type AppData = { source : mediaTailorExternalResource.AppDataSource [] } ;
|
|
4626
|
+
}
|
|
4627
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4628
|
+
declare namespace mediaTailorExternalResource {
|
|
4629
|
+
type AppDataSource = { url : string } ;
|
|
4459
4630
|
}
|
|
4460
|
-
// Generated from /home/runner/work/shaka-player/shaka-player/externs/
|
|
4461
|
-
declare namespace
|
|
4462
|
-
type
|
|
4631
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4632
|
+
declare namespace mediaTailorExternalResource {
|
|
4633
|
+
type AppPlaceholder = { left : number , top : number } ;
|
|
4634
|
+
}
|
|
4635
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/mediatailor.js
|
|
4636
|
+
declare namespace mediaTailorExternalResource {
|
|
4637
|
+
type Response = { apps : mediaTailorExternalResource.App [] } ;
|
|
4463
4638
|
}
|
|
4464
4639
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
|
|
4465
4640
|
declare namespace ಠ_ಠ.clutz {
|
|
@@ -4473,6 +4648,14 @@ declare namespace ಠ_ಠ.clutz {
|
|
|
4473
4648
|
}
|
|
4474
4649
|
}
|
|
4475
4650
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
|
|
4651
|
+
declare namespace ಠ_ಠ.clutz {
|
|
4652
|
+
class DocumentPictureInPictureEvent extends Event {
|
|
4653
|
+
private noStructuralTyping_DocumentPictureInPictureEvent : any;
|
|
4654
|
+
constructor ( ) ;
|
|
4655
|
+
window : Window | null ;
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
|
|
4476
4659
|
declare namespace ಠ_ಠ.clutz {
|
|
4477
4660
|
type DocumentPictureInPictureOptions = { height ? : number , width ? : number } ;
|
|
4478
4661
|
}
|
|
@@ -4546,8 +4729,9 @@ declare namespace shaka.extern {
|
|
|
4546
4729
|
interface AbrManager {
|
|
4547
4730
|
/**
|
|
4548
4731
|
* Chooses one variant to switch to. Called by the Player.
|
|
4732
|
+
* @param preferFastSwitching If not provided meant "avoid fast switching if possible".
|
|
4549
4733
|
*/
|
|
4550
|
-
chooseVariant ( ) : shaka.extern.Variant ;
|
|
4734
|
+
chooseVariant (preferFastSwitching ? : boolean ) : shaka.extern.Variant ;
|
|
4551
4735
|
/**
|
|
4552
4736
|
* Sets the ABR configuration.
|
|
4553
4737
|
*
|
|
@@ -4587,8 +4771,9 @@ declare namespace shaka.extern {
|
|
|
4587
4771
|
* SIDX data, WebM Cues data, initialization segments, and media segments).
|
|
4588
4772
|
* @param deltaTimeMs The duration, in milliseconds, that the request took to complete.
|
|
4589
4773
|
* @param numBytes The total number of bytes transferred.
|
|
4774
|
+
* @param allowSwitch Indicate if the segment is allowed to switch to another stream.
|
|
4590
4775
|
*/
|
|
4591
|
-
segmentDownloaded (deltaTimeMs : number , numBytes : number ) : any ;
|
|
4776
|
+
segmentDownloaded (deltaTimeMs : number , numBytes : number , allowSwitch : boolean ) : any ;
|
|
4592
4777
|
/**
|
|
4593
4778
|
* Set media element.
|
|
4594
4779
|
*/
|
|
@@ -4692,6 +4877,7 @@ declare namespace shaka.extern {
|
|
|
4692
4877
|
* Must be called at least once before init*().
|
|
4693
4878
|
*/
|
|
4694
4879
|
configure (config : shaka.extern.AdsConfiguration ) : any ;
|
|
4880
|
+
getCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
4695
4881
|
getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
|
|
4696
4882
|
/**
|
|
4697
4883
|
* Get statistics for the current playback session. If the player is not
|
|
@@ -4699,14 +4885,20 @@ declare namespace shaka.extern {
|
|
|
4699
4885
|
*/
|
|
4700
4886
|
getStats ( ) : any ;
|
|
4701
4887
|
initClientSide (adContainer : HTMLElement , video : HTMLMediaElement , adsRenderingSettings : google.ima.AdsRenderingSettings | null ) : any ;
|
|
4888
|
+
initMediaTailor (adContainer : HTMLElement , networkingEngine : shaka.net.NetworkingEngine , video : HTMLMediaElement ) : any ;
|
|
4702
4889
|
initServerSide (adContainer : HTMLElement , video : HTMLMediaElement ) : any ;
|
|
4703
4890
|
onAssetUnload ( ) : any ;
|
|
4704
4891
|
onCueMetadataChange (value : shaka.extern.MetadataFrame ) : any ;
|
|
4705
4892
|
onDashTimedMetadata (region : shaka.extern.TimelineRegionInfo ) : any ;
|
|
4706
4893
|
onHlsTimedMetadata (metadata : shaka.extern.ID3Metadata , timestampOffset : number ) : any ;
|
|
4894
|
+
/**
|
|
4895
|
+
* Fired when the manifest is updated.
|
|
4896
|
+
*/
|
|
4897
|
+
onManifestUpdated (isLive : boolean ) : any ;
|
|
4707
4898
|
release ( ) : any ;
|
|
4708
4899
|
replaceServerSideAdTagParameters (adTagParameters : object | null ) : any ;
|
|
4709
4900
|
requestClientSideAds (imaRequest : google.ima.AdsRequest ) : any ;
|
|
4901
|
+
requestMediaTailorStream (url : string , adsParams : object | null , backupUrl ? : string ) : Promise < string > ;
|
|
4710
4902
|
requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
|
|
4711
4903
|
setLocale (locale : string ) : any ;
|
|
4712
4904
|
updateClientSideAdsRenderingSettings (adsRenderingSettings : google.ima.AdsRenderingSettings ) : any ;
|
|
@@ -4752,6 +4944,10 @@ declare namespace shaka.extern {
|
|
|
4752
4944
|
* @param pts PTS when this packet was received, in seconds.
|
|
4753
4945
|
*/
|
|
4754
4946
|
extract (userDataSeiMessage : Uint8Array , pts : number ) : any ;
|
|
4947
|
+
/**
|
|
4948
|
+
* Returns the streams that the CEA decoder found.
|
|
4949
|
+
*/
|
|
4950
|
+
getStreams ( ) : string [] ;
|
|
4755
4951
|
}
|
|
4756
4952
|
}
|
|
4757
4953
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
|
|
@@ -4785,7 +4981,7 @@ declare namespace shaka.extern.ICeaParser {
|
|
|
4785
4981
|
}
|
|
4786
4982
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
|
|
4787
4983
|
declare namespace shaka.extern {
|
|
4788
|
-
type MPEG_PES = { data : Uint8Array
|
|
4984
|
+
type MPEG_PES = { data : Uint8Array , dts : number | null , nalus : shaka.extern.VideoNalu [] , packetLength : number , pts : number | null } ;
|
|
4789
4985
|
}
|
|
4790
4986
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
|
|
4791
4987
|
declare namespace shaka.extern {
|
|
@@ -4826,10 +5022,6 @@ declare namespace shaka.extern {
|
|
|
4826
5022
|
type FetchCryptoKeysFunction = ( ) => Promise < any > ;
|
|
4827
5023
|
}
|
|
4828
5024
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
4829
|
-
declare namespace shaka.extern {
|
|
4830
|
-
type HlsAes128Key = { cryptoKey ? : webCrypto.CryptoKey | null , fetchKey ? : shaka.extern.CreateSegmentIndexFunction , firstMediaSequenceNumber : number , iv ? : Uint8Array , method : string } ;
|
|
4831
|
-
}
|
|
4832
|
-
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
4833
5025
|
declare namespace shaka.extern {
|
|
4834
5026
|
type InitDataOverride = { initData : Uint8Array , initDataType : string , keyId : string | null } ;
|
|
4835
5027
|
}
|
|
@@ -4847,16 +5039,20 @@ declare namespace shaka.extern {
|
|
|
4847
5039
|
}
|
|
4848
5040
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
4849
5041
|
declare namespace shaka.extern {
|
|
4850
|
-
type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null } ;
|
|
5042
|
+
type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null , minLatency : number | null , minPlaybackRate : number | null } ;
|
|
4851
5043
|
}
|
|
4852
5044
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
4853
5045
|
declare namespace shaka.extern {
|
|
4854
|
-
type Stream = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closeSegmentIndex ? : ( ) => any , closedCaptions : Map < string , string > | null , codecs : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , external : boolean , forced : boolean , frameRate ? : number , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , matchedStreams ? : any [] , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , width ? : number } ;
|
|
5046
|
+
type Stream = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , audioSamplingRate : number | null , bandwidth ? : number , channelsCount : number | null , closeSegmentIndex ? : ( ) => any , closedCaptions : Map < string , string > | null , codecs : string , createSegmentIndex : shaka.extern.CreateSegmentIndexFunction , drmInfos : shaka.extern.DrmInfo [] , emsgSchemeIdUris : string [] | null , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height ? : number , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , matchedStreams ? : any [] , mimeType : string , mssPrivateData ? : shaka.extern.MssPrivateData , originalId : string | null , originalLanguage : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segmentIndex : shaka.media.SegmentIndex | null , spatialAudio : boolean , tilesLayout ? : string , trickModeVideo : any , type : string , videoLayout ? : string , width ? : number } ;
|
|
4855
5047
|
}
|
|
4856
5048
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
4857
5049
|
declare namespace shaka.extern {
|
|
4858
5050
|
type Variant = { allowedByApplication : boolean , allowedByKeySystem : boolean , audio : shaka.extern.Stream | null , bandwidth : number , decodingInfos : ( any | null ) [] , disabledUntilTime : number , id : number , language : string , primary : boolean , video : shaka.extern.Stream | null } ;
|
|
4859
5051
|
}
|
|
5052
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
|
|
5053
|
+
declare namespace shaka.extern {
|
|
5054
|
+
type aes128Key = { cryptoKey ? : webCrypto.CryptoKey | null , fetchKey ? : shaka.extern.CreateSegmentIndexFunction , firstMediaSequenceNumber : number , iv ? : Uint8Array , method : string } ;
|
|
5055
|
+
}
|
|
4860
5056
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
|
|
4861
5057
|
declare namespace shaka.extern {
|
|
4862
5058
|
/**
|
|
@@ -4886,6 +5082,11 @@ declare namespace shaka.extern {
|
|
|
4886
5082
|
* await parser.stop();
|
|
4887
5083
|
*/
|
|
4888
5084
|
interface ManifestParser {
|
|
5085
|
+
/**
|
|
5086
|
+
* Tells the parser that a location should be banned. This is called on
|
|
5087
|
+
* retry.
|
|
5088
|
+
*/
|
|
5089
|
+
banLocation (uri : string ) : any ;
|
|
4889
5090
|
/**
|
|
4890
5091
|
* Called by the Player to provide an updated configuration any time the
|
|
4891
5092
|
* configuration changes. Will be called at least once before start().
|
|
@@ -4896,6 +5097,10 @@ declare namespace shaka.extern {
|
|
|
4896
5097
|
* Implementing this is optional.
|
|
4897
5098
|
*/
|
|
4898
5099
|
onExpirationUpdated (sessionId : string , expiration : number ) : any ;
|
|
5100
|
+
/**
|
|
5101
|
+
* Tells the parser that the initial variant has been chosen.
|
|
5102
|
+
*/
|
|
5103
|
+
onInitialVariantChosen (variant : shaka.extern.Variant ) : any ;
|
|
4899
5104
|
/**
|
|
4900
5105
|
* Initialize and start the parser. When |start| resolves, it should return
|
|
4901
5106
|
* the initial version of the manifest. |start| will only be called once. If
|
|
@@ -4930,7 +5135,7 @@ declare namespace shaka.extern.ManifestParser {
|
|
|
4930
5135
|
}
|
|
4931
5136
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
|
|
4932
5137
|
declare namespace shaka.extern.ManifestParser {
|
|
4933
|
-
type PlayerInterface = { enableLowLatencyMode : ( ) => any , filter : (a : shaka.extern.Manifest ) => Promise < any > , isAutoLowLatencyMode : ( ) => boolean , isLowLatencyMode : ( ) => boolean , makeTextStreamsForClosedCaptions : (a : shaka.extern.Manifest ) => any , networkingEngine : shaka.net.NetworkingEngine , newDrmInfo : (a : shaka.extern.Stream ) => any , onError : (a : shaka.util.Error ) => any , onEvent : shaka.util.EventManager.ListenerType , onTimelineRegionAdded : (a : shaka.extern.TimelineRegionInfo ) => any , updateDuration : ( ) => any } ;
|
|
5138
|
+
type PlayerInterface = { enableLowLatencyMode : ( ) => any , filter : (a : shaka.extern.Manifest ) => Promise < any > , getBandwidthEstimate : ( ) => number , isAutoLowLatencyMode : ( ) => boolean , isLowLatencyMode : ( ) => boolean , makeTextStreamsForClosedCaptions : (a : shaka.extern.Manifest ) => any , networkingEngine : shaka.net.NetworkingEngine , newDrmInfo : (a : shaka.extern.Stream ) => any , onError : (a : shaka.util.Error ) => any , onEvent : shaka.util.EventManager.ListenerType , onManifestUpdated : ( ) => any , onTimelineRegionAdded : (a : shaka.extern.TimelineRegionInfo ) => any , updateDuration : ( ) => any } ;
|
|
4934
5139
|
}
|
|
4935
5140
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/mp4_parser.js
|
|
4936
5141
|
declare namespace shaka.extern {
|
|
@@ -4959,7 +5164,7 @@ declare namespace shaka.extern {
|
|
|
4959
5164
|
* it before it is sent to the scheme plugin.
|
|
4960
5165
|
* The RequestType describes the basic type of the request (manifest, segment,
|
|
4961
5166
|
* etc). The optional RequestContext will be provided where applicable to
|
|
4962
|
-
* provide additional
|
|
5167
|
+
* provide additional information about the request. A request filter can run
|
|
4963
5168
|
* asynchronously by returning a promise; in this case, the request will not be
|
|
4964
5169
|
* sent until the promise is resolved.
|
|
4965
5170
|
*/
|
|
@@ -4976,7 +5181,7 @@ declare namespace shaka.extern {
|
|
|
4976
5181
|
* it before it is returned.
|
|
4977
5182
|
* The RequestType describes the basic type of the request (manifest, segment,
|
|
4978
5183
|
* etc). The optional RequestContext will be provided where applicable to
|
|
4979
|
-
* provide additional
|
|
5184
|
+
* provide additional information about the request. A response filter can run
|
|
4980
5185
|
* asynchronously by returning a promise.
|
|
4981
5186
|
*/
|
|
4982
5187
|
type ResponseFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Response , c ? : shaka.extern.RequestContext ) => Promise < any > | void ;
|
|
@@ -5161,7 +5366,7 @@ declare namespace shaka.extern {
|
|
|
5161
5366
|
}
|
|
5162
5367
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
|
|
5163
5368
|
declare namespace shaka.extern {
|
|
5164
|
-
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , encrypted : boolean , external : boolean , forced : boolean , frameRate ? : number , hdr ? : string , height : number | null , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , originalLanguage ? : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , width : number | null } ;
|
|
5369
|
+
type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , encrypted : boolean , external : boolean , fastSwitching : boolean , forced : boolean , frameRate ? : number , groupId : string | null , hdr ? : string , height : number | null , id : number , keyIds : Set < string > , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , originalLanguage ? : string | null , pixelAspectRatio ? : string , primary : boolean , roles : string [] , segments : shaka.extern.SegmentDB [] , spatialAudio : boolean , tilesLayout ? : string , type : string , variantIds : number [] , videoLayout ? : string , width : number | null } ;
|
|
5165
5370
|
}
|
|
5166
5371
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
|
|
5167
5372
|
declare namespace shaka.extern {
|
|
@@ -5237,11 +5442,11 @@ declare namespace shaka.extern {
|
|
|
5237
5442
|
}
|
|
5238
5443
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5239
5444
|
declare namespace shaka.extern {
|
|
5240
|
-
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , sequenceMode : boolean , xlinkFailGracefully : boolean } ;
|
|
5445
|
+
type DashManifestConfiguration = { autoCorrectDrift : boolean , clockSyncUri : string , disableXlinkProcessing : boolean , enableAudioGroups : boolean , ignoreDrmInfo : boolean , ignoreEmptyAdaptationSet : boolean , ignoreMaxSegmentDuration : boolean , ignoreMinBufferTime : boolean , ignoreSuggestedPresentationDelay : boolean , initialSegmentLimit : number , keySystemsByURI : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , sequenceMode : boolean , xlinkFailGracefully : boolean } ;
|
|
5241
5446
|
}
|
|
5242
5447
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5243
5448
|
declare namespace shaka.extern {
|
|
5244
|
-
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : shaka.extern.InitDataTransform , keySystemsMapping : { [ key: string ]: string } , logLicenseExchange : boolean , minHdcpVersion : string , parseInbandPsshEnabled : boolean , persistentSessionOnlinePlayback : boolean , persistentSessionsMetadata : shaka.extern.PersistentSessionMetadata [] , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
|
|
5449
|
+
type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , ignoreDuplicateInitData : boolean , initDataTransform ? : shaka.extern.InitDataTransform , keySystemsMapping : { [ key: string ]: string } , logLicenseExchange : boolean , minHdcpVersion : string , parseInbandPsshEnabled : boolean , persistentSessionOnlinePlayback : boolean , persistentSessionsMetadata : shaka.extern.PersistentSessionMetadata [] , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
|
|
5245
5450
|
}
|
|
5246
5451
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5247
5452
|
declare namespace shaka.extern {
|
|
@@ -5257,7 +5462,7 @@ declare namespace shaka.extern {
|
|
|
5257
5462
|
}
|
|
5258
5463
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5259
5464
|
declare namespace shaka.extern {
|
|
5260
|
-
type HlsManifestConfiguration = { defaultAudioCodec : string , defaultVideoCodec : string , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
|
|
5465
|
+
type HlsManifestConfiguration = { allowLowLatencyByteRangeOptimization : boolean , defaultAudioCodec : string , defaultVideoCodec : string , disableCodecGuessing : boolean , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
|
|
5261
5466
|
}
|
|
5262
5467
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5263
5468
|
declare namespace shaka.extern {
|
|
@@ -5285,11 +5490,11 @@ declare namespace shaka.extern {
|
|
|
5285
5490
|
}
|
|
5286
5491
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5287
5492
|
declare namespace shaka.extern {
|
|
5288
|
-
type MediaSourceConfiguration = { forceTransmux : boolean , insertFakeEncryptionInInit : boolean , sourceBufferExtraFeatures : string } ;
|
|
5493
|
+
type MediaSourceConfiguration = { codecSwitchingStrategy : shaka.config.CodecSwitchingStrategy , forceTransmux : boolean , insertFakeEncryptionInInit : boolean , sourceBufferExtraFeatures : string } ;
|
|
5289
5494
|
}
|
|
5290
5495
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5291
5496
|
declare namespace shaka.extern {
|
|
5292
|
-
type MetadataFrame = { data : ArrayBuffer | null | string | number , description : string , key : string } ;
|
|
5497
|
+
type MetadataFrame = { data : ArrayBuffer | null | string | number , description : string , key : string , mimeType : string | null , pictureType : number | null } ;
|
|
5293
5498
|
}
|
|
5294
5499
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5295
5500
|
declare namespace shaka.extern {
|
|
@@ -5309,7 +5514,7 @@ declare namespace shaka.extern {
|
|
|
5309
5514
|
}
|
|
5310
5515
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5311
5516
|
declare namespace shaka.extern {
|
|
5312
|
-
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , ads : shaka.extern.AdsConfiguration , autoShowText : shaka.config.AutoShowText , cmcd : shaka.extern.CmcdConfiguration , drm : shaka.extern.DrmConfiguration , lcevc : shaka.extern.LcevcConfiguration , manifest : shaka.extern.ManifestConfiguration , mediaSource : shaka.extern.MediaSourceConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioCodecs : string [] , preferredAudioLabel : string , preferredAudioLanguage : string , preferredDecodingAttributes : string [] , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , preferredVideoCodecs : string [] , preferredVideoHdrLevel : string , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory } ;
|
|
5517
|
+
type PlayerConfiguration = { abr : shaka.extern.AbrConfiguration , abrFactory : shaka.extern.AbrManager.Factory , ads : shaka.extern.AdsConfiguration , autoShowText : shaka.config.AutoShowText , cmcd : shaka.extern.CmcdConfiguration , drm : shaka.extern.DrmConfiguration , lcevc : shaka.extern.LcevcConfiguration , manifest : shaka.extern.ManifestConfiguration , mediaSource : shaka.extern.MediaSourceConfiguration , offline : shaka.extern.OfflineConfiguration , playRangeEnd : number , playRangeStart : number , preferForcedSubs : boolean , preferredAudioChannelCount : number , preferredAudioCodecs : string [] , preferredAudioLabel : string , preferredAudioLanguage : string , preferredDecodingAttributes : string [] , preferredTextLanguage : string , preferredTextRole : string , preferredVariantRole : string , preferredVideoCodecs : string [] , preferredVideoHdrLevel : string , preferredVideoLayout : string , restrictions : shaka.extern.Restrictions , streaming : shaka.extern.StreamingConfiguration , textDisplayFactory : shaka.extern.TextDisplayer.Factory } ;
|
|
5313
5518
|
}
|
|
5314
5519
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5315
5520
|
declare namespace shaka.extern {
|
|
@@ -5329,7 +5534,7 @@ declare namespace shaka.extern {
|
|
|
5329
5534
|
}
|
|
5330
5535
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5331
5536
|
declare namespace shaka.extern {
|
|
5332
|
-
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , dispatchAllEmsgBoxes : boolean , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , liveSync : boolean , liveSyncMaxLatency : number , liveSyncPlaybackRate : number , lowLatencyMode : boolean , maxDisabledTime : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsOnSafari : boolean } ;
|
|
5537
|
+
type StreamingConfiguration = { alwaysStreamText : boolean , autoLowLatencyMode : boolean , bufferBehind : number , bufferingGoal : number , dispatchAllEmsgBoxes : boolean , durationBackoff : number , failureCallback : (a : shaka.util.Error ) => any , forceHTTPS : boolean , gapDetectionThreshold : number , gapJumpTimerTime : number , ignoreTextStreamFailures : boolean , inaccurateManifestTolerance : number , liveSync : boolean , liveSyncMaxLatency : number , liveSyncMinLatency : number , liveSyncMinPlaybackRate : number , liveSyncPlaybackRate : number , lowLatencyMode : boolean , maxDisabledTime : number , observeQualityChanges : boolean , parsePrftBox : boolean , preferNativeHls : boolean , rebufferingGoal : number , retryParameters : shaka.extern.RetryParameters , safeSeekOffset : number , segmentPrefetchLimit : number , stallEnabled : boolean , stallSkip : number , stallThreshold : number , startAtSegmentBoundary : boolean , updateIntervalSeconds : number , useNativeHlsOnSafari : boolean } ;
|
|
5333
5538
|
}
|
|
5334
5539
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5335
5540
|
declare namespace shaka.extern {
|
|
@@ -5337,7 +5542,7 @@ declare namespace shaka.extern {
|
|
|
5337
5542
|
}
|
|
5338
5543
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5339
5544
|
declare namespace shaka.extern {
|
|
5340
|
-
type Thumbnail = { duration : number , height : number , imageHeight : number , imageWidth : number , positionX : number , positionY : number , sprite : boolean , startTime : number , uris : string [] , width : number } ;
|
|
5545
|
+
type Thumbnail = { duration : number , height : number , imageHeight : number , imageWidth : number , positionX : number , positionY : number , segment : shaka.media.SegmentReference | null , sprite : boolean , startTime : number , uris : string [] , width : number } ;
|
|
5341
5546
|
}
|
|
5342
5547
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5343
5548
|
declare namespace shaka.extern {
|
|
@@ -5345,7 +5550,7 @@ declare namespace shaka.extern {
|
|
|
5345
5550
|
}
|
|
5346
5551
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5347
5552
|
declare namespace shaka.extern {
|
|
5348
|
-
type Track = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioMimeType : string | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalLanguage : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , videoMimeType : string | null , width : number | null } ;
|
|
5553
|
+
type Track = { accessibilityPurpose : shaka.media.ManifestParser.AccessibilityPurpose | null , active : boolean , audioBandwidth : number | null , audioCodec : string | null , audioId : number | null , audioMimeType : string | null , audioRoles : string [] | null , audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string | null , forced : boolean , frameRate : number | null , hdr : string | null , height : number | null , id : number , kind : string | null , label : string | null , language : string , mimeType : string | null , originalAudioId : string | null , originalImageId : string | null , originalLanguage : string | null , originalTextId : string | null , originalVideoId : string | null , pixelAspectRatio : string | null , primary : boolean , roles : string [] , spatialAudio : boolean , tilesLayout : string | null , type : string , videoBandwidth : number | null , videoCodec : string | null , videoId : number | null , videoLayout : string | null , videoMimeType : string | null , width : number | null } ;
|
|
5349
5554
|
}
|
|
5350
5555
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
|
|
5351
5556
|
declare namespace shaka.extern {
|
|
@@ -5405,8 +5610,9 @@ declare namespace shaka.extern {
|
|
|
5405
5610
|
* Parse a media segment and return the cues that make up the segment.
|
|
5406
5611
|
* @param data The next section of buffer.
|
|
5407
5612
|
* @param timeContext The time information that should be used to adjust the times values for each cue.
|
|
5613
|
+
* @param uri The media uri.
|
|
5408
5614
|
*/
|
|
5409
|
-
parseMedia (data : Uint8Array , timeContext : shaka.extern.TextParser.TimeContext ) : shaka.text.Cue [] ;
|
|
5615
|
+
parseMedia (data : Uint8Array , timeContext : shaka.extern.TextParser.TimeContext , uri : string | undefined | null ) : shaka.text.Cue [] ;
|
|
5410
5616
|
/**
|
|
5411
5617
|
* Notifies the manifest type.
|
|
5412
5618
|
*/
|
|
@@ -5445,7 +5651,7 @@ declare namespace shaka.extern {
|
|
|
5445
5651
|
/**
|
|
5446
5652
|
* Returns the original mimetype of the transmuxer.
|
|
5447
5653
|
*/
|
|
5448
|
-
|
|
5654
|
+
getOriginalMimeType ( ) : string ;
|
|
5449
5655
|
/**
|
|
5450
5656
|
* Check if the mime type and the content type is supported.
|
|
5451
5657
|
*/
|
|
@@ -5612,11 +5818,11 @@ nameSpan : HTMLElement ;
|
|
|
5612
5818
|
}
|
|
5613
5819
|
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5614
5820
|
declare namespace shaka.extern {
|
|
5615
|
-
type UIConfiguration = { addBigPlayButton : boolean , addSeekBar : boolean , castAndroidReceiverCompatible : boolean , castReceiverAppId : string , clearBufferOnQualityChange : boolean , contextMenuElements : string [] , controlPanelElements : string [] , customContextMenu : boolean , doubleClickForFullscreen : boolean , enableFullscreenOnRotation : boolean , enableKeyboardPlaybackControls : boolean , enableTooltips : boolean , fadeDelay : number , fastForwardRates : number [] , forceLandscapeOnFullscreen : boolean , fullScreenElement : HTMLElement | null , keyboardLargeSeekDistance : number , keyboardSeekDistance : number , overflowMenuButtons : string [] , playbackRates : number [] , rewindRates : number [] , seekBarColors : shaka.extern.UISeekBarColors , showUnbufferedStart : boolean , singleClickForPlayAndPause : boolean , statisticsList : string [] , trackLabelFormat : shaka.ui.Overlay.TrackLabelFormat , volumeBarColors : shaka.extern.UIVolumeBarColors } ;
|
|
5821
|
+
type UIConfiguration = { addBigPlayButton : boolean , addSeekBar : boolean , castAndroidReceiverCompatible : boolean , castReceiverAppId : string , clearBufferOnQualityChange : boolean , contextMenuElements : string [] , controlPanelElements : string [] , customContextMenu : boolean , doubleClickForFullscreen : boolean , enableFullscreenOnRotation : boolean , enableKeyboardPlaybackControls : boolean , enableTooltips : boolean , fadeDelay : number , fastForwardRates : number [] , forceLandscapeOnFullscreen : boolean , fullScreenElement : HTMLElement | null , keyboardLargeSeekDistance : number , keyboardSeekDistance : number , overflowMenuButtons : string [] , playbackRates : number [] , preferDocumentPictureInPicture : boolean , rewindRates : number [] , seekBarColors : shaka.extern.UISeekBarColors , showAudioChannelCountVariants : boolean , showUnbufferedStart : boolean , singleClickForPlayAndPause : boolean , statisticsList : string [] , trackLabelFormat : shaka.ui.Overlay.TrackLabelFormat , volumeBarColors : shaka.extern.UIVolumeBarColors } ;
|
|
5616
5822
|
}
|
|
5617
5823
|
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5618
5824
|
declare namespace shaka.extern {
|
|
5619
|
-
type UISeekBarColors = { adBreaks : string , base : string , buffered : string , played : string } ;
|
|
5825
|
+
type UISeekBarColors = { adBreaks : string , base : string , buffered : string , chapterLabels : string , chapterMarks : string , played : string } ;
|
|
5620
5826
|
}
|
|
5621
5827
|
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5622
5828
|
declare namespace shaka.extern {
|