shaka-player 4.4.2 → 4.5.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.
Files changed (202) hide show
  1. package/.github/workflows/release-please.yaml +2 -27
  2. package/CHANGELOG.md +67 -25
  3. package/README.md +16 -10
  4. package/demo/asset_card.js +18 -21
  5. package/demo/cast_receiver/index.html +0 -1
  6. package/demo/close_button.js +0 -3
  7. package/demo/common/asset.js +27 -5
  8. package/demo/common/assets.js +150 -52
  9. package/demo/config.js +192 -253
  10. package/demo/custom.js +39 -98
  11. package/demo/front.js +7 -10
  12. package/demo/index.html +19 -22
  13. package/demo/input.js +6 -11
  14. package/demo/input_container.js +8 -9
  15. package/demo/main.js +52 -124
  16. package/demo/search.js +23 -35
  17. package/demo/service_worker.js +0 -3
  18. package/demo/tooltip.js +3 -5
  19. package/demo/visualizer.js +3 -5
  20. package/demo/visualizer_button.js +1 -20
  21. package/dist/demo.compiled.debug.js +187 -211
  22. package/dist/demo.compiled.debug.map +4 -4
  23. package/dist/demo.compiled.js +187 -211
  24. package/dist/demo.compiled.map +4 -4
  25. package/dist/deps.js +27 -24
  26. package/dist/locales.js +31 -31
  27. package/dist/receiver.compiled.debug.js +42 -61
  28. package/dist/receiver.compiled.debug.map +4 -4
  29. package/dist/receiver.compiled.js +42 -61
  30. package/dist/receiver.compiled.map +4 -4
  31. package/dist/shaka-player.compiled.d.ts +728 -365
  32. package/dist/shaka-player.compiled.debug.d.ts +728 -365
  33. package/dist/shaka-player.compiled.debug.externs.js +475 -51
  34. package/dist/shaka-player.compiled.debug.js +576 -480
  35. package/dist/shaka-player.compiled.debug.map +4 -4
  36. package/dist/shaka-player.compiled.externs.js +475 -51
  37. package/dist/shaka-player.compiled.js +1117 -1056
  38. package/dist/shaka-player.compiled.map +4 -4
  39. package/dist/shaka-player.ui.d.ts +783 -410
  40. package/dist/shaka-player.ui.debug.d.ts +783 -410
  41. package/dist/shaka-player.ui.debug.externs.js +496 -51
  42. package/dist/shaka-player.ui.debug.js +647 -542
  43. package/dist/shaka-player.ui.debug.map +4 -4
  44. package/dist/shaka-player.ui.externs.js +496 -51
  45. package/dist/shaka-player.ui.js +1260 -1194
  46. package/dist/shaka-player.ui.map +4 -4
  47. package/docs/design/lcevc-integration.md +14 -14
  48. package/docs/tutorials/faq.md +27 -55
  49. package/docs/tutorials/index.json +2 -1
  50. package/docs/tutorials/lcevc.md +118 -0
  51. package/docs/tutorials/offline.md +1 -1
  52. package/docs/tutorials/ui-customization.md +4 -0
  53. package/externs/css_style_declaration.js +19 -0
  54. package/externs/lcevc.js +37 -13
  55. package/externs/media_remote.js +68 -0
  56. package/externs/mediatailor.js +193 -0
  57. package/externs/pictureinpicture.js +11 -0
  58. package/externs/shaka/ads.js +27 -0
  59. package/externs/shaka/manifest.js +10 -5
  60. package/externs/shaka/manifest_parser.js +7 -1
  61. package/externs/shaka/offline.js +4 -0
  62. package/externs/shaka/player.js +12 -1
  63. package/karma.conf.js +7 -3
  64. package/lib/abr/simple_abr_manager.js +43 -3
  65. package/lib/ads/ad_manager.js +104 -50
  66. package/lib/ads/media_tailor_ad.js +297 -0
  67. package/lib/ads/media_tailor_ad_manager.js +828 -0
  68. package/lib/cea/ts_cea_parser.js +15 -2
  69. package/lib/config/codec_switching_strategy.js +24 -0
  70. package/lib/dash/content_protection.js +120 -2
  71. package/lib/dash/dash_parser.js +79 -13
  72. package/lib/dash/mpd_utils.js +10 -6
  73. package/lib/dash/segment_base.js +13 -5
  74. package/lib/dash/segment_list.js +13 -5
  75. package/lib/dash/segment_template.js +43 -85
  76. package/lib/dependencies/all.js +8 -7
  77. package/lib/hls/hls_parser.js +101 -37
  78. package/lib/lcevc/lcevc_dec.js +220 -0
  79. package/lib/media/adaptation_set.js +22 -11
  80. package/lib/media/adaptation_set_criteria.js +25 -7
  81. package/lib/media/media_source_engine.js +215 -27
  82. package/lib/media/segment_index.js +5 -5
  83. package/lib/media/segment_reference.js +10 -5
  84. package/lib/media/streaming_engine.js +44 -39
  85. package/lib/mss/mss_parser.js +1 -0
  86. package/lib/net/networking_engine.js +1 -0
  87. package/lib/offline/indexeddb/v1_storage_cell.js +1 -0
  88. package/lib/offline/indexeddb/v2_storage_cell.js +1 -0
  89. package/lib/offline/manifest_converter.js +1 -0
  90. package/lib/offline/storage.js +3 -0
  91. package/lib/player.js +142 -72
  92. package/lib/routing/payload.js +5 -1
  93. package/lib/text/cue.js +62 -47
  94. package/lib/text/ttml_text_parser.js +17 -0
  95. package/lib/text/ui_text_displayer.js +4 -0
  96. package/lib/text/vtt_text_parser.js +35 -22
  97. package/lib/transmuxer/h265.js +862 -0
  98. package/lib/transmuxer/mpeg_ts_transmuxer.js +3 -2
  99. package/lib/transmuxer/ts_transmuxer.js +160 -15
  100. package/lib/util/cmcd_manager.js +6 -1
  101. package/lib/util/error.js +28 -9
  102. package/lib/util/exp_golomb.js +30 -2
  103. package/lib/util/fake_event.js +3 -0
  104. package/lib/util/manifest_parser_utils.js +10 -4
  105. package/lib/util/mp4_generator.js +4 -4
  106. package/lib/util/periods.js +2 -0
  107. package/lib/util/platform.js +54 -0
  108. package/lib/util/player_configuration.js +8 -0
  109. package/lib/util/state_history.js +6 -2
  110. package/lib/util/stream_utils.js +133 -217
  111. package/lib/util/ts_parser.js +229 -43
  112. package/maintained-branches.md +3 -2
  113. package/package.json +4 -6
  114. package/roadmap.md +15 -5
  115. package/shaka-player.uncompiled.js +2 -1
  116. package/support.html +0 -1
  117. package/test/cast/cast_receiver_integration.js +47 -0
  118. package/test/codec_switching/codec_switching_integration.js +181 -0
  119. package/test/dash/dash_parser_content_protection_unit.js +2 -0
  120. package/test/dash/dash_parser_integration.js +73 -0
  121. package/test/dash/dash_parser_live_unit.js +2 -0
  122. package/test/dash/dash_parser_manifest_unit.js +47 -0
  123. package/test/dash/dash_parser_segment_base_unit.js +7 -0
  124. package/test/dash/dash_parser_segment_list_unit.js +23 -17
  125. package/test/dash/dash_parser_segment_template_unit.js +49 -0
  126. package/test/demo/demo_unit.js +0 -16
  127. package/test/hls/hls_live_unit.js +35 -0
  128. package/test/hls/hls_parser_unit.js +8 -61
  129. package/test/media/adaptation_set_criteria_unit.js +118 -0
  130. package/test/media/adaptation_set_unit.js +1 -0
  131. package/test/media/media_source_engine_unit.js +165 -1
  132. package/test/media/segment_index_unit.js +4 -4
  133. package/test/media/segment_prefetch_unit.js +1 -1
  134. package/test/media/streaming_engine_unit.js +17 -17
  135. package/test/mss/mss_parser_unit.js +2 -0
  136. package/test/offline/manifest_convert_unit.js +5 -0
  137. package/test/offline/storage_integration.js +1 -4
  138. package/test/player_unit.js +102 -131
  139. package/test/routing/walker_unit.js +1 -0
  140. package/test/test/assets/dash-aes-128/Fragments(video=0,format=mpd-time-csf) +0 -0
  141. package/test/test/assets/dash-aes-128/Fragments(video=20000000,format=mpd-time-csf) +0 -0
  142. package/test/test/assets/dash-aes-128/Fragments(video=40000000,format=mpd-time-csf) +0 -0
  143. package/test/test/assets/dash-aes-128/Fragments(video=60000000,format=mpd-time-csf) +0 -0
  144. package/test/test/assets/dash-aes-128/Fragments(video=i,format=mpd-time-csf) +0 -0
  145. package/test/test/assets/dash-aes-128/dash.mpd +18 -0
  146. package/test/test/assets/dash-aes-128/license +1 -0
  147. package/test/test/assets/dash-multi-codec/audio_en_2c_128k_aac.mp4 +0 -0
  148. package/test/test/assets/dash-multi-codec/audio_es_2c_64k_opus.webm +0 -0
  149. package/test/test/assets/dash-multi-codec/dash.mpd +32 -0
  150. package/test/test/assets/dash-multi-codec/video_144p_108k_h264.mp4 +0 -0
  151. package/test/test/assets/hls-ts-h265/0.ts +0 -0
  152. package/test/test/assets/hls-ts-h265/hevc.m3u8 +6 -0
  153. package/test/test/assets/hls-ts-h265/index.m3u8 +7 -0
  154. package/test/test/assets/hls-ts-muxed-aac-h265/0.ts +0 -0
  155. package/test/test/assets/hls-ts-muxed-aac-h265/1.ts +0 -0
  156. package/test/test/assets/hls-ts-muxed-aac-h265/media.m3u8 +9 -0
  157. package/test/test/assets/hls-ts-muxed-ac3-h264/media.m3u8 +24 -0
  158. package/test/test/assets/hls-ts-muxed-ac3-h264/s_00000.ts +0 -0
  159. package/test/test/assets/hls-ts-muxed-ac3-h264/s_00001.ts +0 -0
  160. package/test/test/assets/hls-ts-muxed-ac3-h264/s_00002.ts +0 -0
  161. package/test/test/assets/hls-ts-muxed-ac3-h264/s_00003.ts +0 -0
  162. package/test/test/assets/hls-ts-muxed-ac3-h264/s_00004.ts +0 -0
  163. package/test/test/assets/hls-ts-muxed-ac3-h264/s_00005.ts +0 -0
  164. package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0000.ts +0 -0
  165. package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0001.ts +0 -0
  166. package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0002.ts +0 -0
  167. package/test/test/assets/hls-ts-muxed-ec3-h264/ChID_voices_1280x720p_25fps_h264_6ch_256kbps_ddp_sub_0003.ts +0 -0
  168. package/test/test/assets/hls-ts-muxed-ec3-h264/prog_index.m3u8 +14 -0
  169. package/test/test/assets/hls-ts-muxed-mp3-h264/index.m3u8 +23 -0
  170. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-1-v1-a1.ts +0 -0
  171. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-2-v1-a1.ts +0 -0
  172. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-3-v1-a1.ts +0 -0
  173. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-4-v1-a1.ts +0 -0
  174. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-5-v1-a1.ts +0 -0
  175. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-6-v1-a1.ts +0 -0
  176. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-7-v1-a1.ts +0 -0
  177. package/test/test/assets/hls-ts-muxed-mp3-h264/seg-8-v1-a1.ts +0 -0
  178. package/test/test/util/dash_parser_util.js +20 -7
  179. package/test/test/util/fake_ad_manager.js +20 -0
  180. package/test/test/util/fake_media_source_engine.js +8 -2
  181. package/test/test/util/manifest_generator.js +7 -3
  182. package/test/test/util/mss_parser_util.js +4 -0
  183. package/test/test/util/offline_utils.js +1 -0
  184. package/test/test/util/streaming_engine_util.js +7 -4
  185. package/test/text/ttml_text_parser_unit.js +52 -0
  186. package/test/text/vtt_text_parser_unit.js +105 -48
  187. package/test/transmuxer/transmuxer_integration.js +121 -4
  188. package/test/ui/ui_unit.js +3 -10
  189. package/test/util/stream_utils_unit.js +208 -74
  190. package/test/util/ts_parser_unit.js +1 -1
  191. package/ui/controls.js +125 -0
  192. package/ui/externs/ui.js +8 -1
  193. package/ui/pip_button.js +22 -120
  194. package/ui/remote_button.js +201 -0
  195. package/ui/ui.js +5 -2
  196. package/demo/common/message_ids.js +0 -309
  197. package/demo/locales/en.json +0 -287
  198. package/demo/locales/source.json +0 -1142
  199. package/externs/mux.js +0 -69
  200. package/lib/lcevc/lcevc_dil.js +0 -152
  201. package/lib/transmuxer/muxjs_transmuxer.js +0 -242
  202. package/test/transmuxer/muxjs_transmuxer_integration.js +0 -177
@@ -7,7 +7,7 @@
7
7
  declare class GlobalError extends Error {}
8
8
 
9
9
  //!! generated by clutz.
10
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
10
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
11
11
  declare namespace shaka {
12
12
  class Player extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
13
13
  private noStructuralTyping_shaka_Player : any;
@@ -410,7 +410,7 @@ declare namespace shaka {
410
410
  * <code>load</code> but cannot interrupt calls to <code>attach</code>,
411
411
  * <code>detach</code>, or <code>unload</code>.
412
412
  */
413
- unload (initializeMediaSource ? : boolean ) : Promise < any > ;
413
+ unload (initializeMediaSource ? : boolean , keepAdManager ? : boolean ) : Promise < any > ;
414
414
  /**
415
415
  * Provides a way to update the stream start position during the media loading
416
416
  * process. Can for example be called from the <code>manifestparsed</code>
@@ -446,7 +446,7 @@ declare namespace shaka {
446
446
  static version : string ;
447
447
  }
448
448
  }
449
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
449
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
450
450
  declare namespace shaka.Player {
451
451
  /**
452
452
  * In order to know what method of loading the player used for some content, we
@@ -475,7 +475,7 @@ declare namespace shaka.Player {
475
475
  SRC_EQUALS = 3.0 ,
476
476
  }
477
477
  }
478
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
478
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
479
479
  declare namespace shaka.abr {
480
480
  class SimpleAbrManager implements shaka.extern.AbrManager , shaka.util.IReleasable {
481
481
  private noStructuralTyping_shaka_abr_SimpleAbrManager : any;
@@ -493,7 +493,7 @@ declare namespace shaka.abr {
493
493
  stop ( ) : any ;
494
494
  }
495
495
  }
496
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
496
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
497
497
  declare namespace shaka.ads {
498
498
  /**
499
499
  * A class responsible for ad-related interactions.
@@ -501,17 +501,21 @@ declare namespace shaka.ads {
501
501
  class AdManager extends shaka.util.FakeEventTarget implements shaka.extern.IAdManager , shaka.util.IReleasable {
502
502
  private noStructuralTyping_shaka_ads_AdManager : any;
503
503
  configure (config : any ) : any ;
504
+ getCuePoints ( ) : shaka.extern.AdCuePoint [] ;
504
505
  getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
505
506
  getStats ( ) : shaka.extern.AdsStats ;
506
507
  initClientSide (adContainer : any , video : any , adsRenderingSettings : any ) : any ;
508
+ initMediaTailor (adContainer : any , networkingEngine : any , video : any ) : any ;
507
509
  initServerSide (adContainer : any , video : any ) : any ;
508
510
  onAssetUnload ( ) : any ;
509
511
  onCueMetadataChange (value : any ) : any ;
510
512
  onDashTimedMetadata (region : any ) : any ;
511
513
  onHlsTimedMetadata (metadata : any , timestamp : any ) : any ;
514
+ onManifestUpdated (isLive : any ) : any ;
512
515
  release ( ) : any ;
513
516
  replaceServerSideAdTagParameters (adTagParameters : any ) : any ;
514
517
  requestClientSideAds (imaRequest : any ) : any ;
518
+ requestMediaTailorStream (url : string , adsParams : object | null , backupUrl ? : string ) : Promise < string > ;
515
519
  requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
516
520
  setLocale (locale : any ) : any ;
517
521
  updateClientSideAdsRenderingSettings (adsRenderingSettings : any ) : any ;
@@ -646,7 +650,7 @@ declare namespace shaka.ads {
646
650
  static IMA_STREAM_MANAGER_LOADED : string ;
647
651
  }
648
652
  }
649
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
653
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
650
654
  declare namespace shaka.ads {
651
655
  class ClientSideAd implements shaka.extern.IAd {
652
656
  private noStructuralTyping_shaka_ads_ClientSideAd : any;
@@ -683,7 +687,44 @@ declare namespace shaka.ads {
683
687
  skip ( ) : any ;
684
688
  }
685
689
  }
686
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
690
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
691
+ declare namespace shaka.ads {
692
+ class MediaTailorAd implements shaka.extern.IAd {
693
+ private noStructuralTyping_shaka_ads_MediaTailorAd : any;
694
+ constructor (mediaTailorAd : mediaTailor.Ad , adPosition : number , totalAds : number , isLinear : any , video : HTMLMediaElement | null ) ;
695
+ canSkipNow ( ) : any ;
696
+ getAdId ( ) : any ;
697
+ getAdvertiserName ( ) : any ;
698
+ getCreativeAdId ( ) : any ;
699
+ getDescription ( ) : any ;
700
+ getDuration ( ) : any ;
701
+ getMediaUrl ( ) : any ;
702
+ getMinSuggestedDuration ( ) : any ;
703
+ getPodIndex ( ) : any ;
704
+ getPositionInSequence ( ) : any ;
705
+ getRemainingTime ( ) : any ;
706
+ getSequenceLength ( ) : any ;
707
+ getTimeOffset ( ) : any ;
708
+ getTimeUntilSkippable ( ) : any ;
709
+ getTitle ( ) : any ;
710
+ getVastMediaBitrate ( ) : any ;
711
+ getVastMediaHeight ( ) : any ;
712
+ getVastMediaWidth ( ) : any ;
713
+ getVolume ( ) : any ;
714
+ isLinear ( ) : any ;
715
+ isMuted ( ) : any ;
716
+ isPaused ( ) : any ;
717
+ isSkippable ( ) : any ;
718
+ pause ( ) : any ;
719
+ play ( ) : any ;
720
+ release ( ) : any ;
721
+ resize (width : any , height : any ) : any ;
722
+ setMuted (muted : any ) : any ;
723
+ setVolume (volume : any ) : any ;
724
+ skip ( ) : any ;
725
+ }
726
+ }
727
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
687
728
  declare namespace shaka.ads {
688
729
  class ServerSideAd implements shaka.extern.IAd {
689
730
  private noStructuralTyping_shaka_ads_ServerSideAd : any;
@@ -720,7 +761,7 @@ declare namespace shaka.ads {
720
761
  skip ( ) : any ;
721
762
  }
722
763
  }
723
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
764
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
724
765
  declare namespace shaka.cast {
725
766
  class CastProxy extends shaka.util.FakeEventTarget implements shaka.util.IDestroyable {
726
767
  private noStructuralTyping_shaka_cast_CastProxy : any;
@@ -760,7 +801,7 @@ declare namespace shaka.cast {
760
801
  suggestDisconnect ( ) : any ;
761
802
  }
762
803
  }
763
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
804
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
764
805
  declare namespace shaka.cast {
765
806
  /**
766
807
  * A receiver to communicate between the Chromecast-hosted player and the
@@ -812,7 +853,7 @@ declare namespace shaka.cast {
812
853
  setContentTitle (title : string ) : any ;
813
854
  }
814
855
  }
815
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
856
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
816
857
  declare namespace shaka.cea {
817
858
  /**
818
859
  * CEA-X08 captions decoder.
@@ -824,7 +865,7 @@ declare namespace shaka.cea {
824
865
  extract (userDataSeiMessage : Uint8Array , pts : number ) : any ;
825
866
  }
826
867
  }
827
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
868
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
828
869
  declare namespace shaka.cea {
829
870
  /**
830
871
  * MPEG4 stream parser used for extracting 708 closed captions data.
@@ -835,7 +876,7 @@ declare namespace shaka.cea {
835
876
  parse (mediaSegment : ArrayBuffer | ArrayBufferView ) : shaka.extern.ICeaParser.CaptionPacket [] ;
836
877
  }
837
878
  }
838
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
879
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
839
880
  declare namespace shaka.cea {
840
881
  /**
841
882
  * MPEG TS CEA parser.
@@ -846,7 +887,7 @@ declare namespace shaka.cea {
846
887
  parse (mediaSegment : ArrayBuffer | ArrayBufferView ) : shaka.extern.ICeaParser.CaptionPacket [] ;
847
888
  }
848
889
  }
849
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
890
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
850
891
  declare namespace shaka.config {
851
892
  enum AutoShowText {
852
893
  ALWAYS = 1.0 ,
@@ -855,7 +896,14 @@ declare namespace shaka.config {
855
896
  NEVER = 0.0 ,
856
897
  }
857
898
  }
858
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
899
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
900
+ declare namespace shaka.config {
901
+ enum CodecSwitchingStrategy {
902
+ RELOAD = 'reload' ,
903
+ SMOOTH = 'smooth' ,
904
+ }
905
+ }
906
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
859
907
  declare namespace shaka.dash {
860
908
  /**
861
909
  * Creates a new DASH parser.
@@ -869,7 +917,7 @@ declare namespace shaka.dash {
869
917
  update ( ) : any ;
870
918
  }
871
919
  }
872
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
920
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
873
921
  declare namespace shaka {
874
922
  class dependencies {
875
923
  private noStructuralTyping_shaka_dependencies : any;
@@ -886,14 +934,14 @@ declare namespace shaka {
886
934
  static has (key : shaka.dependencies.Allowed ) : boolean ;
887
935
  }
888
936
  }
889
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
937
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
890
938
  declare namespace shaka.dependencies {
891
939
  enum Allowed {
892
940
  ISOBoxer = 'ISOBoxer' ,
893
941
  muxjs = 'muxjs' ,
894
942
  }
895
943
  }
896
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
944
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
897
945
  declare namespace shaka.hls {
898
946
  /**
899
947
  * HLS parser.
@@ -907,18 +955,18 @@ declare namespace shaka.hls {
907
955
  update ( ) : any ;
908
956
  }
909
957
  }
910
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
958
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
911
959
  declare namespace shaka.lcevc {
912
- class Dil implements shaka.util.IReleasable {
913
- private noStructuralTyping_shaka_lcevc_Dil : any;
914
- constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , dilConfig : shaka.extern.LcevcConfiguration ) ;
960
+ class Dec implements shaka.util.IReleasable {
961
+ private noStructuralTyping_shaka_lcevc_Dec : any;
962
+ constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , lcevcConfig : shaka.extern.LcevcConfiguration ) ;
915
963
  /**
916
- * Close LCEVC Dil.
964
+ * Close LCEVC Decoder.
917
965
  */
918
966
  release ( ) : any ;
919
967
  }
920
968
  }
921
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
969
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
922
970
  declare namespace shaka.media {
923
971
  /**
924
972
  * Closed Caption Parser provides all operations for parsing the closed captions
@@ -939,7 +987,7 @@ declare namespace shaka.media {
939
987
  static unregisterParser (mimeType : string ) : any ;
940
988
  }
941
989
  }
942
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
990
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
943
991
  declare namespace shaka.media {
944
992
  /**
945
993
  * The IClosedCaptionParser defines the interface to provide all operations for
@@ -950,7 +998,7 @@ declare namespace shaka.media {
950
998
  interface IClosedCaptionParser {
951
999
  }
952
1000
  }
953
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1001
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
954
1002
  declare namespace shaka.media {
955
1003
  /**
956
1004
  * Creates an InitSegmentReference, which provides the location to an
@@ -958,7 +1006,7 @@ declare namespace shaka.media {
958
1006
  */
959
1007
  class InitSegmentReference {
960
1008
  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 ) ;
1009
+ 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
1010
  /**
963
1011
  * Returns the offset from the start of the resource to the end of the
964
1012
  * segment, inclusive. A value of null indicates that the segment extends
@@ -972,7 +1020,7 @@ declare namespace shaka.media {
972
1020
  getStartByte ( ) : number ;
973
1021
  }
974
1022
  }
975
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1023
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
976
1024
  declare namespace shaka.media {
977
1025
  class ManifestParser {
978
1026
  private noStructuralTyping_shaka_media_ManifestParser : any;
@@ -995,14 +1043,14 @@ declare namespace shaka.media {
995
1043
  static unregisterParserByMime (mimeType : string ) : any ;
996
1044
  }
997
1045
  }
998
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1046
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
999
1047
  declare namespace shaka.media.ManifestParser {
1000
1048
  enum AccessibilityPurpose {
1001
1049
  HARD_OF_HEARING = 'hard of hearing' ,
1002
1050
  VISUALLY_IMPAIRED = 'visually impaired' ,
1003
1051
  }
1004
1052
  }
1005
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1053
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1006
1054
  declare namespace shaka.media {
1007
1055
  /**
1008
1056
  * A meta-SegmentIndex composed of multiple other SegmentIndexes.
@@ -1028,7 +1076,7 @@ declare namespace shaka.media {
1028
1076
  updateEvery (interval : number , updateCallback : ( ) => ( shaka.media.SegmentReference | null ) [] | null ) : any ;
1029
1077
  }
1030
1078
  }
1031
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1079
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1032
1080
  declare namespace shaka.media {
1033
1081
  /**
1034
1082
  * PresentationTimeline.
@@ -1165,11 +1213,11 @@ declare namespace shaka.media {
1165
1213
  usingPresentationStartTime ( ) : boolean ;
1166
1214
  }
1167
1215
  }
1168
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1216
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1169
1217
  declare namespace shaka.media.PresentationTimeline {
1170
1218
  type TimeRange = { end : number , start : number , unscaledStart : number } ;
1171
1219
  }
1172
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1220
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1173
1221
  declare namespace shaka.media {
1174
1222
  /**
1175
1223
  * SegmentIndex.
@@ -1257,7 +1305,7 @@ declare namespace shaka.media {
1257
1305
  static forSingleSegment (startTime : number , duration : number , uris : string [] ) : shaka.media.SegmentIndex ;
1258
1306
  }
1259
1307
  }
1260
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1308
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1261
1309
  declare namespace shaka.media {
1262
1310
  /**
1263
1311
  * An iterator over a SegmentIndex's references.
@@ -1273,11 +1321,11 @@ declare namespace shaka.media {
1273
1321
  next ( ) : any ;
1274
1322
  }
1275
1323
  }
1276
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1324
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1277
1325
  declare namespace shaka.media.SegmentPrefetch {
1278
1326
  type FetchDispatcher = (a : shaka.media.InitSegmentReference | shaka.media.SegmentReference , b : shaka.extern.Stream , c ? : ( (a : ArrayBuffer | ArrayBufferView ) => Promise < any > ) | null ) => shaka.net.NetworkingEngine.PendingRequest ;
1279
1327
  }
1280
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1328
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1281
1329
  declare namespace shaka.media {
1282
1330
  /**
1283
1331
  * SegmentReference provides the start time, end time, and location to a media
@@ -1285,7 +1333,7 @@ declare namespace shaka.media {
1285
1333
  */
1286
1334
  class SegmentReference {
1287
1335
  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 , hlsAes128Key ? : shaka.extern.HlsAes128Key | null ) ;
1336
+ 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 ) ;
1289
1337
  /**
1290
1338
  * Returns the offset from the start of the resource to the end of the
1291
1339
  * segment, inclusive. A value of null indicates that the segment extends to
@@ -1372,7 +1420,7 @@ declare namespace shaka.media {
1372
1420
  syncAgainst (lowestSyncTime : number ) : any ;
1373
1421
  }
1374
1422
  }
1375
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1423
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1376
1424
  declare namespace shaka.media.SegmentReference {
1377
1425
  /**
1378
1426
  * Rather than using booleans to communicate what the state of the reference,
@@ -1388,11 +1436,11 @@ declare namespace shaka.media.SegmentReference {
1388
1436
  UNAVAILABLE = 1.0 ,
1389
1437
  }
1390
1438
  }
1391
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1439
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1392
1440
  declare namespace shaka.media.SegmentReference {
1393
1441
  type ThumbnailSprite = { height : number , positionX : number , positionY : number , width : number } ;
1394
1442
  }
1395
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1443
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1396
1444
  declare namespace shaka.mss {
1397
1445
  /**
1398
1446
  * Creates a new MSS parser.
@@ -1406,14 +1454,14 @@ declare namespace shaka.mss {
1406
1454
  update ( ) : any ;
1407
1455
  }
1408
1456
  }
1409
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1457
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1410
1458
  declare namespace shaka.net {
1411
1459
  class DataUriPlugin {
1412
1460
  private noStructuralTyping_shaka_net_DataUriPlugin : any;
1413
1461
  static parse (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated ) : shaka.extern.IAbortableOperation < any > ;
1414
1462
  }
1415
1463
  }
1416
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1464
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1417
1465
  declare namespace shaka.net {
1418
1466
  class HttpFetchPlugin {
1419
1467
  private noStructuralTyping_shaka_net_HttpFetchPlugin : any;
@@ -1426,14 +1474,14 @@ declare namespace shaka.net {
1426
1474
  static parse (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated , headersReceived : shaka.extern.HeadersReceived ) : shaka.extern.IAbortableOperation < any > ;
1427
1475
  }
1428
1476
  }
1429
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1477
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1430
1478
  declare namespace shaka.net {
1431
1479
  class HttpXHRPlugin {
1432
1480
  private noStructuralTyping_shaka_net_HttpXHRPlugin : any;
1433
1481
  static parse (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated , headersReceived : shaka.extern.HeadersReceived ) : shaka.extern.IAbortableOperation < any > ;
1434
1482
  }
1435
1483
  }
1436
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1484
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1437
1485
  declare namespace shaka.net {
1438
1486
  /**
1439
1487
  * NetworkingEngine wraps all networking operations. This accepts plugins that
@@ -1502,7 +1550,7 @@ declare namespace shaka.net {
1502
1550
  static unregisterScheme (scheme : string ) : any ;
1503
1551
  }
1504
1552
  }
1505
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1553
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1506
1554
  declare namespace shaka.net.NetworkingEngine {
1507
1555
  /**
1508
1556
  * A more advanced form of the RequestType structure, meant to describe
@@ -1527,7 +1575,7 @@ declare namespace shaka.net.NetworkingEngine {
1527
1575
  MSS = 5.0 ,
1528
1576
  }
1529
1577
  }
1530
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1578
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1531
1579
  declare namespace shaka.net.NetworkingEngine {
1532
1580
  /**
1533
1581
  * A wrapper class for the number of bytes remaining to be downloaded for the
@@ -1540,19 +1588,19 @@ declare namespace shaka.net.NetworkingEngine {
1540
1588
  private noStructuralTyping_shaka_net_NetworkingEngine_NumBytesRemainingClass : any;
1541
1589
  }
1542
1590
  }
1543
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1591
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1544
1592
  declare namespace shaka.net.NetworkingEngine {
1545
1593
  type OnDownloadFailed = (a : shaka.extern.Request , b : shaka.util.Error | null , c : number , d : boolean ) => any ;
1546
1594
  }
1547
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1595
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1548
1596
  declare namespace shaka.net.NetworkingEngine {
1549
1597
  type OnHeadersReceived = (a : { [ key: string ]: string } , b : shaka.extern.Request , c : shaka.net.NetworkingEngine.RequestType ) => any ;
1550
1598
  }
1551
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1599
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1552
1600
  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
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1603
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1556
1604
  declare namespace shaka.net.NetworkingEngine {
1557
1605
  /**
1558
1606
  * A pending network request. This can track the current progress of the
@@ -1567,7 +1615,7 @@ declare namespace shaka.net.NetworkingEngine {
1567
1615
  constructor (promise : Promise < any > , onAbort : shaka.extern.CreateSegmentIndexFunction , numBytesRemainingObj : shaka.net.NetworkingEngine.NumBytesRemainingClass | null ) ;
1568
1616
  }
1569
1617
  }
1570
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1618
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1571
1619
  declare namespace shaka.net.NetworkingEngine {
1572
1620
  /**
1573
1621
  * Priority level for network scheme plugins.
@@ -1585,7 +1633,7 @@ declare namespace shaka.net.NetworkingEngine {
1585
1633
  PREFERRED = 2.0 ,
1586
1634
  }
1587
1635
  }
1588
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1636
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1589
1637
  declare namespace shaka.net.NetworkingEngine {
1590
1638
  /**
1591
1639
  * Request types. Allows a filter to decide which requests to read/alter.
@@ -1594,6 +1642,7 @@ declare namespace shaka.net.NetworkingEngine {
1594
1642
  * Request types. Allows a filter to decide which requests to read/alter.
1595
1643
  */
1596
1644
  enum RequestType {
1645
+ ADS = 7.0 ,
1597
1646
  APP = 3.0 ,
1598
1647
  KEY = 6.0 ,
1599
1648
  LICENSE = 2.0 ,
@@ -1603,14 +1652,14 @@ declare namespace shaka.net.NetworkingEngine {
1603
1652
  TIMING = 4.0 ,
1604
1653
  }
1605
1654
  }
1606
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1655
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1607
1656
  declare namespace shaka.offline {
1608
1657
  class OfflineScheme {
1609
1658
  private noStructuralTyping_shaka_offline_OfflineScheme : any;
1610
1659
  static plugin (uri : string , request : shaka.extern.Request , requestType : shaka.net.NetworkingEngine.RequestType , progressUpdated : shaka.extern.ProgressUpdated ) : shaka.extern.IAbortableOperation < any > ;
1611
1660
  }
1612
1661
  }
1613
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1662
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1614
1663
  declare namespace shaka.offline {
1615
1664
  class Storage implements shaka.util.IDestroyable {
1616
1665
  private noStructuralTyping_shaka_offline_Storage : any;
@@ -1681,7 +1730,7 @@ declare namespace shaka.offline {
1681
1730
  static support ( ) : boolean ;
1682
1731
  }
1683
1732
  }
1684
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1733
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1685
1734
  declare namespace shaka.offline {
1686
1735
  /**
1687
1736
  * StorageMuxer is responsible for managing StorageMechanisms and addressing
@@ -1714,7 +1763,7 @@ declare namespace shaka.offline {
1714
1763
  static unregister (name : string ) : any ;
1715
1764
  }
1716
1765
  }
1717
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1766
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1718
1767
  declare namespace shaka {
1719
1768
  class polyfill {
1720
1769
  private noStructuralTyping_shaka_polyfill : any;
@@ -1729,7 +1778,7 @@ declare namespace shaka {
1729
1778
  static register (polyfill : ( ) => any , priority ? : number ) : any ;
1730
1779
  }
1731
1780
  }
1732
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1781
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1733
1782
  declare namespace shaka.polyfill {
1734
1783
  class AbortController extends AbortController {
1735
1784
  private noStructuralTyping_shaka_polyfill_AbortController : any;
@@ -1739,7 +1788,7 @@ declare namespace shaka.polyfill {
1739
1788
  static install ( ) : any ;
1740
1789
  }
1741
1790
  }
1742
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1791
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1743
1792
  declare namespace shaka.polyfill {
1744
1793
  class Aria {
1745
1794
  private noStructuralTyping_shaka_polyfill_Aria : any;
@@ -1749,7 +1798,7 @@ declare namespace shaka.polyfill {
1749
1798
  static install ( ) : any ;
1750
1799
  }
1751
1800
  }
1752
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1801
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1753
1802
  declare namespace shaka.polyfill {
1754
1803
  class EncryptionScheme {
1755
1804
  private noStructuralTyping_shaka_polyfill_EncryptionScheme : any;
@@ -1759,7 +1808,7 @@ declare namespace shaka.polyfill {
1759
1808
  static install ( ) : any ;
1760
1809
  }
1761
1810
  }
1762
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1811
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1763
1812
  declare namespace shaka.polyfill {
1764
1813
  class Fullscreen {
1765
1814
  private noStructuralTyping_shaka_polyfill_Fullscreen : any;
@@ -1769,7 +1818,7 @@ declare namespace shaka.polyfill {
1769
1818
  static install ( ) : any ;
1770
1819
  }
1771
1820
  }
1772
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1821
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1773
1822
  declare namespace shaka.polyfill {
1774
1823
  class MediaCapabilities {
1775
1824
  private noStructuralTyping_shaka_polyfill_MediaCapabilities : any;
@@ -1785,7 +1834,7 @@ declare namespace shaka.polyfill {
1785
1834
  static originalMcap : any | null ;
1786
1835
  }
1787
1836
  }
1788
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1837
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1789
1838
  declare namespace shaka.polyfill {
1790
1839
  class MediaSource {
1791
1840
  private noStructuralTyping_shaka_polyfill_MediaSource : any;
@@ -1795,7 +1844,7 @@ declare namespace shaka.polyfill {
1795
1844
  static install ( ) : any ;
1796
1845
  }
1797
1846
  }
1798
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1847
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1799
1848
  declare namespace shaka.polyfill {
1800
1849
  class Orientation {
1801
1850
  private noStructuralTyping_shaka_polyfill_Orientation : any;
@@ -1805,7 +1854,7 @@ declare namespace shaka.polyfill {
1805
1854
  static install ( ) : any ;
1806
1855
  }
1807
1856
  }
1808
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1857
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1809
1858
  declare namespace shaka.polyfill {
1810
1859
  class PatchedMediaKeysApple {
1811
1860
  private noStructuralTyping_shaka_polyfill_PatchedMediaKeysApple : any;
@@ -1820,7 +1869,7 @@ declare namespace shaka.polyfill {
1820
1869
  static uninstall ( ) : any ;
1821
1870
  }
1822
1871
  }
1823
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1872
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1824
1873
  declare namespace shaka.polyfill {
1825
1874
  class PatchedMediaKeysNop {
1826
1875
  private noStructuralTyping_shaka_polyfill_PatchedMediaKeysNop : any;
@@ -1830,7 +1879,7 @@ declare namespace shaka.polyfill {
1830
1879
  static install ( ) : any ;
1831
1880
  }
1832
1881
  }
1833
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1882
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1834
1883
  declare namespace shaka.polyfill {
1835
1884
  class PatchedMediaKeysWebkit {
1836
1885
  private noStructuralTyping_shaka_polyfill_PatchedMediaKeysWebkit : any;
@@ -1840,7 +1889,7 @@ declare namespace shaka.polyfill {
1840
1889
  static install ( ) : any ;
1841
1890
  }
1842
1891
  }
1843
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1892
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1844
1893
  declare namespace shaka.polyfill {
1845
1894
  class PiPWebkit {
1846
1895
  private noStructuralTyping_shaka_polyfill_PiPWebkit : any;
@@ -1850,7 +1899,7 @@ declare namespace shaka.polyfill {
1850
1899
  static install ( ) : any ;
1851
1900
  }
1852
1901
  }
1853
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1902
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1854
1903
  declare namespace shaka.polyfill {
1855
1904
  class RandomUUID {
1856
1905
  private noStructuralTyping_shaka_polyfill_RandomUUID : any;
@@ -1860,7 +1909,7 @@ declare namespace shaka.polyfill {
1860
1909
  static install ( ) : any ;
1861
1910
  }
1862
1911
  }
1863
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1912
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1864
1913
  declare namespace shaka.polyfill {
1865
1914
  class StorageEstimate {
1866
1915
  private noStructuralTyping_shaka_polyfill_StorageEstimate : any;
@@ -1870,7 +1919,7 @@ declare namespace shaka.polyfill {
1870
1919
  static install ( ) : any ;
1871
1920
  }
1872
1921
  }
1873
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1922
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1874
1923
  declare namespace shaka.polyfill {
1875
1924
  class Symbol {
1876
1925
  private noStructuralTyping_shaka_polyfill_Symbol : any;
@@ -1880,7 +1929,7 @@ declare namespace shaka.polyfill {
1880
1929
  static install ( ) : any ;
1881
1930
  }
1882
1931
  }
1883
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1932
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1884
1933
  declare namespace shaka.polyfill {
1885
1934
  class VTTCue {
1886
1935
  private noStructuralTyping_shaka_polyfill_VTTCue : any;
@@ -1890,7 +1939,7 @@ declare namespace shaka.polyfill {
1890
1939
  static install ( ) : any ;
1891
1940
  }
1892
1941
  }
1893
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1942
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1894
1943
  declare namespace shaka.polyfill {
1895
1944
  class VideoPlayPromise {
1896
1945
  private noStructuralTyping_shaka_polyfill_VideoPlayPromise : any;
@@ -1900,7 +1949,7 @@ declare namespace shaka.polyfill {
1900
1949
  static install ( ) : any ;
1901
1950
  }
1902
1951
  }
1903
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1952
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1904
1953
  declare namespace shaka.polyfill {
1905
1954
  class VideoPlaybackQuality {
1906
1955
  private noStructuralTyping_shaka_polyfill_VideoPlaybackQuality : any;
@@ -1910,14 +1959,193 @@ declare namespace shaka.polyfill {
1910
1959
  static install ( ) : any ;
1911
1960
  }
1912
1961
  }
1913
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
1962
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1914
1963
  declare namespace shaka.text {
1915
1964
  class Cue {
1916
1965
  private noStructuralTyping_shaka_text_Cue : any;
1917
1966
  constructor (startTime : number , endTime : number , payload : string ) ;
1967
+ /**
1968
+ * Text background color as a CSS color, e.g. "#FFFFFF" or "white".
1969
+ */
1970
+ backgroundColor : string ;
1971
+ /**
1972
+ * The URL of the background image, e.g. "data:[mime type];base64,[data]".
1973
+ */
1974
+ backgroundImage : string ;
1975
+ /**
1976
+ * The border around this cue as a CSS border.
1977
+ */
1978
+ border : string ;
1979
+ /**
1980
+ * The number of horizontal and vertical cells into which the Root Container
1981
+ * Region area is divided.
1982
+ */
1983
+ cellResolution : { columns : number , rows : number } ;
1984
+ /**
1985
+ * Text color as a CSS color, e.g. "#FFFFFF" or "white".
1986
+ */
1987
+ color : string ;
1988
+ /**
1989
+ * Text direction of the cue.
1990
+ */
1991
+ direction : shaka.text.Cue.direction ;
1992
+ /**
1993
+ * Vertical alignments of the cues within their extents.
1994
+ * 'BEFORE' means displaying the captions at the top of the text display
1995
+ * container box, 'CENTER' means in the middle, 'AFTER' means at the bottom.
1996
+ */
1997
+ displayAlign : shaka.text.Cue.displayAlign ;
1998
+ /**
1999
+ * The end time of the cue in seconds, relative to the start of the
2000
+ * presentation.
2001
+ */
2002
+ endTime : number ;
2003
+ /**
2004
+ * Text font family.
2005
+ */
2006
+ fontFamily : string ;
2007
+ /**
2008
+ * Text font size in px or em (e.g. '100px'/'100em').
2009
+ */
2010
+ fontSize : string ;
2011
+ /**
2012
+ * Text font style. Normal, italic or oblique.
2013
+ */
2014
+ fontStyle : shaka.text.Cue.fontStyle ;
2015
+ /**
2016
+ * Text font weight. Either normal or bold.
2017
+ */
2018
+ fontWeight : shaka.text.Cue.fontWeight ;
2019
+ /**
2020
+ * Id of the cue.
2021
+ */
2022
+ id : string ;
2023
+ /**
2024
+ * If true, this represents a container element that is "above" the main
2025
+ * cues. For example, the <body> and <div> tags that contain the <p> tags
2026
+ * in a TTML file. This controls the flow of the final cues; any nested cues
2027
+ * within an "isContainer" cue will be laid out as separate lines.
2028
+ */
2029
+ isContainer : boolean ;
2030
+ /**
2031
+ * Text letter spacing as a CSS letter-spacing value.
2032
+ */
2033
+ letterSpacing : string ;
2034
+ /**
2035
+ * The offset from the display box in either number of lines or
2036
+ * percentage depending on the value of lineInterpretation.
2037
+ */
2038
+ line : number | null ;
2039
+ /**
2040
+ * Line alignment of the cue box.
2041
+ * Start alignment means the cue box’s top side (for horizontal cues), left
2042
+ * side (for vertical growing right), or right side (for vertical growing
2043
+ * left) is aligned at the line.
2044
+ * Center alignment means the cue box is centered at the line.
2045
+ * End alignment The cue box’s bottom side (for horizontal cues), right side
2046
+ * (for vertical growing right), or left side (for vertical growing left) is
2047
+ * aligned at the line.
2048
+ */
2049
+ lineAlign : shaka.text.Cue.lineAlign ;
2050
+ /**
2051
+ * Whether or not the cue only acts as a line break between two nested cues.
2052
+ * Should only appear in nested cues.
2053
+ */
2054
+ lineBreak : boolean ;
2055
+ /**
2056
+ * Separation between line areas inside the cue box in px or em
2057
+ * (e.g. '100px'/'100em'). If not specified, this should be no less than
2058
+ * the largest font size applied to the text in the cue.
2059
+ */
2060
+ lineHeight : string ;
2061
+ /**
2062
+ * The way to interpret line field. (Either as an integer line number or
2063
+ * percentage from the display box).
2064
+ */
2065
+ lineInterpretation : shaka.text.Cue.lineInterpretation ;
2066
+ /**
2067
+ * Text line padding as a CSS line-padding value.
2068
+ */
2069
+ linePadding : string ;
2070
+ /**
2071
+ * Nested cues, which should be laid out horizontally in one block.
2072
+ * Top-level cues are blocks, and nested cues are inline elements.
2073
+ * Cues can be nested arbitrarily deeply.
2074
+ */
2075
+ nestedCues : shaka.text.Cue [] ;
2076
+ /**
2077
+ * Opacity of the cue element, from 0-1.
2078
+ */
2079
+ opacity : number ;
2080
+ /**
2081
+ * The text payload of the cue. If nestedCues is non-empty, this should be
2082
+ * empty. Top-level block containers should have no payload of their own.
2083
+ */
2084
+ payload : string ;
2085
+ /**
2086
+ * The indent (in percent) of the cue box in the direction defined by the
2087
+ * writing direction.
2088
+ */
2089
+ position : number | null ;
2090
+ /**
2091
+ * Position alignment of the cue.
2092
+ */
2093
+ positionAlign : shaka.text.Cue.positionAlign ;
2094
+ /**
2095
+ * The region to render the cue into. Only supported on top-level cues,
2096
+ * because nested cues are inline elements.
2097
+ */
2098
+ region : shaka.text.CueRegion | null ;
2099
+ /**
2100
+ * Used to indicate the type of ruby tag that should be used when rendering
2101
+ * the cue. Valid values: ruby, rp, rt.
2102
+ */
2103
+ rubyTag : string | null ;
2104
+ /**
2105
+ * Size of the cue box (in percents), where 0 means "auto".
2106
+ */
2107
+ size : number ;
2108
+ /**
2109
+ * The start time of the cue in seconds, relative to the start of the
2110
+ * presentation.
2111
+ */
2112
+ startTime : number ;
2113
+ /**
2114
+ * Alignment of the text inside the cue box.
2115
+ */
2116
+ textAlign : shaka.text.Cue.textAlign ;
2117
+ /**
2118
+ * Text combine upright as a CSS text-combine-upright value.
2119
+ */
2120
+ textCombineUpright : string ;
2121
+ /**
2122
+ * Text decoration. A combination of underline, overline
2123
+ * and line through. Empty array means no decoration.
2124
+ */
2125
+ textDecoration : shaka.text.Cue.textDecoration [] ;
2126
+ /**
2127
+ * Text shadow color as a CSS text-shadow value.
2128
+ */
2129
+ textShadow : string ;
2130
+ /**
2131
+ * Text stroke color as a CSS color, e.g. "#FFFFFF" or "white".
2132
+ */
2133
+ textStrokeColor : string ;
2134
+ /**
2135
+ * Text stroke width as a CSS stroke-width value.
2136
+ */
2137
+ textStrokeWidth : string ;
2138
+ /**
2139
+ * Whether or not line wrapping should be applied to the cue.
2140
+ */
2141
+ wrapLine : boolean ;
2142
+ /**
2143
+ * Text writing mode of the cue.
2144
+ */
2145
+ writingMode : shaka.text.Cue.writingMode ;
1918
2146
  }
1919
2147
  }
1920
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2148
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1921
2149
  declare namespace shaka.text.Cue {
1922
2150
  /**
1923
2151
  * Default text background color according to
@@ -1938,7 +2166,7 @@ declare namespace shaka.text.Cue {
1938
2166
  bg_yellow = 'yellow' ,
1939
2167
  }
1940
2168
  }
1941
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2169
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1942
2170
  declare namespace shaka.text.Cue {
1943
2171
  /**
1944
2172
  * Default text color according to
@@ -1959,14 +2187,14 @@ declare namespace shaka.text.Cue {
1959
2187
  yellow = 'yellow' ,
1960
2188
  }
1961
2189
  }
1962
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2190
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1963
2191
  declare namespace shaka.text.Cue {
1964
2192
  enum direction {
1965
2193
  HORIZONTAL_LEFT_TO_RIGHT = 'ltr' ,
1966
2194
  HORIZONTAL_RIGHT_TO_LEFT = 'rtl' ,
1967
2195
  }
1968
2196
  }
1969
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2197
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1970
2198
  declare namespace shaka.text.Cue {
1971
2199
  /**
1972
2200
  * Vertical alignments of the cues within their extents.
@@ -1984,7 +2212,7 @@ declare namespace shaka.text.Cue {
1984
2212
  CENTER = 'center' ,
1985
2213
  }
1986
2214
  }
1987
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2215
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1988
2216
  declare namespace shaka.text.Cue {
1989
2217
  enum fontStyle {
1990
2218
  ITALIC = 'italic' ,
@@ -1992,7 +2220,7 @@ declare namespace shaka.text.Cue {
1992
2220
  OBLIQUE = 'oblique' ,
1993
2221
  }
1994
2222
  }
1995
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2223
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
1996
2224
  declare namespace shaka.text.Cue {
1997
2225
  /**
1998
2226
  * In CSS font weight can be a number, where 400 is normal and 700 is bold.
@@ -2007,7 +2235,7 @@ declare namespace shaka.text.Cue {
2007
2235
  NORMAL = 400.0 ,
2008
2236
  }
2009
2237
  }
2010
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2238
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2011
2239
  declare namespace shaka.text.Cue {
2012
2240
  enum lineAlign {
2013
2241
  CENTER = 'center' ,
@@ -2015,14 +2243,14 @@ declare namespace shaka.text.Cue {
2015
2243
  START = 'start' ,
2016
2244
  }
2017
2245
  }
2018
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2246
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2019
2247
  declare namespace shaka.text.Cue {
2020
2248
  enum lineInterpretation {
2021
2249
  LINE_NUMBER = 0.0 ,
2022
2250
  PERCENTAGE = 1.0 ,
2023
2251
  }
2024
2252
  }
2025
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2253
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2026
2254
  declare namespace shaka.text.Cue {
2027
2255
  enum positionAlign {
2028
2256
  AUTO = 'auto' ,
@@ -2031,7 +2259,7 @@ declare namespace shaka.text.Cue {
2031
2259
  RIGHT = 'line-right' ,
2032
2260
  }
2033
2261
  }
2034
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2262
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2035
2263
  declare namespace shaka.text.Cue {
2036
2264
  enum textAlign {
2037
2265
  CENTER = 'center' ,
@@ -2041,7 +2269,7 @@ declare namespace shaka.text.Cue {
2041
2269
  START = 'start' ,
2042
2270
  }
2043
2271
  }
2044
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2272
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2045
2273
  declare namespace shaka.text.Cue {
2046
2274
  enum textDecoration {
2047
2275
  LINE_THROUGH = 'lineThrough' ,
@@ -2049,7 +2277,7 @@ declare namespace shaka.text.Cue {
2049
2277
  UNDERLINE = 'underline' ,
2050
2278
  }
2051
2279
  }
2052
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2280
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2053
2281
  declare namespace shaka.text.Cue {
2054
2282
  enum writingMode {
2055
2283
  HORIZONTAL_TOP_TO_BOTTOM = 'horizontal-tb' ,
@@ -2057,20 +2285,71 @@ declare namespace shaka.text.Cue {
2057
2285
  VERTICAL_RIGHT_TO_LEFT = 'vertical-rl' ,
2058
2286
  }
2059
2287
  }
2060
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2288
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2061
2289
  declare namespace shaka.text {
2062
2290
  class CueRegion {
2063
2291
  private noStructuralTyping_shaka_text_CueRegion : any;
2292
+ /**
2293
+ * The width of the rendering area in heightUnits.
2294
+ */
2295
+ height : number ;
2296
+ /**
2297
+ * The units (percentage, pixels or lines) the region height is in.
2298
+ */
2299
+ heightUnits : shaka.text.CueRegion.units ;
2300
+ /**
2301
+ * Region identifier.
2302
+ */
2303
+ id : string ;
2304
+ /**
2305
+ * The X offset to start the rendering area in percentage (0-100) of this
2306
+ * region width.
2307
+ */
2308
+ regionAnchorX : number ;
2309
+ /**
2310
+ * The Y offset to start the rendering area in percentage (0-100) of the
2311
+ * region height.
2312
+ */
2313
+ regionAnchorY : number ;
2314
+ /**
2315
+ * If scroll=UP, it means that cues in the region will be added to the
2316
+ * bottom of the region and will push any already displayed cues in the
2317
+ * region up. Otherwise (scroll=NONE) cues will stay fixed at the location
2318
+ * they were first painted in.
2319
+ */
2320
+ scroll : shaka.text.CueRegion.scrollMode ;
2321
+ /**
2322
+ * The units (percentage or pixels) the region viewportAnchors are in.
2323
+ */
2324
+ viewportAnchorUnits : shaka.text.CueRegion.units ;
2325
+ /**
2326
+ * The X offset to start the rendering area in viewportAnchorUnits of the
2327
+ * video width.
2328
+ */
2329
+ viewportAnchorX : number ;
2330
+ /**
2331
+ * The X offset to start the rendering area in viewportAnchorUnits of the
2332
+ * video height.
2333
+ */
2334
+ viewportAnchorY : number ;
2335
+ /**
2336
+ * The width of the rendering area in widthUnits.
2337
+ */
2338
+ width : number ;
2339
+ /**
2340
+ * The units (percentage or pixels) the region width is in.
2341
+ */
2342
+ widthUnits : shaka.text.CueRegion.units ;
2064
2343
  }
2065
2344
  }
2066
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2345
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2067
2346
  declare namespace shaka.text.CueRegion {
2068
2347
  enum scrollMode {
2069
2348
  NONE = '' ,
2070
2349
  UP = 'up' ,
2071
2350
  }
2072
2351
  }
2073
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2352
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2074
2353
  declare namespace shaka.text.CueRegion {
2075
2354
  enum units {
2076
2355
  LINES = 2.0 ,
@@ -2078,7 +2357,7 @@ declare namespace shaka.text.CueRegion {
2078
2357
  PX = 0.0 ,
2079
2358
  }
2080
2359
  }
2081
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2360
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2082
2361
  declare namespace shaka.text {
2083
2362
  /**
2084
2363
  * LRC file format: https://en.wikipedia.org/wiki/LRC_(file_format)
@@ -2091,7 +2370,7 @@ declare namespace shaka.text {
2091
2370
  setSequenceMode (sequenceMode : any ) : any ;
2092
2371
  }
2093
2372
  }
2094
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2373
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2095
2374
  declare namespace shaka.text {
2096
2375
  class Mp4TtmlParser implements shaka.extern.TextParser {
2097
2376
  private noStructuralTyping_shaka_text_Mp4TtmlParser : any;
@@ -2101,7 +2380,7 @@ declare namespace shaka.text {
2101
2380
  setSequenceMode (sequenceMode : any ) : any ;
2102
2381
  }
2103
2382
  }
2104
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2383
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2105
2384
  declare namespace shaka.text {
2106
2385
  class Mp4VttParser implements shaka.extern.TextParser {
2107
2386
  private noStructuralTyping_shaka_text_Mp4VttParser : any;
@@ -2111,7 +2390,7 @@ declare namespace shaka.text {
2111
2390
  setSequenceMode (sequenceMode : any ) : any ;
2112
2391
  }
2113
2392
  }
2114
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2393
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2115
2394
  declare namespace shaka.text {
2116
2395
  class SbvTextParser implements shaka.extern.TextParser {
2117
2396
  private noStructuralTyping_shaka_text_SbvTextParser : any;
@@ -2121,7 +2400,7 @@ declare namespace shaka.text {
2121
2400
  setSequenceMode (sequenceMode : any ) : any ;
2122
2401
  }
2123
2402
  }
2124
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2403
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2125
2404
  declare namespace shaka.text {
2126
2405
  /**
2127
2406
  * A text displayer plugin using the browser's native VTTCue interface.
@@ -2139,7 +2418,7 @@ declare namespace shaka.text {
2139
2418
  setTextVisibility (on : any ) : any ;
2140
2419
  }
2141
2420
  }
2142
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2421
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2143
2422
  declare namespace shaka.text {
2144
2423
  class SrtTextParser implements shaka.extern.TextParser {
2145
2424
  private noStructuralTyping_shaka_text_SrtTextParser : any;
@@ -2153,7 +2432,7 @@ declare namespace shaka.text {
2153
2432
  static srt2webvtt (data : string ) : string ;
2154
2433
  }
2155
2434
  }
2156
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2435
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2157
2436
  declare namespace shaka.text {
2158
2437
  /**
2159
2438
  * Documentation: http://moodub.free.fr/video/ass-specs.doc
@@ -2167,7 +2446,7 @@ declare namespace shaka.text {
2167
2446
  setSequenceMode (sequenceMode : any ) : any ;
2168
2447
  }
2169
2448
  }
2170
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2449
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2171
2450
  declare namespace shaka.text {
2172
2451
  class TextEngine implements shaka.util.IDestroyable {
2173
2452
  private noStructuralTyping_shaka_text_TextEngine : any;
@@ -2178,7 +2457,7 @@ declare namespace shaka.text {
2178
2457
  static unregisterParser (mimeType : string ) : any ;
2179
2458
  }
2180
2459
  }
2181
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2460
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2182
2461
  declare namespace shaka.text {
2183
2462
  class TtmlTextParser implements shaka.extern.TextParser {
2184
2463
  private noStructuralTyping_shaka_text_TtmlTextParser : any;
@@ -2188,7 +2467,7 @@ declare namespace shaka.text {
2188
2467
  setSequenceMode (sequenceMode : any ) : any ;
2189
2468
  }
2190
2469
  }
2191
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2470
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2192
2471
  declare namespace shaka.text {
2193
2472
  /**
2194
2473
  * The text displayer plugin for the Shaka Player UI. Can also be used directly
@@ -2208,7 +2487,7 @@ declare namespace shaka.text {
2208
2487
  setTextVisibility (on : any ) : any ;
2209
2488
  }
2210
2489
  }
2211
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2490
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2212
2491
  declare namespace shaka.text {
2213
2492
  class VttTextParser implements shaka.extern.TextParser {
2214
2493
  private noStructuralTyping_shaka_text_VttTextParser : any;
@@ -2218,13 +2497,13 @@ declare namespace shaka.text {
2218
2497
  setSequenceMode (sequenceMode : any ) : any ;
2219
2498
  }
2220
2499
  }
2221
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2500
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2222
2501
  declare namespace shaka.text {
2223
2502
  class WebVttGenerator {
2224
2503
  private noStructuralTyping_shaka_text_WebVttGenerator : any;
2225
2504
  }
2226
2505
  }
2227
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2506
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2228
2507
  declare namespace shaka.transmuxer {
2229
2508
  class AacTransmuxer implements shaka.extern.Transmuxer {
2230
2509
  private noStructuralTyping_shaka_transmuxer_AacTransmuxer : any;
@@ -2239,7 +2518,7 @@ declare namespace shaka.transmuxer {
2239
2518
  transmux (data : any , stream : any , reference : any , duration : any ) : any ;
2240
2519
  }
2241
2520
  }
2242
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2521
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2243
2522
  declare namespace shaka.transmuxer {
2244
2523
  class Ac3Transmuxer implements shaka.extern.Transmuxer {
2245
2524
  private noStructuralTyping_shaka_transmuxer_Ac3Transmuxer : any;
@@ -2254,7 +2533,7 @@ declare namespace shaka.transmuxer {
2254
2533
  transmux (data : any , stream : any , reference : any , duration : any ) : any ;
2255
2534
  }
2256
2535
  }
2257
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2536
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2258
2537
  declare namespace shaka.transmuxer {
2259
2538
  class Ec3Transmuxer implements shaka.extern.Transmuxer {
2260
2539
  private noStructuralTyping_shaka_transmuxer_Ec3Transmuxer : any;
@@ -2269,7 +2548,7 @@ declare namespace shaka.transmuxer {
2269
2548
  transmux (data : any , stream : any , reference : any , duration : any ) : any ;
2270
2549
  }
2271
2550
  }
2272
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2551
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2273
2552
  declare namespace shaka.transmuxer {
2274
2553
  class Mp3Transmuxer implements shaka.extern.Transmuxer {
2275
2554
  private noStructuralTyping_shaka_transmuxer_Mp3Transmuxer : any;
@@ -2284,7 +2563,7 @@ declare namespace shaka.transmuxer {
2284
2563
  transmux (data : any , stream : any , reference : any , duration : any ) : any ;
2285
2564
  }
2286
2565
  }
2287
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2566
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2288
2567
  declare namespace shaka.transmuxer {
2289
2568
  class MpegTsTransmuxer implements shaka.extern.Transmuxer {
2290
2569
  private noStructuralTyping_shaka_transmuxer_MpegTsTransmuxer : any;
@@ -2296,10 +2575,10 @@ declare namespace shaka.transmuxer {
2296
2575
  * Check if the mime type and the content type is supported.
2297
2576
  */
2298
2577
  isSupported (mimeType : string , contentType ? : string ) : boolean ;
2299
- transmux (data : any ) : any ;
2578
+ transmux (data : any , stream : any , reference : any , duration : any , contentType : any ) : any ;
2300
2579
  }
2301
2580
  }
2302
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2581
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2303
2582
  declare namespace shaka.transmuxer {
2304
2583
  class MssTransmuxer implements shaka.extern.Transmuxer {
2305
2584
  private noStructuralTyping_shaka_transmuxer_MssTransmuxer : any;
@@ -2314,22 +2593,7 @@ declare namespace shaka.transmuxer {
2314
2593
  transmux (data : any , stream : any , reference : any ) : any ;
2315
2594
  }
2316
2595
  }
2317
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2318
- declare namespace shaka.transmuxer {
2319
- class MuxjsTransmuxer implements shaka.extern.Transmuxer {
2320
- private noStructuralTyping_shaka_transmuxer_MuxjsTransmuxer : any;
2321
- constructor (mimeType : string ) ;
2322
- convertCodecs (contentType : any , mimeType : any ) : any ;
2323
- destroy ( ) : any ;
2324
- getOrginalMimeType ( ) : any ;
2325
- /**
2326
- * Check if the mime type and the content type is supported.
2327
- */
2328
- isSupported (mimeType : string , contentType ? : string ) : boolean ;
2329
- transmux (data : any ) : any ;
2330
- }
2331
- }
2332
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2596
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2333
2597
  declare namespace shaka.transmuxer {
2334
2598
  class TransmuxerEngine implements shaka.util.IDestroyable {
2335
2599
  private noStructuralTyping_shaka_transmuxer_TransmuxerEngine : any;
@@ -2339,7 +2603,7 @@ declare namespace shaka.transmuxer {
2339
2603
  static unregisterTransmuxer (mimeType : string , priority : number ) : any ;
2340
2604
  }
2341
2605
  }
2342
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2606
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2343
2607
  declare namespace shaka.transmuxer.TransmuxerEngine {
2344
2608
  /**
2345
2609
  * Priority level for transmuxer plugins.
@@ -2358,7 +2622,7 @@ declare namespace shaka.transmuxer.TransmuxerEngine {
2358
2622
  PREFERRED_SECONDARY = 2.0 ,
2359
2623
  }
2360
2624
  }
2361
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2625
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2362
2626
  declare namespace shaka.transmuxer {
2363
2627
  class TsTransmuxer implements shaka.extern.Transmuxer {
2364
2628
  private noStructuralTyping_shaka_transmuxer_TsTransmuxer : any;
@@ -2373,49 +2637,49 @@ declare namespace shaka.transmuxer {
2373
2637
  transmux (data : any , stream : any , reference : any , duration : any , contentType : any ) : any ;
2374
2638
  }
2375
2639
  }
2376
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2640
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2377
2641
  declare namespace shaka.ui {
2378
2642
  class AdCounter extends shaka.ui.Element {
2379
2643
  private noStructuralTyping_shaka_ui_AdCounter : any;
2380
2644
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2381
2645
  }
2382
2646
  }
2383
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2647
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2384
2648
  declare namespace shaka.ui {
2385
2649
  class AdPosition extends shaka.ui.Element {
2386
2650
  private noStructuralTyping_shaka_ui_AdPosition : any;
2387
2651
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2388
2652
  }
2389
2653
  }
2390
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2654
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2391
2655
  declare namespace shaka.ui {
2392
2656
  class AirPlayButton extends shaka.ui.Element {
2393
2657
  private noStructuralTyping_shaka_ui_AirPlayButton : any;
2394
2658
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2395
2659
  }
2396
2660
  }
2397
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2661
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2398
2662
  declare namespace shaka.ui {
2399
2663
  class AudioLanguageSelection extends shaka.ui.SettingsMenu {
2400
2664
  private noStructuralTyping_shaka_ui_AudioLanguageSelection : any;
2401
2665
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2402
2666
  }
2403
2667
  }
2404
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2668
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2405
2669
  declare namespace shaka.ui {
2406
2670
  class BigPlayButton extends shaka.ui.PlayButton {
2407
2671
  private noStructuralTyping_shaka_ui_BigPlayButton : any;
2408
2672
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2409
2673
  }
2410
2674
  }
2411
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2675
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2412
2676
  declare namespace shaka.ui {
2413
2677
  class CastButton extends shaka.ui.Element {
2414
2678
  private noStructuralTyping_shaka_ui_CastButton : any;
2415
2679
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2416
2680
  }
2417
2681
  }
2418
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2682
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2419
2683
  declare namespace shaka.ui {
2420
2684
  class ContextMenu extends shaka.ui.Element {
2421
2685
  private noStructuralTyping_shaka_ui_ContextMenu : any;
@@ -2423,7 +2687,7 @@ declare namespace shaka.ui {
2423
2687
  static registerElement (name : string , factory : shaka.extern.IUIElement.Factory ) : any ;
2424
2688
  }
2425
2689
  }
2426
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2690
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2427
2691
  declare namespace shaka.ui {
2428
2692
  /**
2429
2693
  * A container for custom video controls.
@@ -2460,6 +2724,8 @@ declare namespace shaka.ui {
2460
2724
  isFullScreenEnabled ( ) : boolean ;
2461
2725
  isFullScreenSupported ( ) : boolean ;
2462
2726
  isOpaque ( ) : boolean ;
2727
+ isPiPAllowed ( ) : boolean ;
2728
+ isPiPEnabled ( ) : boolean ;
2463
2729
  isSeeking ( ) : boolean ;
2464
2730
  /**
2465
2731
  * Used by the application to notify the controls that a load operation is
@@ -2481,11 +2747,12 @@ declare namespace shaka.ui {
2481
2747
  setSeeking (seeking : boolean ) : any ;
2482
2748
  showAdUI ( ) : any ;
2483
2749
  toggleFullScreen ( ) : any ;
2750
+ togglePiP ( ) : any ;
2484
2751
  static registerElement (name : string , factory : shaka.extern.IUIElement.Factory ) : any ;
2485
2752
  static registerSeekBar (factory : shaka.extern.IUISeekBar.Factory ) : any ;
2486
2753
  }
2487
2754
  }
2488
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2755
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2489
2756
  declare namespace shaka.ui {
2490
2757
  abstract class Element implements shaka.extern.IUIElement {
2491
2758
  private noStructuralTyping_shaka_ui_Element : any;
@@ -2501,21 +2768,21 @@ player : shaka.Player | null ;
2501
2768
  video : HTMLMediaElement | null ;
2502
2769
  }
2503
2770
  }
2504
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2771
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2505
2772
  declare namespace shaka.ui {
2506
2773
  class FastForwardButton extends shaka.ui.Element {
2507
2774
  private noStructuralTyping_shaka_ui_FastForwardButton : any;
2508
2775
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2509
2776
  }
2510
2777
  }
2511
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2778
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2512
2779
  declare namespace shaka.ui {
2513
2780
  class FullscreenButton extends shaka.ui.Element {
2514
2781
  private noStructuralTyping_shaka_ui_FullscreenButton : any;
2515
2782
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2516
2783
  }
2517
2784
  }
2518
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2785
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2519
2786
  declare namespace shaka.ui {
2520
2787
  /**
2521
2788
  * Localization system provided by the shaka ui library.
@@ -2590,7 +2857,7 @@ declare namespace shaka.ui {
2590
2857
  static UNKNOWN_LOCALIZATION : string ;
2591
2858
  }
2592
2859
  }
2593
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2860
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2594
2861
  declare namespace shaka.ui.Localization {
2595
2862
  /**
2596
2863
  * An enum for how the localization system should resolve conflicts between old
@@ -2605,21 +2872,21 @@ declare namespace shaka.ui.Localization {
2605
2872
  USE_OLD = 0.0 ,
2606
2873
  }
2607
2874
  }
2608
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2875
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2609
2876
  declare namespace shaka.ui {
2610
2877
  class LoopButton extends shaka.ui.Element {
2611
2878
  private noStructuralTyping_shaka_ui_LoopButton : any;
2612
2879
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2613
2880
  }
2614
2881
  }
2615
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2882
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2616
2883
  declare namespace shaka.ui {
2617
2884
  class MuteButton extends shaka.ui.Element {
2618
2885
  private noStructuralTyping_shaka_ui_MuteButton : any;
2619
2886
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2620
2887
  }
2621
2888
  }
2622
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2889
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2623
2890
  declare namespace shaka.ui {
2624
2891
  class OverflowMenu extends shaka.ui.Element {
2625
2892
  private noStructuralTyping_shaka_ui_OverflowMenu : any;
@@ -2627,7 +2894,7 @@ declare namespace shaka.ui {
2627
2894
  static registerElement (name : string , factory : shaka.extern.IUIElement.Factory ) : any ;
2628
2895
  }
2629
2896
  }
2630
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2897
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2631
2898
  declare namespace shaka.ui {
2632
2899
  class Overlay implements shaka.util.IDestroyable {
2633
2900
  private noStructuralTyping_shaka_ui_Overlay : any;
@@ -2647,7 +2914,7 @@ declare namespace shaka.ui {
2647
2914
  setEnabled (enabled : boolean ) : any ;
2648
2915
  }
2649
2916
  }
2650
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2917
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2651
2918
  declare namespace shaka.ui.Overlay {
2652
2919
  /**
2653
2920
  * Describes the possible reasons that the UI might fail to load.
@@ -2660,7 +2927,7 @@ declare namespace shaka.ui.Overlay {
2660
2927
  PLAYER_FAILED_TO_LOAD = 1.0 ,
2661
2928
  }
2662
2929
  }
2663
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2930
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2664
2931
  declare namespace shaka.ui.Overlay {
2665
2932
  /**
2666
2933
  * Describes what information should show up in labels for selecting audio
@@ -2677,35 +2944,35 @@ declare namespace shaka.ui.Overlay {
2677
2944
  ROLE = 1.0 ,
2678
2945
  }
2679
2946
  }
2680
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2947
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2681
2948
  declare namespace shaka.ui {
2682
2949
  class PipButton extends shaka.ui.Element {
2683
2950
  private noStructuralTyping_shaka_ui_PipButton : any;
2684
2951
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2685
2952
  }
2686
2953
  }
2687
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2954
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2688
2955
  declare namespace shaka.ui {
2689
2956
  class PlayButton extends shaka.ui.Element {
2690
2957
  private noStructuralTyping_shaka_ui_PlayButton : any;
2691
2958
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2692
2959
  }
2693
2960
  }
2694
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2961
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2695
2962
  declare namespace shaka.ui {
2696
2963
  class PlaybackRateSelection extends shaka.ui.SettingsMenu {
2697
2964
  private noStructuralTyping_shaka_ui_PlaybackRateSelection : any;
2698
2965
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2699
2966
  }
2700
2967
  }
2701
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2968
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2702
2969
  declare namespace shaka.ui {
2703
2970
  class PresentationTimeTracker extends shaka.ui.Element {
2704
2971
  private noStructuralTyping_shaka_ui_PresentationTimeTracker : any;
2705
2972
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2706
2973
  }
2707
2974
  }
2708
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2975
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2709
2976
  declare namespace shaka.ui {
2710
2977
  /**
2711
2978
  * A range element, built to work across browsers.
@@ -2754,21 +3021,28 @@ declare namespace shaka.ui {
2754
3021
  setValue (value : any ) : any ;
2755
3022
  }
2756
3023
  }
2757
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3024
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3025
+ declare namespace shaka.ui {
3026
+ class RemoteButton extends shaka.ui.Element {
3027
+ private noStructuralTyping_shaka_ui_RemoteButton : any;
3028
+ constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
3029
+ }
3030
+ }
3031
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2758
3032
  declare namespace shaka.ui {
2759
3033
  class ResolutionSelection extends shaka.ui.SettingsMenu {
2760
3034
  private noStructuralTyping_shaka_ui_ResolutionSelection : any;
2761
3035
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2762
3036
  }
2763
3037
  }
2764
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3038
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2765
3039
  declare namespace shaka.ui {
2766
3040
  class RewindButton extends shaka.ui.Element {
2767
3041
  private noStructuralTyping_shaka_ui_RewindButton : any;
2768
3042
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2769
3043
  }
2770
3044
  }
2771
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3045
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2772
3046
  declare namespace shaka.ui {
2773
3047
  class SeekBar extends shaka.ui.RangeElement implements shaka.extern.IUISeekBar {
2774
3048
  private noStructuralTyping_shaka_ui_SeekBar : any;
@@ -2777,14 +3051,14 @@ declare namespace shaka.ui {
2777
3051
  update ( ) : any ;
2778
3052
  }
2779
3053
  }
2780
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3054
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2781
3055
  declare namespace shaka.ui.SeekBar {
2782
3056
  class Factory implements shaka.extern.IUISeekBar.Factory {
2783
3057
  private noStructuralTyping_shaka_ui_SeekBar_Factory : any;
2784
3058
  create (rootElement : HTMLElement , controls : shaka.ui.Controls ) : shaka.extern.IUISeekBar ;
2785
3059
  }
2786
3060
  }
2787
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3061
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2788
3062
  declare namespace shaka.ui {
2789
3063
  class SettingsMenu extends shaka.ui.Element implements shaka.extern.IUISettingsMenu {
2790
3064
  private noStructuralTyping_shaka_ui_SettingsMenu : any;
@@ -2798,49 +3072,49 @@ declare namespace shaka.ui {
2798
3072
  nameSpan : HTMLElement ;
2799
3073
  }
2800
3074
  }
2801
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3075
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2802
3076
  declare namespace shaka.ui {
2803
3077
  class SkipAdButton extends shaka.ui.Element {
2804
3078
  private noStructuralTyping_shaka_ui_SkipAdButton : any;
2805
3079
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2806
3080
  }
2807
3081
  }
2808
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3082
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2809
3083
  declare namespace shaka.ui {
2810
3084
  class SmallPlayButton extends shaka.ui.PlayButton {
2811
3085
  private noStructuralTyping_shaka_ui_SmallPlayButton : any;
2812
3086
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2813
3087
  }
2814
3088
  }
2815
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3089
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2816
3090
  declare namespace shaka.ui {
2817
3091
  class Spacer extends shaka.ui.Element {
2818
3092
  private noStructuralTyping_shaka_ui_Spacer : any;
2819
3093
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2820
3094
  }
2821
3095
  }
2822
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3096
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2823
3097
  declare namespace shaka.ui {
2824
3098
  class StatisticsButton extends shaka.ui.Element {
2825
3099
  private noStructuralTyping_shaka_ui_StatisticsButton : any;
2826
3100
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2827
3101
  }
2828
3102
  }
2829
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3103
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2830
3104
  declare namespace shaka.ui {
2831
3105
  class TextSelection extends shaka.ui.SettingsMenu {
2832
3106
  private noStructuralTyping_shaka_ui_TextSelection : any;
2833
3107
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2834
3108
  }
2835
3109
  }
2836
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3110
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2837
3111
  declare namespace shaka.ui {
2838
3112
  class VolumeBar extends shaka.ui.RangeElement {
2839
3113
  private noStructuralTyping_shaka_ui_VolumeBar : any;
2840
3114
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2841
3115
  }
2842
3116
  }
2843
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3117
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2844
3118
  declare namespace shaka.util {
2845
3119
  /**
2846
3120
  * A utility to wrap abortable operations. Note that these are not cancelable.
@@ -2866,7 +3140,7 @@ declare namespace shaka.util {
2866
3140
  static notAbortable < U > (promise : Promise < U > ) : shaka.util.AbortableOperation < U > ;
2867
3141
  }
2868
3142
  }
2869
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3143
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2870
3144
  declare namespace shaka.util {
2871
3145
  class BufferUtils {
2872
3146
  private noStructuralTyping_shaka_util_BufferUtils : any;
@@ -2896,7 +3170,7 @@ declare namespace shaka.util {
2896
3170
  static toUint8 (data : ArrayBuffer | ArrayBufferView , offset ? : number , length ? : number ) : Uint8Array ;
2897
3171
  }
2898
3172
  }
2899
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3173
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2900
3174
  declare namespace shaka.util.CmcdManager {
2901
3175
  enum StreamingFormat {
2902
3176
  DASH = 'd' ,
@@ -2905,7 +3179,7 @@ declare namespace shaka.util.CmcdManager {
2905
3179
  SMOOTH = 's' ,
2906
3180
  }
2907
3181
  }
2908
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3182
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2909
3183
  declare namespace shaka.util {
2910
3184
  class ConfigUtils {
2911
3185
  private noStructuralTyping_shaka_util_ConfigUtils : any;
@@ -2918,7 +3192,7 @@ declare namespace shaka.util {
2918
3192
  static mergeConfigObjects (destination : object , source : object , template : object , overrides : object , path : string ) : boolean ;
2919
3193
  }
2920
3194
  }
2921
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3195
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2922
3196
  declare namespace shaka.util {
2923
3197
  class DataViewReader {
2924
3198
  private noStructuralTyping_shaka_util_DataViewReader : any;
@@ -2979,7 +3253,7 @@ declare namespace shaka.util {
2979
3253
  skip (bytes : number ) : any ;
2980
3254
  }
2981
3255
  }
2982
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3256
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2983
3257
  declare namespace shaka.util.DataViewReader {
2984
3258
  /**
2985
3259
  * Endianness.
@@ -2992,7 +3266,7 @@ declare namespace shaka.util.DataViewReader {
2992
3266
  LITTLE_ENDIAN = 1.0 ,
2993
3267
  }
2994
3268
  }
2995
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3269
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
2996
3270
  declare namespace shaka.util {
2997
3271
  class Dom {
2998
3272
  private noStructuralTyping_shaka_util_Dom : any;
@@ -3002,7 +3276,7 @@ declare namespace shaka.util {
3002
3276
  static removeAllChildren (element : Element ) : any ;
3003
3277
  }
3004
3278
  }
3005
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3279
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3006
3280
  declare namespace shaka.util {
3007
3281
  class Error extends GlobalError implements shaka.extern.Error {
3008
3282
  private noStructuralTyping_shaka_util_Error : any;
@@ -3014,7 +3288,7 @@ declare namespace shaka.util {
3014
3288
  severity : any ;
3015
3289
  }
3016
3290
  }
3017
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3291
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3018
3292
  declare namespace shaka.util.Error {
3019
3293
  enum Category {
3020
3294
  ADS = 10.0 ,
@@ -3029,9 +3303,11 @@ declare namespace shaka.util.Error {
3029
3303
  TEXT = 2.0 ,
3030
3304
  }
3031
3305
  }
3032
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3306
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3033
3307
  declare namespace shaka.util.Error {
3034
3308
  enum Code {
3309
+ AES_128_INVALID_IV_LENGTH = 4048.0 ,
3310
+ AES_128_INVALID_KEY_LENGTH = 4049.0 ,
3035
3311
  ALREADY_CASTING = 8002.0 ,
3036
3312
  ATTEMPTS_EXHAUSTED = 1010.0 ,
3037
3313
  BAD_ENCODING = 2004.0 ,
@@ -3053,6 +3329,7 @@ declare namespace shaka.util.Error {
3053
3329
  CS_AD_MANAGER_NOT_INITIALIZED = 10001.0 ,
3054
3330
  CS_IMA_SDK_MISSING = 10000.0 ,
3055
3331
  CURRENT_DAI_REQUEST_NOT_FINISHED = 10004.0 ,
3332
+ DASH_CONFLICTING_AES_128 = 4050.0 ,
3056
3333
  DASH_CONFLICTING_KEY_IDS = 4010.0 ,
3057
3334
  DASH_DUPLICATE_REPRESENTATION_ID = 4018.0 ,
3058
3335
  DASH_EMPTY_ADAPTATION_SET = 4003.0 ,
@@ -3062,6 +3339,7 @@ declare namespace shaka.util.Error {
3062
3339
  DASH_NO_COMMON_KEY_SYSTEM = 4008.0 ,
3063
3340
  DASH_NO_SEGMENT_INFO = 4002.0 ,
3064
3341
  DASH_PSSH_BAD_ENCODING = 4007.0 ,
3342
+ DASH_UNSUPPORTED_AES_128 = 4051.0 ,
3065
3343
  DASH_UNSUPPORTED_CONTAINER = 4006.0 ,
3066
3344
  DASH_UNSUPPORTED_XLINK_ACTUATE = 4027.0 ,
3067
3345
  DASH_WEBM_MISSING_INIT = 4005.0 ,
@@ -3077,8 +3355,6 @@ declare namespace shaka.util.Error {
3077
3355
  FAILED_TO_CREATE_CDM = 6002.0 ,
3078
3356
  FAILED_TO_CREATE_SESSION = 6005.0 ,
3079
3357
  FAILED_TO_GENERATE_LICENSE_REQUEST = 6006.0 ,
3080
- HLS_AES_128_INVALID_IV_LENGTH = 4043.0 ,
3081
- HLS_AES_128_INVALID_KEY_LENGTH = 4044.0 ,
3082
3358
  HLS_COULD_NOT_GUESS_CODECS = 4025.0 ,
3083
3359
  HLS_INVALID_PLAYLIST_HIERARCHY = 4017.0 ,
3084
3360
  HLS_KEYFORMATS_NOT_SUPPORTED = 4026.0 ,
@@ -3125,6 +3401,7 @@ declare namespace shaka.util.Error {
3125
3401
  MSS_MISSING_DATA_FOR_TRANSMUXING = 3020.0 ,
3126
3402
  MSS_TRANSMUXING_CODEC_UNKNOWN = 3021.0 ,
3127
3403
  MSS_TRANSMUXING_FAILED = 3022.0 ,
3404
+ MT_AD_MANAGER_NOT_INITIALIZED = 10005.0 ,
3128
3405
  NEW_KEY_OPERATION_NOT_SUPPORTED = 9011.0 ,
3129
3406
  NO_CAST_RECEIVERS = 8001.0 ,
3130
3407
  NO_INIT_DATA_FOR_OFFLINE = 9007.0 ,
@@ -3172,14 +3449,14 @@ declare namespace shaka.util.Error {
3172
3449
  WEBM_SEGMENT_ELEMENT_MISSING = 3009.0 ,
3173
3450
  }
3174
3451
  }
3175
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3452
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3176
3453
  declare namespace shaka.util.Error {
3177
3454
  enum Severity {
3178
3455
  CRITICAL = 2.0 ,
3179
3456
  RECOVERABLE = 1.0 ,
3180
3457
  }
3181
3458
  }
3182
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3459
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3183
3460
  declare namespace shaka.util {
3184
3461
  class EventManager implements shaka.util.IReleasable {
3185
3462
  private noStructuralTyping_shaka_util_EventManager : any;
@@ -3217,18 +3494,18 @@ declare namespace shaka.util {
3217
3494
  unlisten (target : EventTarget | null , type : string , listener ? : shaka.util.EventManager.ListenerType ) : any ;
3218
3495
  }
3219
3496
  }
3220
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3497
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3221
3498
  declare namespace shaka.util.EventManager {
3222
3499
  type ListenerType = (a : Event ) => any ;
3223
3500
  }
3224
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3501
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3225
3502
  declare namespace shaka.util {
3226
3503
  class ExpGolomb {
3227
3504
  private noStructuralTyping_shaka_util_ExpGolomb : any;
3228
- constructor (data : Uint8Array ) ;
3505
+ constructor (data : Uint8Array , convertEbsp2rbsp ? : boolean ) ;
3229
3506
  }
3230
3507
  }
3231
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3508
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3232
3509
  declare namespace shaka.util {
3233
3510
  class FairPlayUtils {
3234
3511
  private noStructuralTyping_shaka_util_FairPlayUtils : any;
@@ -3292,14 +3569,14 @@ declare namespace shaka.util {
3292
3569
  static verimatrixInitDataTransform (initData : Uint8Array , initDataType : string , drmInfo : shaka.extern.DrmInfo | null ) : any ;
3293
3570
  }
3294
3571
  }
3295
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3572
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3296
3573
  declare namespace shaka.util {
3297
3574
  class FakeEvent extends Event {
3298
3575
  private noStructuralTyping_shaka_util_FakeEvent : any;
3299
3576
  constructor (type : string , dict ? : Map < string , object | null > | null ) ;
3300
3577
  }
3301
3578
  }
3302
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3579
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3303
3580
  declare namespace shaka.util {
3304
3581
  class FakeEventTarget implements EventTarget , shaka.util.IReleasable {
3305
3582
  private noStructuralTyping_shaka_util_FakeEventTarget : any;
@@ -3331,14 +3608,14 @@ declare namespace shaka.util {
3331
3608
  removeEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , options ? : EventListenerOptions | null | boolean ) : any ;
3332
3609
  }
3333
3610
  }
3334
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3611
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3335
3612
  declare namespace shaka.util.FakeEventTarget {
3336
3613
  /**
3337
3614
  * These are the listener types defined in the closure extern for EventTarget.
3338
3615
  */
3339
3616
  type ListenerType = EventListener | null | ( (a : Event ) => any ) ;
3340
3617
  }
3341
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3618
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3342
3619
  declare namespace shaka.util {
3343
3620
  /**
3344
3621
  * An interface to standardize how objects are destroyed.
@@ -3352,7 +3629,7 @@ declare namespace shaka.util {
3352
3629
  destroy ( ) : Promise < any > ;
3353
3630
  }
3354
3631
  }
3355
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3632
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3356
3633
  declare namespace shaka.util {
3357
3634
  /**
3358
3635
  * An interface to standardize how objects release internal references
@@ -3366,7 +3643,7 @@ declare namespace shaka.util {
3366
3643
  release ( ) : any ;
3367
3644
  }
3368
3645
  }
3369
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3646
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3370
3647
  declare namespace shaka.util {
3371
3648
  class Id3Utils {
3372
3649
  private noStructuralTyping_shaka_util_Id3Utils : any;
@@ -3384,7 +3661,7 @@ declare namespace shaka.util {
3384
3661
  static getID3Frames (id3Data : Uint8Array | null ) : shaka.extern.MetadataFrame [] ;
3385
3662
  }
3386
3663
  }
3387
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3664
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3388
3665
  declare namespace shaka.util {
3389
3666
  class LanguageUtils {
3390
3667
  private noStructuralTyping_shaka_util_LanguageUtils : any;
@@ -3498,7 +3775,7 @@ declare namespace shaka.util {
3498
3775
  static relatedness (target : string , candidate : string ) : number ;
3499
3776
  }
3500
3777
  }
3501
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3778
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3502
3779
  declare namespace shaka.util {
3503
3780
  class MimeUtils {
3504
3781
  private noStructuralTyping_shaka_util_MimeUtils : any;
@@ -3514,7 +3791,7 @@ declare namespace shaka.util {
3514
3791
  static getFullTypeWithAllCodecs (mimeType : string , codecs ? : string ) : string ;
3515
3792
  }
3516
3793
  }
3517
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3794
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3518
3795
  declare namespace shaka.util {
3519
3796
  class Mp4Parser {
3520
3797
  private noStructuralTyping_shaka_util_Mp4Parser : any;
@@ -3581,11 +3858,11 @@ declare namespace shaka.util {
3581
3858
  static visualSampleEntry (box : shaka.extern.ParsedBox ) : any ;
3582
3859
  }
3583
3860
  }
3584
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3861
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3585
3862
  declare namespace shaka.util.Mp4Parser {
3586
3863
  type CallbackType = (a : shaka.extern.ParsedBox ) => any ;
3587
3864
  }
3588
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3865
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3589
3866
  declare namespace shaka.util {
3590
3867
  /**
3591
3868
  * A utility to combine streams across periods.
@@ -3599,7 +3876,7 @@ declare namespace shaka.util {
3599
3876
  release ( ) : any ;
3600
3877
  }
3601
3878
  }
3602
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3879
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3603
3880
  declare namespace shaka.util {
3604
3881
  class PlayerConfiguration {
3605
3882
  private noStructuralTyping_shaka_util_PlayerConfiguration : any;
@@ -3611,14 +3888,14 @@ declare namespace shaka.util {
3611
3888
  static mergeConfigObjects (destination : shaka.extern.PlayerConfiguration , updates : object , template ? : shaka.extern.PlayerConfiguration ) : boolean ;
3612
3889
  }
3613
3890
  }
3614
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3891
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3615
3892
  declare namespace shaka.util {
3616
3893
  class StreamUtils {
3617
3894
  private noStructuralTyping_shaka_util_StreamUtils : any;
3618
3895
  static meetsRestrictions (variant : shaka.extern.Variant , restrictions : shaka.extern.Restrictions , maxHwRes : { height : number , width : number } ) : boolean ;
3619
3896
  }
3620
3897
  }
3621
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3898
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3622
3899
  declare namespace shaka.util {
3623
3900
  class StringUtils {
3624
3901
  private noStructuralTyping_shaka_util_StringUtils : any;
@@ -3652,7 +3929,7 @@ declare namespace shaka.util {
3652
3929
  static toUTF8 (str : string ) : ArrayBuffer ;
3653
3930
  }
3654
3931
  }
3655
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3932
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3656
3933
  declare namespace shaka.util {
3657
3934
  /**
3658
3935
  * A timer allows a single function to be executed at a later time or at
@@ -3681,7 +3958,7 @@ declare namespace shaka.util {
3681
3958
  tickNow ( ) : shaka.util.Timer ;
3682
3959
  }
3683
3960
  }
3684
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3961
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3685
3962
  declare namespace shaka.util {
3686
3963
  class TsParser {
3687
3964
  private noStructuralTyping_shaka_util_TsParser : any;
@@ -3731,6 +4008,12 @@ declare namespace shaka.util {
3731
4008
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
3732
4009
  */
3733
4010
  parseAvcNalus (pes : shaka.extern.MPEG_PES , nextPes ? : shaka.extern.MPEG_PES | null ) : shaka.extern.VideoNalu [] ;
4011
+ /**
4012
+ * Parse AVC and HVC Nalus
4013
+ * The code is based on hls.js
4014
+ * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
4015
+ */
4016
+ parseNalus (pes : shaka.extern.MPEG_PES , nextPes ? : shaka.extern.MPEG_PES | null , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
3734
4017
  static Timescale : number ;
3735
4018
  /**
3736
4019
  * Check if the passed data corresponds to an MPEG2-TS
@@ -3742,7 +4025,7 @@ declare namespace shaka.util {
3742
4025
  static syncOffset (data : Uint8Array | null ) : number ;
3743
4026
  }
3744
4027
  }
3745
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
4028
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.ui.externs.js
3746
4029
  declare namespace shaka.util {
3747
4030
  class Uint8ArrayUtils {
3748
4031
  private noStructuralTyping_shaka_util_Uint8ArrayUtils : any;
@@ -3776,7 +4059,7 @@ declare namespace shaka.util {
3776
4059
  static toStandardBase64 (data : ArrayBuffer | ArrayBufferView ) : string ;
3777
4060
  }
3778
4061
  }
3779
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/airplay.js
4062
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/airplay.js
3780
4063
  declare namespace ಠ_ಠ.clutz {
3781
4064
  class AirPlayEvent extends Event {
3782
4065
  private noStructuralTyping_AirPlayEvent : any;
@@ -3784,7 +4067,7 @@ declare namespace ಠ_ಠ.clutz {
3784
4067
  availability : String | null ;
3785
4068
  }
3786
4069
  }
3787
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/awesomplete.js
4070
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/awesomplete.js
3788
4071
  declare namespace ಠ_ಠ.clutz {
3789
4072
  class Awesomplete {
3790
4073
  private noStructuralTyping_Awesomplete : any;
@@ -3794,18 +4077,18 @@ declare namespace ಠ_ಠ.clutz {
3794
4077
  evaluate ( ) : any ;
3795
4078
  }
3796
4079
  }
3797
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4080
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3798
4081
  declare namespace ಠ_ಠ.clutz {
3799
4082
  function __onGCastApiAvailable (a : boolean ) : any ;
3800
4083
  }
3801
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4084
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3802
4085
  declare namespace cast.receiver {
3803
4086
  class CastChannel {
3804
4087
  private noStructuralTyping_cast_receiver_CastChannel : any;
3805
4088
  send (message : any ) : any ;
3806
4089
  }
3807
4090
  }
3808
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4091
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3809
4092
  declare namespace cast.receiver {
3810
4093
  class CastMessageBus {
3811
4094
  private noStructuralTyping_cast_receiver_CastMessageBus : any;
@@ -3814,7 +4097,7 @@ declare namespace cast.receiver {
3814
4097
  onMessage : Function | null ;
3815
4098
  }
3816
4099
  }
3817
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4100
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3818
4101
  declare namespace cast.receiver.CastMessageBus {
3819
4102
  class Event {
3820
4103
  private noStructuralTyping_cast_receiver_CastMessageBus_Event : any;
@@ -3822,7 +4105,7 @@ declare namespace cast.receiver.CastMessageBus {
3822
4105
  senderId : string ;
3823
4106
  }
3824
4107
  }
3825
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4108
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3826
4109
  declare namespace cast.receiver {
3827
4110
  class CastReceiverManager {
3828
4111
  private noStructuralTyping_cast_receiver_CastReceiverManager : any;
@@ -3840,7 +4123,7 @@ declare namespace cast.receiver {
3840
4123
  static getInstance ( ) : cast.receiver.CastReceiverManager | null ;
3841
4124
  }
3842
4125
  }
3843
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4126
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3844
4127
  declare namespace cast.receiver.media {
3845
4128
  enum MetadataType {
3846
4129
  GENERIC = 0.0 ,
@@ -3850,7 +4133,7 @@ declare namespace cast.receiver.media {
3850
4133
  TV_SHOW = 2.0 ,
3851
4134
  }
3852
4135
  }
3853
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4136
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3854
4137
  declare namespace cast.receiver.system {
3855
4138
  class SystemVolumeData {
3856
4139
  private noStructuralTyping_cast_receiver_system_SystemVolumeData : any;
@@ -3858,14 +4141,14 @@ declare namespace cast.receiver.system {
3858
4141
  muted : boolean ;
3859
4142
  }
3860
4143
  }
3861
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4144
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3862
4145
  declare namespace chrome.cast {
3863
4146
  class ApiConfig {
3864
4147
  private noStructuralTyping_chrome_cast_ApiConfig : any;
3865
4148
  constructor (sessionRequest : chrome.cast.SessionRequest | null , sessionListener : Function | null , receiverListener : Function | null , autoJoinPolicy ? : string , defaultActionPolicy ? : string ) ;
3866
4149
  }
3867
4150
  }
3868
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4151
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3869
4152
  declare namespace chrome.cast {
3870
4153
  class Error {
3871
4154
  private noStructuralTyping_chrome_cast_Error : any;
@@ -3875,14 +4158,14 @@ declare namespace chrome.cast {
3875
4158
  details : object | null ;
3876
4159
  }
3877
4160
  }
3878
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4161
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3879
4162
  declare namespace chrome.cast {
3880
4163
  class Receiver {
3881
4164
  private noStructuralTyping_chrome_cast_Receiver : any;
3882
4165
  friendlyName : string ;
3883
4166
  }
3884
4167
  }
3885
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4168
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3886
4169
  declare namespace chrome.cast {
3887
4170
  class Session {
3888
4171
  private noStructuralTyping_chrome_cast_Session : any;
@@ -3898,32 +4181,32 @@ declare namespace chrome.cast {
3898
4181
  stop (successCallback : Function | null , errorCallback : Function | null ) : any ;
3899
4182
  }
3900
4183
  }
3901
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4184
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3902
4185
  declare namespace chrome.cast {
3903
4186
  class SessionRequest {
3904
4187
  private noStructuralTyping_chrome_cast_SessionRequest : any;
3905
4188
  constructor (appId : string , capabilities : ( object | null ) [] | null , timeout : number | null , androidReceiverCompatible : boolean , credentialsData : object | null ) ;
3906
4189
  }
3907
4190
  }
3908
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4191
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3909
4192
  declare namespace chrome.cast.SessionStatus {
3910
4193
  let STOPPED : string ;
3911
4194
  }
3912
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
4195
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3913
4196
  declare namespace chrome.cast {
3914
4197
  let isAvailable : boolean ;
3915
4198
  }
3916
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/cmcd.js
4199
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/cmcd.js
3917
4200
  declare namespace ಠ_ಠ.clutz {
3918
4201
  type CmcdData = { bl ? : number , br ? : number , bs ? : boolean , cid ? : string , d ? : number , dl ? : number , mtp ? : number , nor ? : string , nrr ? : string , ot ? : string , pr ? : number , rtp ? : number , sf ? : string , sid ? : string , st ? : string , su ? : boolean , tb ? : number , v ? : number } ;
3919
4202
  }
3920
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4203
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3921
4204
  declare namespace google.ima.AdErrorEvent {
3922
4205
  enum Type {
3923
4206
  AD_ERROR = 'AD_ERROR' ,
3924
4207
  }
3925
4208
  }
3926
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4209
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3927
4210
  declare namespace google.ima.AdEvent {
3928
4211
  enum Type {
3929
4212
  AD_BREAK_READY = 'AD_BREAK_READY' ,
@@ -3955,7 +4238,7 @@ declare namespace google.ima.AdEvent {
3955
4238
  VOLUME_MUTED = 'VOLUME_MUTED' ,
3956
4239
  }
3957
4240
  }
3958
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4241
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3959
4242
  declare namespace google.ima {
3960
4243
  class AdsLoader implements EventTarget {
3961
4244
  private noStructuralTyping_google_ima_AdsLoader : any;
@@ -3969,7 +4252,7 @@ declare namespace google.ima {
3969
4252
  requestAds (request : google.ima.AdsRequest ) : any ;
3970
4253
  }
3971
4254
  }
3972
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4255
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3973
4256
  declare namespace google.ima {
3974
4257
  class AdsManager implements EventTarget {
3975
4258
  private noStructuralTyping_google_ima_AdsManager : any;
@@ -3992,21 +4275,21 @@ declare namespace google.ima {
3992
4275
  updateAdsRenderingSettings (adsRenderingSettings : google.ima.AdsRenderingSettings ) : any ;
3993
4276
  }
3994
4277
  }
3995
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4278
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3996
4279
  declare namespace google.ima.AdsManagerLoadedEvent {
3997
4280
  enum Type {
3998
4281
  ADS_MANAGER_LOADED = 'ADS_MANAGER_LOADED' ,
3999
4282
  }
4000
4283
  }
4001
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4284
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4002
4285
  declare namespace google.ima {
4003
4286
  type AdsRenderingSettings = { autoAlign : boolean , bitrate : number , enablePreloading : boolean , loadVideoTimeout : number , mimeTypes : string [] | null , playAdsAfterTime : number , restoreCustomPlaybackStateOnAdBreakComplete : boolean , uiElements : string [] | null , useStyledLinearAds : boolean , useStyledNonLinearAds : boolean } ;
4004
4287
  }
4005
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4288
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4006
4289
  declare namespace google.ima {
4007
4290
  type AdsRequest = { adTagUrl ? : string , adsResponse ? : string } ;
4008
4291
  }
4009
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4292
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4010
4293
  declare namespace google.ima.ImaSdkSettings {
4011
4294
  enum VpaidMode {
4012
4295
  DISABLED = 0.0 ,
@@ -4014,14 +4297,14 @@ declare namespace google.ima.ImaSdkSettings {
4014
4297
  INSECURE = 2.0 ,
4015
4298
  }
4016
4299
  }
4017
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4300
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4018
4301
  declare namespace google.ima {
4019
4302
  enum ViewMode {
4020
4303
  FULLSCREEN = 'FULLSCREEN' ,
4021
4304
  NORMAL = 'NORMAL' ,
4022
4305
  }
4023
4306
  }
4024
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4307
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4025
4308
  declare namespace google.ima.dai.api {
4026
4309
  enum OmidAccessMode {
4027
4310
  DOMAIN = 'domain' ,
@@ -4029,7 +4312,7 @@ declare namespace google.ima.dai.api {
4029
4312
  LIMITED = 'limited' ,
4030
4313
  }
4031
4314
  }
4032
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4315
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4033
4316
  declare namespace google.ima.dai.api {
4034
4317
  enum OmidVerificationVendor {
4035
4318
  COMSCORE = 7.0 ,
@@ -4043,7 +4326,7 @@ declare namespace google.ima.dai.api {
4043
4326
  PIXELATE = 5.0 ,
4044
4327
  }
4045
4328
  }
4046
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4329
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4047
4330
  declare namespace google.ima.dai.api.StreamEvent {
4048
4331
  enum Type {
4049
4332
  AD_BREAK_ENDED = 'adBreakEnded' ,
@@ -4066,7 +4349,7 @@ declare namespace google.ima.dai.api.StreamEvent {
4066
4349
  VIDEO_CLICKED = 'videoClicked' ,
4067
4350
  }
4068
4351
  }
4069
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4352
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4070
4353
  declare namespace google.ima.dai.api {
4071
4354
  class StreamManager implements EventTarget {
4072
4355
  private noStructuralTyping_google_ima_dai_api_StreamManager : any;
@@ -4085,18 +4368,18 @@ declare namespace google.ima.dai.api {
4085
4368
  streamTimeForContentTime (contentTime : number ) : any ;
4086
4369
  }
4087
4370
  }
4088
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4371
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4089
4372
  declare namespace google.ima.dai.api.StreamRequest {
4090
4373
  enum StreamFormat {
4091
4374
  DASH = 'dash' ,
4092
4375
  HLS = 'hls' ,
4093
4376
  }
4094
4377
  }
4095
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
4378
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
4096
4379
  declare namespace google.ima {
4097
4380
  let settings : google.ima.ImaSdkSettings ;
4098
4381
  }
4099
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/jwk_set.js
4382
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/jwk_set.js
4100
4383
  declare namespace ಠ_ಠ.clutz {
4101
4384
  /**
4102
4385
  * A JSON Web Key.
@@ -4121,7 +4404,7 @@ declare namespace ಠ_ಠ.clutz {
4121
4404
  kty : string ;
4122
4405
  }
4123
4406
  }
4124
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/jwk_set.js
4407
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/jwk_set.js
4125
4408
  declare namespace ಠ_ಠ.clutz {
4126
4409
  /**
4127
4410
  * A JSON Web Key set.
@@ -4131,14 +4414,17 @@ declare namespace ಠ_ಠ.clutz {
4131
4414
  keys : ( JWK | null ) [] | null ;
4132
4415
  }
4133
4416
  }
4134
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
4135
- declare namespace LcevcDil {
4417
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4418
+ declare namespace LCEVCdec {
4136
4419
  /**
4137
- * LCEVC DIL constructor
4420
+ * LCEVC Dec constructor
4138
4421
  */
4139
- class LcevcDIL {
4140
- private noStructuralTyping_LcevcDil_LcevcDIL : any;
4141
- constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , dilConfig : shaka.extern.LcevcConfiguration ) ;
4422
+ class LCEVCdec {
4423
+ private noStructuralTyping_LCEVCdec_LCEVCdec : any;
4424
+ /**
4425
+ * LCEVC Dec constructor
4426
+ */
4427
+ constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , lcevcConfig : shaka.extern.LcevcConfiguration ) ;
4142
4428
  /**
4143
4429
  * Append the video buffers before they are appended to
4144
4430
  * Media Source Extensions SourceBuffer. Here the lcevc data
@@ -4146,10 +4432,11 @@ declare namespace LcevcDil {
4146
4432
  * @param data Video Buffer Data.
4147
4433
  * @param type Type of Video Buffer Data.
4148
4434
  * @param variantId Variant that the fragment belongs to.
4435
+ * @param timestampOffset Timestamp offset for appended segments
4149
4436
  */
4150
- appendBuffer (data : ArrayBuffer | ArrayBufferView , type : string , variantId : number ) : any ;
4437
+ appendBuffer (data : ArrayBuffer | ArrayBufferView , type : string , variantId : number , timestampOffset : number ) : any ;
4151
4438
  /**
4152
- * Close LCEVC DIL
4439
+ * Close LCEVC DEC
4153
4440
  */
4154
4441
  close ( ) : any ;
4155
4442
  /**
@@ -4159,33 +4446,54 @@ declare namespace LcevcDil {
4159
4446
  setContainerFormat (containerFormat : number ) : any ;
4160
4447
  /**
4161
4448
  * Set current variant as variantId to the LCEVC decoder
4162
- * @param autoBufferSwitch is lcevcDil mode that switches variant when the downloaded buffer from last variant has finished playing and buffers from the new variant starts to play.
4449
+ * @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.
4163
4450
  */
4164
4451
  setLevelSwitching (variantId : number , autoBufferSwitch : boolean ) : any ;
4452
+ /**
4453
+ * Set streaming Format for LCEVC Data Parsing.
4454
+ * @param streamingFormat container type of the stream.
4455
+ */
4456
+ setStreamingFormat (streamingFormat : number ) : any ;
4165
4457
  }
4166
4458
  }
4167
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
4168
- declare namespace LcevcDil.SupportObject {
4459
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4460
+ declare namespace LCEVCdec {
4461
+ /**
4462
+ * The older module interface, for backward compatibility.
4463
+ * Typed to the same interface, but under a different name.
4464
+ */
4465
+ export import LcevcDil = LCEVCdec.LCEVCdec ;
4466
+ }
4467
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4468
+ declare namespace LCEVCdec.SupportObject {
4169
4469
  /**
4170
4470
  * LCEVC Support CheckList Error if any.
4171
4471
  */
4172
4472
  let SupportError : string ;
4173
4473
  }
4174
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
4175
- declare namespace LcevcDil.SupportObject {
4474
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4475
+ declare namespace LCEVCdec.SupportObject {
4176
4476
  /**
4177
4477
  * LCEVC Support Checklist Result
4178
4478
  */
4179
4479
  let SupportStatus : boolean ;
4180
4480
  }
4181
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
4182
- declare namespace LcevcDil.SupportObject {
4481
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4482
+ declare namespace LCEVCdec.SupportObject {
4183
4483
  /**
4184
4484
  * Check if canvas has WebGL support
4185
4485
  */
4186
4486
  function webGLSupport (canvas : HTMLCanvasElement | null ) : boolean ;
4187
4487
  }
4188
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mdl.js
4488
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4489
+ declare namespace ಠ_ಠ.clutz {
4490
+ /**
4491
+ * Typedef for the module interface. Both LCEVCdec (new module) and LcevcDil
4492
+ * (old module) implement roughly the same interface.
4493
+ */
4494
+ type LCEVCmodule = typeof LCEVCdec ;
4495
+ }
4496
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mdl.js
4189
4497
  declare namespace ಠ_ಠ.clutz {
4190
4498
  class MaterialLayout {
4191
4499
  private noStructuralTyping_MaterialLayout : any;
@@ -4193,7 +4501,43 @@ declare namespace ಠ_ಠ.clutz {
4193
4501
  toggleDrawer ( ) : any ;
4194
4502
  }
4195
4503
  }
4196
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mediasession.js
4504
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/media_remote.js
4505
+ declare namespace ಠ_ಠ.clutz {
4506
+ class RemotePlayback implements EventTarget {
4507
+ private noStructuralTyping_RemotePlayback : any;
4508
+ addEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , opt_options ? : boolean | AddEventListenerOptions ) : void ;
4509
+ /**
4510
+ * The cancelWatchAvailability() method of the RemotePlayback interface
4511
+ * cancels the request to watch for one or all available devices.
4512
+ */
4513
+ cancelWatchAvailability (id : number ) : Promise < any > ;
4514
+ dispatchEvent (evt : Event ) : boolean ;
4515
+ /**
4516
+ * The prompt() method of the RemotePlayback interface prompts the user
4517
+ * to select an available remote playback device and give permission
4518
+ * for the current media to be played using that device.
4519
+ *
4520
+ * If the user gives permission, the state will be set to connecting and
4521
+ * the user agent will connect to the device to initiate playback.
4522
+ *
4523
+ * If the user chooses to instead disconnect from the device, the state will
4524
+ * be set to disconnected and user agent will disconnect from this device.
4525
+ */
4526
+ prompt ( ) : Promise < any > ;
4527
+ removeEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , opt_options ? : boolean | EventListenerOptions ) : void ;
4528
+ /**
4529
+ * Represents the RemotePlayback connection's state.
4530
+ */
4531
+ state : string ;
4532
+ /**
4533
+ * The watchAvailability() method of the RemotePlayback interface watches
4534
+ * the list of available remote playback devices and returns a Promise that
4535
+ * resolves with the callbackId of a remote playback device.
4536
+ */
4537
+ watchAvailability (callback : (a : boolean ) => any ) : Promise < any > ;
4538
+ }
4539
+ }
4540
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediasession.js
4197
4541
  declare namespace ಠ_ಠ.clutz {
4198
4542
  class MediaMetadata {
4199
4543
  private noStructuralTyping_MediaMetadata : any;
@@ -4203,44 +4547,58 @@ declare namespace ಠ_ಠ.clutz {
4203
4547
  title : string ;
4204
4548
  }
4205
4549
  }
4206
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mediasession.js
4550
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediasession.js
4207
4551
  declare namespace ಠ_ಠ.clutz {
4208
4552
  class MediaSession {
4209
4553
  private noStructuralTyping_MediaSession : any;
4210
4554
  metadata : MediaMetadata | null ;
4211
4555
  }
4212
4556
  }
4213
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mux.js
4214
- declare namespace muxjs.mp4 {
4215
- class Transmuxer {
4216
- private noStructuralTyping_muxjs_mp4_Transmuxer : any;
4217
- constructor (options ? : object | null ) ;
4218
- /**
4219
- * Remove all handlers and clean up.
4220
- */
4221
- dispose ( ) : any ;
4222
- flush ( ) : any ;
4223
- /**
4224
- * Remove a handler for a specified event type.
4225
- * @param type Event name
4226
- * @param listener The callback to be removed
4227
- */
4228
- off (type : string , listener : Function | null ) : any ;
4229
- /**
4230
- * Add a handler for a specified event type.
4231
- * @param type Event name
4232
- * @param listener The callback to be invoked
4233
- */
4234
- on (type : string , listener : Function | null ) : any ;
4235
- push (data : Uint8Array ) : any ;
4236
- setBaseMediaDecodeTime (time : number ) : any ;
4237
- }
4557
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4558
+ declare namespace mediaTailor {
4559
+ 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 [] } ;
4560
+ }
4561
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4562
+ declare namespace mediaTailor {
4563
+ type AdBreak = { adBreakTrackingEvents : mediaTailor.TrackingEvent [] , ads : mediaTailor.Ad [] , durationInSeconds : number , nonLinearAdsList : mediaTailor.Ad [] , startTimeInSeconds : number } ;
4564
+ }
4565
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4566
+ declare namespace mediaTailor {
4567
+ type NonLinearAd = { adId : string , adParameters : string , adSystem : string , adTitle : string , creativeAdId : string , creativeId : string , creativeSequence : string , height : number | null , staticResource : string , width : number | null } ;
4568
+ }
4569
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4570
+ declare namespace mediaTailor {
4571
+ type SessionResponse = { manifestUrl : string | null , trackingUrl : string | null } ;
4572
+ }
4573
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4574
+ declare namespace mediaTailor {
4575
+ type TrackingEvent = { beaconUrls : string [] , eventType : string } ;
4576
+ }
4577
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4578
+ declare namespace mediaTailor {
4579
+ type TrackingResponse = { avails : mediaTailor.AdBreak [] } ;
4580
+ }
4581
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4582
+ declare namespace mediaTailorExternalResource {
4583
+ type App = { data : mediaTailorExternalResource.AppData , placeholder : mediaTailorExternalResource.AppPlaceholder } ;
4584
+ }
4585
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4586
+ declare namespace mediaTailorExternalResource {
4587
+ type AppData = { source : mediaTailorExternalResource.AppDataSource [] } ;
4588
+ }
4589
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4590
+ declare namespace mediaTailorExternalResource {
4591
+ type AppDataSource = { url : string } ;
4238
4592
  }
4239
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mux.js
4240
- declare namespace muxjs.mp4.Transmuxer {
4241
- type Segment = { data : Uint8Array , initSegment : Uint8Array } ;
4593
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4594
+ declare namespace mediaTailorExternalResource {
4595
+ type AppPlaceholder = { left : number , top : number } ;
4242
4596
  }
4243
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
4597
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4598
+ declare namespace mediaTailorExternalResource {
4599
+ type Response = { apps : mediaTailorExternalResource.App [] } ;
4600
+ }
4601
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/pictureinpicture.js
4244
4602
  declare namespace ಠ_ಠ.clutz {
4245
4603
  class DocumentPictureInPicture implements EventTarget {
4246
4604
  private noStructuralTyping_DocumentPictureInPicture : any;
@@ -4251,15 +4609,23 @@ declare namespace ಠ_ಠ.clutz {
4251
4609
  window : Window | null ;
4252
4610
  }
4253
4611
  }
4254
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
4612
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/pictureinpicture.js
4613
+ declare namespace ಠ_ಠ.clutz {
4614
+ class DocumentPictureInPictureEvent extends Event {
4615
+ private noStructuralTyping_DocumentPictureInPictureEvent : any;
4616
+ constructor ( ) ;
4617
+ window : Window | null ;
4618
+ }
4619
+ }
4620
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/pictureinpicture.js
4255
4621
  declare namespace ಠ_ಠ.clutz {
4256
4622
  type DocumentPictureInPictureOptions = { height ? : number , width ? : number } ;
4257
4623
  }
4258
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/polyfill.js
4624
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/polyfill.js
4259
4625
  declare namespace window {
4260
4626
  let shakaMediaKeysPolyfill : boolean ;
4261
4627
  }
4262
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/prefixed_eme.js
4628
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/prefixed_eme.js
4263
4629
  declare namespace ಠ_ಠ.clutz {
4264
4630
  class MediaKeyError {
4265
4631
  private noStructuralTyping_MediaKeyError : any;
@@ -4267,7 +4633,7 @@ declare namespace ಠ_ಠ.clutz {
4267
4633
  systemCode : number ;
4268
4634
  }
4269
4635
  }
4270
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/prefixed_eme.js
4636
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/prefixed_eme.js
4271
4637
  declare namespace ಠ_ಠ.clutz {
4272
4638
  class MediaKeyEvent extends Event {
4273
4639
  private noStructuralTyping_MediaKeyEvent : any;
@@ -4282,7 +4648,7 @@ declare namespace ಠ_ಠ.clutz {
4282
4648
  target : HTMLMediaElement ;
4283
4649
  }
4284
4650
  }
4285
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abortable.js
4651
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abortable.js
4286
4652
  declare namespace shaka.extern {
4287
4653
  /**
4288
4654
  * A representation of an abortable operation. Note that these are not
@@ -4308,7 +4674,7 @@ declare namespace shaka.extern {
4308
4674
  promise : Promise < T > ;
4309
4675
  }
4310
4676
  }
4311
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
4677
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abr_manager.js
4312
4678
  declare namespace shaka.extern {
4313
4679
  /**
4314
4680
  * An object which selects Streams from a set of possible choices. This also
@@ -4383,14 +4749,14 @@ declare namespace shaka.extern {
4383
4749
  stop ( ) : any ;
4384
4750
  }
4385
4751
  }
4386
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
4752
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abr_manager.js
4387
4753
  declare namespace shaka.extern.AbrManager {
4388
4754
  /**
4389
4755
  * A factory for creating the abr manager.
4390
4756
  */
4391
4757
  type Factory = ( ) => shaka.extern.AbrManager ;
4392
4758
  }
4393
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
4759
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abr_manager.js
4394
4760
  declare namespace shaka.extern.AbrManager {
4395
4761
  /**
4396
4762
  * A callback into the Player that should be called when the AbrManager decides
@@ -4409,15 +4775,15 @@ declare namespace shaka.extern.AbrManager {
4409
4775
  */
4410
4776
  type SwitchCallback = (a : shaka.extern.Variant , b ? : boolean , c ? : number ) => any ;
4411
4777
  }
4412
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4778
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
4413
4779
  declare namespace shaka.extern {
4414
4780
  type AdCuePoint = { end : number | null , start : number } ;
4415
4781
  }
4416
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4782
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
4417
4783
  declare namespace shaka.extern {
4418
4784
  type AdsStats = { loadTimes : number [] , playedCompletely : number , skipped : number , started : number } ;
4419
4785
  }
4420
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4786
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
4421
4787
  declare namespace shaka.extern {
4422
4788
  /**
4423
4789
  * Interface for Ad objects.
@@ -4458,7 +4824,7 @@ declare namespace shaka.extern {
4458
4824
  skip ( ) : any ;
4459
4825
  }
4460
4826
  }
4461
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4827
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
4462
4828
  declare namespace shaka.extern {
4463
4829
  /**
4464
4830
  * An object that's responsible for all the ad-related logic
@@ -4471,6 +4837,7 @@ declare namespace shaka.extern {
4471
4837
  * Must be called at least once before init*().
4472
4838
  */
4473
4839
  configure (config : shaka.extern.AdsConfiguration ) : any ;
4840
+ getCuePoints ( ) : shaka.extern.AdCuePoint [] ;
4474
4841
  getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
4475
4842
  /**
4476
4843
  * Get statistics for the current playback session. If the player is not
@@ -4478,35 +4845,41 @@ declare namespace shaka.extern {
4478
4845
  */
4479
4846
  getStats ( ) : any ;
4480
4847
  initClientSide (adContainer : HTMLElement , video : HTMLMediaElement , adsRenderingSettings : google.ima.AdsRenderingSettings | null ) : any ;
4848
+ initMediaTailor (adContainer : HTMLElement , networkingEngine : shaka.net.NetworkingEngine , video : HTMLMediaElement ) : any ;
4481
4849
  initServerSide (adContainer : HTMLElement , video : HTMLMediaElement ) : any ;
4482
4850
  onAssetUnload ( ) : any ;
4483
4851
  onCueMetadataChange (value : shaka.extern.MetadataFrame ) : any ;
4484
4852
  onDashTimedMetadata (region : shaka.extern.TimelineRegionInfo ) : any ;
4485
4853
  onHlsTimedMetadata (metadata : shaka.extern.ID3Metadata , timestampOffset : number ) : any ;
4854
+ /**
4855
+ * Fired when the manifest is updated.
4856
+ */
4857
+ onManifestUpdated (isLive : boolean ) : any ;
4486
4858
  release ( ) : any ;
4487
4859
  replaceServerSideAdTagParameters (adTagParameters : object | null ) : any ;
4488
4860
  requestClientSideAds (imaRequest : google.ima.AdsRequest ) : any ;
4861
+ requestMediaTailorStream (url : string , adsParams : object | null , backupUrl ? : string ) : Promise < string > ;
4489
4862
  requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
4490
4863
  setLocale (locale : string ) : any ;
4491
4864
  updateClientSideAdsRenderingSettings (adsRenderingSettings : google.ima.AdsRenderingSettings ) : any ;
4492
4865
  }
4493
4866
  }
4494
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4867
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
4495
4868
  declare namespace shaka.extern.IAdManager {
4496
4869
  /**
4497
4870
  * A factory for creating the ad manager.
4498
4871
  */
4499
4872
  type Factory = ( ) => shaka.extern.IAdManager ;
4500
4873
  }
4501
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4874
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4502
4875
  declare namespace shaka.extern {
4503
4876
  type CaptionDecoderPlugin = ( ) => shaka.extern.ICaptionDecoder ;
4504
4877
  }
4505
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4878
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4506
4879
  declare namespace shaka.extern {
4507
4880
  type CeaParserPlugin = ( ) => shaka.extern.ICeaParser ;
4508
4881
  }
4509
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4882
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4510
4883
  declare namespace shaka.extern {
4511
4884
  /**
4512
4885
  * Interface for decoding inband closed captions from packets.
@@ -4533,14 +4906,14 @@ declare namespace shaka.extern {
4533
4906
  extract (userDataSeiMessage : Uint8Array , pts : number ) : any ;
4534
4907
  }
4535
4908
  }
4536
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4909
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4537
4910
  declare namespace shaka.extern.ICaptionDecoder {
4538
4911
  /**
4539
4912
  * Parsed Cue.
4540
4913
  */
4541
4914
  type ClosedCaption = { cue : shaka.text.Cue , stream : string } ;
4542
4915
  }
4543
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4916
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4544
4917
  declare namespace shaka.extern {
4545
4918
  /**
4546
4919
  * Interface for parsing inband closed caption data from MP4 streams.
@@ -4558,19 +4931,19 @@ declare namespace shaka.extern {
4558
4931
  parse (mediaSegment : ArrayBuffer | ArrayBufferView ) : shaka.extern.ICeaParser.CaptionPacket [] ;
4559
4932
  }
4560
4933
  }
4561
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4934
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4562
4935
  declare namespace shaka.extern.ICeaParser {
4563
4936
  type CaptionPacket = { packet : Uint8Array , pts : number } ;
4564
4937
  }
4565
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
4938
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/codecs.js
4566
4939
  declare namespace shaka.extern {
4567
4940
  type MPEG_PES = { data : Uint8Array | null , dts : number | null , packetLength : number , pts : number | null } ;
4568
4941
  }
4569
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
4942
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/codecs.js
4570
4943
  declare namespace shaka.extern {
4571
4944
  type VideoNalu = { data : Uint8Array , fullData : Uint8Array , time : number | null , type : number } ;
4572
4945
  }
4573
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/error.js
4946
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/error.js
4574
4947
  declare namespace shaka.extern {
4575
4948
  interface Error {
4576
4949
  category : shaka.util.Error.Category ;
@@ -4580,11 +4953,11 @@ declare namespace shaka.extern {
4580
4953
  severity : shaka.util.Error.Severity ;
4581
4954
  }
4582
4955
  }
4583
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/error.js
4956
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/error.js
4584
4957
  declare namespace shaka.extern {
4585
4958
  type RestrictionInfo = { hasAppRestrictions : boolean , missingKeys : string [] , restrictedKeyStatuses : string [] } ;
4586
4959
  }
4587
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4960
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4588
4961
  declare namespace shaka.extern {
4589
4962
  /**
4590
4963
  * Creates a SegmentIndex; returns a Promise that resolves after the
@@ -4592,11 +4965,11 @@ declare namespace shaka.extern {
4592
4965
  */
4593
4966
  type CreateSegmentIndexFunction = ( ) => Promise < any > ;
4594
4967
  }
4595
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4968
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4596
4969
  declare namespace shaka.extern {
4597
4970
  type DrmInfo = { audioRobustness : string , distinctiveIdentifierRequired : boolean , initData : shaka.extern.InitDataOverride [] | null , keyIds : Set < string > | null , keySystem : string , licenseServerUri : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
4598
4971
  }
4599
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4972
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4600
4973
  declare namespace shaka.extern {
4601
4974
  /**
4602
4975
  * A function that fetches the crypto keys for AES-128.
@@ -4604,39 +4977,39 @@ declare namespace shaka.extern {
4604
4977
  */
4605
4978
  type FetchCryptoKeysFunction = ( ) => Promise < any > ;
4606
4979
  }
4607
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4608
- declare namespace shaka.extern {
4609
- type HlsAes128Key = { cryptoKey ? : webCrypto.CryptoKey | null , fetchKey ? : shaka.extern.CreateSegmentIndexFunction , firstMediaSequenceNumber : number , iv ? : Uint8Array , method : string } ;
4610
- }
4611
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4980
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4612
4981
  declare namespace shaka.extern {
4613
4982
  type InitDataOverride = { initData : Uint8Array , initDataType : string , keyId : string | null } ;
4614
4983
  }
4615
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4984
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4616
4985
  declare namespace shaka.extern {
4617
4986
  type Manifest = { ignoreManifestTimestampsInSegmentsMode : boolean , imageStreams : shaka.extern.Stream [] , minBufferTime : number , offlineSessionIds : string [] , presentationTimeline : shaka.media.PresentationTimeline , sequenceMode : boolean , serviceDescription : shaka.extern.ServiceDescription | null , textStreams : shaka.extern.Stream [] , type : string , variants : shaka.extern.Variant [] } ;
4618
4987
  }
4619
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4988
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4620
4989
  declare namespace shaka.extern {
4621
4990
  type MssPrivateData = { codecPrivateData : string | null , duration : number , timescale : number } ;
4622
4991
  }
4623
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4992
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4624
4993
  declare namespace shaka.extern {
4625
4994
  type Period = { audioStreams : shaka.extern.Stream [] , id : string , imageStreams : shaka.extern.Stream [] , textStreams : shaka.extern.Stream [] , videoStreams : shaka.extern.Stream [] } ;
4626
4995
  }
4627
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4996
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4628
4997
  declare namespace shaka.extern {
4629
4998
  type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null } ;
4630
4999
  }
4631
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
5000
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4632
5001
  declare namespace shaka.extern {
4633
- 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 } ;
5002
+ 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 , 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 , width ? : number } ;
4634
5003
  }
4635
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
5004
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4636
5005
  declare namespace shaka.extern {
4637
5006
  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 } ;
4638
5007
  }
4639
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
5008
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
5009
+ declare namespace shaka.extern {
5010
+ type aes128Key = { cryptoKey ? : webCrypto.CryptoKey | null , fetchKey ? : shaka.extern.CreateSegmentIndexFunction , firstMediaSequenceNumber : number , iv ? : Uint8Array , method : string } ;
5011
+ }
5012
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest_parser.js
4640
5013
  declare namespace shaka.extern {
4641
5014
  /**
4642
5015
  * Parses media manifests and handles manifest updates.
@@ -4699,7 +5072,7 @@ declare namespace shaka.extern {
4699
5072
  update ( ) : any ;
4700
5073
  }
4701
5074
  }
4702
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
5075
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest_parser.js
4703
5076
  declare namespace shaka.extern.ManifestParser {
4704
5077
  /**
4705
5078
  * A factory for creating the manifest parser. This function is registered with
@@ -4707,31 +5080,31 @@ declare namespace shaka.extern.ManifestParser {
4707
5080
  */
4708
5081
  type Factory = ( ) => shaka.extern.ManifestParser ;
4709
5082
  }
4710
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
5083
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest_parser.js
4711
5084
  declare namespace shaka.extern.ManifestParser {
4712
- 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 } ;
5085
+ 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 } ;
4713
5086
  }
4714
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/mp4_parser.js
5087
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/mp4_parser.js
4715
5088
  declare namespace shaka.extern {
4716
5089
  type ParsedBox = { flags : number | null , has64BitSize : boolean , name : string , parser : shaka.util.Mp4Parser , partialOkay : boolean , reader : shaka.util.DataViewReader , size : number , start : number , version : number | null } ;
4717
5090
  }
4718
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5091
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4719
5092
  declare namespace shaka.extern {
4720
5093
  type HeadersReceived = (a : { [ key: string ]: string } ) => any ;
4721
5094
  }
4722
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5095
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4723
5096
  declare namespace shaka.extern {
4724
5097
  type ProgressUpdated = (a : number , b : number , c : number ) => any ;
4725
5098
  }
4726
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5099
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4727
5100
  declare namespace shaka.extern {
4728
5101
  type Request = { allowCrossSiteCredentials : boolean , body : ArrayBuffer | ArrayBufferView | null , drmInfo : shaka.extern.DrmInfo | null , headers : { [ key: string ]: string } , initData : Uint8Array | null , initDataType : string | null , licenseRequestType : string | null , method : string , retryParameters : shaka.extern.RetryParameters , sessionId : string | null , streamDataCallback : ( (a : ArrayBuffer | ArrayBufferView ) => Promise < any > ) | null , uris : string [] } ;
4729
5102
  }
4730
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5103
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4731
5104
  declare namespace shaka.extern {
4732
5105
  type RequestContext = { segment ? : shaka.media.SegmentReference | null , stream ? : shaka.extern.Stream , type ? : shaka.net.NetworkingEngine.AdvancedRequestType } ;
4733
5106
  }
4734
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5107
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4735
5108
  declare namespace shaka.extern {
4736
5109
  /**
4737
5110
  * Defines a filter for requests. This filter takes the request and modifies
@@ -4744,11 +5117,11 @@ declare namespace shaka.extern {
4744
5117
  */
4745
5118
  type RequestFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Request , c ? : shaka.extern.RequestContext ) => Promise < any > | void ;
4746
5119
  }
4747
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5120
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4748
5121
  declare namespace shaka.extern {
4749
5122
  type Response = { data : ArrayBuffer | ArrayBufferView , fromCache ? : boolean , headers : { [ key: string ]: string } , originalUri : string , status ? : number , timeMs ? : number , uri : string } ;
4750
5123
  }
4751
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5124
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4752
5125
  declare namespace shaka.extern {
4753
5126
  /**
4754
5127
  * Defines a filter for responses. This filter takes the response and modifies
@@ -4760,19 +5133,19 @@ declare namespace shaka.extern {
4760
5133
  */
4761
5134
  type ResponseFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Response , c ? : shaka.extern.RequestContext ) => Promise < any > | void ;
4762
5135
  }
4763
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5136
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4764
5137
  declare namespace shaka.extern {
4765
5138
  type RetryParameters = { backoffFactor : number , baseDelay : number , connectionTimeout : number , fuzzFactor : number , maxAttempts : number , stallTimeout : number , timeout : number } ;
4766
5139
  }
4767
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
5140
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4768
5141
  declare namespace shaka.extern {
4769
5142
  type SchemePlugin = (a : string , b : shaka.extern.Request , c : shaka.net.NetworkingEngine.RequestType , d : shaka.extern.ProgressUpdated , e : shaka.extern.HeadersReceived ) => shaka.extern.IAbortableOperation < shaka.extern.Response > ;
4770
5143
  }
4771
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5144
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4772
5145
  declare namespace shaka.extern {
4773
5146
  type EmeSessionDB = { audioCapabilities : { contentType : string , robustness : string } [] , keySystem : string , licenseUri : string , serverCertificate : Uint8Array | null , sessionId : string , videoCapabilities : { contentType : string , robustness : string } [] } ;
4774
5147
  }
4775
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5148
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4776
5149
  declare namespace shaka.extern {
4777
5150
  /**
4778
5151
  * Similar to storage cells (shaka.extern.StorageCell), an EmeSessionStorageCell
@@ -4798,23 +5171,23 @@ declare namespace shaka.extern {
4798
5171
  remove (sessionIds : string [] ) : Promise < any > ;
4799
5172
  }
4800
5173
  }
4801
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5174
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4802
5175
  declare namespace shaka.extern {
4803
5176
  type ManifestDB = { appMetadata : object | null , creationTime : number , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , isIncomplete ? : boolean , originalManifestUri : string , sequenceMode ? : boolean , sessionIds : string [] , size : number , streams : shaka.extern.StreamDB [] , type ? : string } ;
4804
5177
  }
4805
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5178
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4806
5179
  declare namespace shaka.extern {
4807
5180
  type OfflineSupport = { basic : boolean , encrypted : { [ key: string ]: boolean } } ;
4808
5181
  }
4809
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5182
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4810
5183
  declare namespace shaka.extern {
4811
5184
  type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , pendingInitSegmentRefId ? : string , pendingSegmentRefId ? : string , startTime : number , tilesLayout : string | null , timestampOffset : number } ;
4812
5185
  }
4813
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5186
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4814
5187
  declare namespace shaka.extern {
4815
5188
  type SegmentDataDB = { data : ArrayBuffer } ;
4816
5189
  }
4817
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5190
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4818
5191
  declare namespace shaka.extern {
4819
5192
  /**
4820
5193
  * An interface that defines access to collection of segments and manifests. All
@@ -4890,7 +5263,7 @@ declare namespace shaka.extern {
4890
5263
  updateManifestExpiration (key : number , expiration : number ) : Promise < any > ;
4891
5264
  }
4892
5265
  }
4893
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5266
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4894
5267
  declare namespace shaka.extern {
4895
5268
  /**
4896
5269
  * Storage mechanisms are one of two exported storage APIs. Storage mechanisms
@@ -4934,207 +5307,207 @@ declare namespace shaka.extern {
4934
5307
  init ( ) : Promise < any > ;
4935
5308
  }
4936
5309
  }
4937
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5310
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4938
5311
  declare namespace shaka.extern {
4939
5312
  type StoredContent = { appMetadata : object | null , duration : number , expiration : number , isIncomplete : boolean , offlineUri : string | null , originalManifestUri : string , size : number , tracks : shaka.extern.TrackList } ;
4940
5313
  }
4941
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
5314
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4942
5315
  declare namespace shaka.extern {
4943
- 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 } ;
5316
+ type StreamDB = { audioSamplingRate : number | null , channelsCount : number | null , closedCaptions : Map < string , string > | null , codecs : string , encrypted : boolean , external : 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 [] , width : number | null } ;
4944
5317
  }
4945
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
5318
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4946
5319
  declare namespace shaka.extern {
4947
5320
  type ManifestDBV1 = { appMetadata : object | null , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , key : number , originalManifestUri : string , periods : shaka.extern.PeriodDBV1 [] , sessionIds : string [] , size : number } ;
4948
5321
  }
4949
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
5322
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4950
5323
  declare namespace shaka.extern {
4951
5324
  type PeriodDBV1 = { startTime : number , streams : shaka.extern.StreamDBV1 [] } ;
4952
5325
  }
4953
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
5326
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4954
5327
  declare namespace shaka.extern {
4955
5328
  type SegmentDBV1 = { endTime : number , startTime : number , uri : string } ;
4956
5329
  }
4957
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
5330
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4958
5331
  declare namespace shaka.extern {
4959
5332
  type SegmentDataDBV1 = { data : ArrayBuffer , key : number } ;
4960
5333
  }
4961
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
5334
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4962
5335
  declare namespace shaka.extern {
4963
5336
  type StreamDBV1 = { codecs : string , contentType : string , encrypted : boolean , frameRate ? : number , height : number | null , id : number , initSegmentUri : string | null , keyId : string | null , kind ? : string , label : string | null , language : string , mimeType : string , presentationTimeOffset : number , primary : boolean , segments : shaka.extern.SegmentDBV1 [] , variantIds : number [] , width : number | null } ;
4964
5337
  }
4965
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
5338
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4966
5339
  declare namespace shaka.extern {
4967
5340
  type ManifestDBV2 = { appMetadata : object | null , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , originalManifestUri : string , periods : shaka.extern.PeriodDBV2 [] , sessionIds : string [] , size : number } ;
4968
5341
  }
4969
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
5342
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4970
5343
  declare namespace shaka.extern {
4971
5344
  type PeriodDBV2 = { startTime : number , streams : shaka.extern.StreamDBV2 [] } ;
4972
5345
  }
4973
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
5346
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4974
5347
  declare namespace shaka.extern {
4975
5348
  type SegmentDBV2 = { dataKey : number , endTime : number , startTime : number } ;
4976
5349
  }
4977
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
5350
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4978
5351
  declare namespace shaka.extern {
4979
5352
  type SegmentDataDBV2 = { data : ArrayBuffer } ;
4980
5353
  }
4981
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
5354
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4982
5355
  declare namespace shaka.extern {
4983
5356
  type StreamDBV2 = { codecs : string , contentType : string , encrypted : boolean , frameRate ? : number , height : number | null , id : number , initSegmentKey : number | null , keyId : string | null , kind ? : string , label : string | null , language : string , mimeType : string , originalId : string | null , pixelAspectRatio ? : string , presentationTimeOffset : number , primary : boolean , segments : shaka.extern.SegmentDBV2 [] , variantIds : number [] , width : number | null } ;
4984
5357
  }
4985
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5358
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4986
5359
  declare namespace shaka.extern {
4987
5360
  type AbrConfiguration = { advanced : shaka.extern.AdvancedAbrConfiguration , bandwidthDowngradeTarget : number , bandwidthUpgradeTarget : number , clearBufferSwitch : boolean , defaultBandwidthEstimate : number , enabled : boolean , ignoreDevicePixelRatio : boolean , restrictToElementSize : boolean , restrictToScreenSize : boolean , restrictions : shaka.extern.Restrictions , safeMarginSwitch : number , switchInterval : number , useNetworkInformation : boolean } ;
4988
5361
  }
4989
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5362
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4990
5363
  declare namespace shaka.extern {
4991
5364
  type AdsConfiguration = { customPlayheadTracker : boolean } ;
4992
5365
  }
4993
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5366
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4994
5367
  declare namespace shaka.extern {
4995
5368
  type AdvancedAbrConfiguration = { fastHalfLife : number , minBytes : number , minTotalBytes : number , slowHalfLife : number } ;
4996
5369
  }
4997
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5370
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4998
5371
  declare namespace shaka.extern {
4999
5372
  type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
5000
5373
  }
5001
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5374
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5002
5375
  declare namespace shaka.extern {
5003
5376
  type BufferedInfo = { audio : shaka.extern.BufferedRange [] , text : shaka.extern.BufferedRange [] , total : shaka.extern.BufferedRange [] , video : shaka.extern.BufferedRange [] } ;
5004
5377
  }
5005
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5378
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5006
5379
  declare namespace shaka.extern {
5007
5380
  type BufferedRange = { end : number , start : number } ;
5008
5381
  }
5009
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5382
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5010
5383
  declare namespace shaka.extern {
5011
5384
  type Chapter = { endTime : number , id : string , startTime : number , title : string } ;
5012
5385
  }
5013
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5386
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5014
5387
  declare namespace shaka.extern {
5015
5388
  type CmcdConfiguration = { contentId : string , enabled : boolean , sessionId : string , useHeaders : boolean } ;
5016
5389
  }
5017
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5390
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5018
5391
  declare namespace shaka.extern {
5019
- 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 } ;
5392
+ 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 } ;
5020
5393
  }
5021
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5394
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5022
5395
  declare namespace shaka.extern {
5023
5396
  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 } ;
5024
5397
  }
5025
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5398
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5026
5399
  declare namespace shaka.extern {
5027
5400
  type DrmSessionMetadata = { initData : Uint8Array | null , initDataType : string | null , sessionId : string , sessionType : string } ;
5028
5401
  }
5029
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5402
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5030
5403
  declare namespace shaka.extern {
5031
5404
  type DrmSupportType = { persistentState : boolean } ;
5032
5405
  }
5033
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5406
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5034
5407
  declare namespace shaka.extern {
5035
5408
  type EmsgInfo = { endTime : number , eventDuration : number , id : number , messageData : Uint8Array | null , presentationTimeDelta : number , schemeIdUri : string , startTime : number , timescale : number , value : string } ;
5036
5409
  }
5037
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5410
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5038
5411
  declare namespace shaka.extern {
5039
5412
  type HlsManifestConfiguration = { defaultAudioCodec : string , defaultVideoCodec : string , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
5040
5413
  }
5041
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5414
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5042
5415
  declare namespace shaka.extern {
5043
5416
  type ID3Metadata = { cueTime : number | null , data : Uint8Array , dts : number | null , frames : shaka.extern.MetadataFrame [] , pts : number | null } ;
5044
5417
  }
5045
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5418
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5046
5419
  declare namespace shaka.extern {
5047
5420
  type InitDataTransform = (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array ;
5048
5421
  }
5049
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5422
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5050
5423
  declare namespace shaka.extern {
5051
5424
  type LanguageRole = { label : string | null , language : string , role : string } ;
5052
5425
  }
5053
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5426
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5054
5427
  declare namespace shaka.extern {
5055
5428
  type LcevcConfiguration = { drawLogo : boolean , dynamicPerformanceScaling : boolean , enabled : boolean , logLevel : number } ;
5056
5429
  }
5057
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5430
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5058
5431
  declare namespace shaka.extern {
5059
5432
  type ManifestConfiguration = { availabilityWindowOverride : number , dash : shaka.extern.DashManifestConfiguration , defaultPresentationDelay : number , disableAudio : boolean , disableText : boolean , disableThumbnails : boolean , disableVideo : boolean , hls : shaka.extern.HlsManifestConfiguration , mss : shaka.extern.MssManifestConfiguration , raiseFatalErrorOnManifestUpdateRequestFailure : boolean , retryParameters : shaka.extern.RetryParameters , segmentRelativeVttTiming : boolean } ;
5060
5433
  }
5061
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5434
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5062
5435
  declare namespace shaka.extern {
5063
5436
  type MediaQualityInfo = { audioSamplingRate : number | null , bandwidth : number , channelsCount : number | null , codecs : string , contentType : string , frameRate : number | null , height : number | null , mimeType : string | null , pixelAspectRatio : string | null , width : number | null } ;
5064
5437
  }
5065
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5438
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5066
5439
  declare namespace shaka.extern {
5067
- type MediaSourceConfiguration = { forceTransmux : boolean , insertFakeEncryptionInInit : boolean , sourceBufferExtraFeatures : string } ;
5440
+ type MediaSourceConfiguration = { codecSwitchingStrategy : shaka.config.CodecSwitchingStrategy , forceTransmux : boolean , insertFakeEncryptionInInit : boolean , sourceBufferExtraFeatures : string } ;
5068
5441
  }
5069
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5442
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5070
5443
  declare namespace shaka.extern {
5071
5444
  type MetadataFrame = { data : ArrayBuffer | null | string | number , description : string , key : string } ;
5072
5445
  }
5073
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5446
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5074
5447
  declare namespace shaka.extern {
5075
5448
  type MetadataRawFrame = { data : Uint8Array | null , size : number , type : string } ;
5076
5449
  }
5077
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5450
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5078
5451
  declare namespace shaka.extern {
5079
5452
  type MssManifestConfiguration = { keySystemsBySystemId : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , sequenceMode : boolean } ;
5080
5453
  }
5081
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5454
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5082
5455
  declare namespace shaka.extern {
5083
5456
  type OfflineConfiguration = { downloadSizeCallback : (a : number ) => Promise < boolean > , numberOfParallelDownloads : number , progressCallback : (a : shaka.extern.StoredContent , b : number ) => any , trackSelectionCallback : (a : shaka.extern.TrackList ) => Promise < shaka.extern.TrackList > , usePersistentLicense : boolean } ;
5084
5457
  }
5085
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5458
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5086
5459
  declare namespace shaka.extern {
5087
5460
  type PersistentSessionMetadata = { initData : Uint8Array | null , initDataType : string | null , sessionId : string } ;
5088
5461
  }
5089
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5462
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5090
5463
  declare namespace shaka.extern {
5091
5464
  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 } ;
5092
5465
  }
5093
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5466
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5094
5467
  declare namespace shaka.extern {
5095
5468
  type ProducerReferenceTime = { programStartDate : Date | null , wallClockTime : number } ;
5096
5469
  }
5097
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5470
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5098
5471
  declare namespace shaka.extern {
5099
5472
  type Restrictions = { maxBandwidth : number , maxFrameRate : number , maxHeight : number , maxPixels : number , maxWidth : number , minBandwidth : number , minFrameRate : number , minHeight : number , minPixels : number , minWidth : number } ;
5100
5473
  }
5101
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5474
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5102
5475
  declare namespace shaka.extern {
5103
5476
  type StateChange = { duration : number , state : string , timestamp : number } ;
5104
5477
  }
5105
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5478
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5106
5479
  declare namespace shaka.extern {
5107
5480
  type Stats = { bufferingTime : number , completionPercent : number , corruptedFrames : number , decodedFrames : number , drmTimeSeconds : number , droppedFrames : number , estimatedBandwidth : number , gapsJumped : number , height : number , licenseTime : number , liveLatency : number , loadLatency : number , manifestTimeSeconds : number , maxSegmentDuration : number , pauseTime : number , playTime : number , stallsDetected : number , stateHistory : shaka.extern.StateChange [] , streamBandwidth : number , switchHistory : shaka.extern.TrackChoice [] , width : number } ;
5108
5481
  }
5109
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5482
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5110
5483
  declare namespace shaka.extern {
5111
5484
  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 } ;
5112
5485
  }
5113
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5486
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5114
5487
  declare namespace shaka.extern {
5115
5488
  type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
5116
5489
  }
5117
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5490
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5118
5491
  declare namespace shaka.extern {
5119
5492
  type Thumbnail = { duration : number , height : number , imageHeight : number , imageWidth : number , positionX : number , positionY : number , sprite : boolean , startTime : number , uris : string [] , width : number } ;
5120
5493
  }
5121
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5494
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5122
5495
  declare namespace shaka.extern {
5123
5496
  type TimelineRegionInfo = { endTime : number , eventElement : Element | null , id : string , schemeIdUri : string , startTime : number , value : string } ;
5124
5497
  }
5125
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5498
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5126
5499
  declare namespace shaka.extern {
5127
5500
  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 } ;
5128
5501
  }
5129
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5502
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5130
5503
  declare namespace shaka.extern {
5131
5504
  type TrackChoice = { bandwidth : number | null , fromAdaptation : boolean , id : number , timestamp : number , type : string } ;
5132
5505
  }
5133
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5506
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
5134
5507
  declare namespace shaka.extern {
5135
5508
  type TrackList = shaka.extern.Track [] ;
5136
5509
  }
5137
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5510
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
5138
5511
  declare namespace shaka.extern {
5139
5512
  interface TextDisplayer extends shaka.util.IDestroyable {
5140
5513
  /**
@@ -5161,14 +5534,14 @@ declare namespace shaka.extern {
5161
5534
  setTextVisibility (on : boolean ) : any ;
5162
5535
  }
5163
5536
  }
5164
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5537
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
5165
5538
  declare namespace shaka.extern.TextDisplayer {
5166
5539
  /**
5167
5540
  * A factory for creating a TextDisplayer.
5168
5541
  */
5169
5542
  type Factory = ( ) => shaka.extern.TextDisplayer ;
5170
5543
  }
5171
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5544
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
5172
5545
  declare namespace shaka.extern {
5173
5546
  /**
5174
5547
  * An interface for plugins that parse text tracks.
@@ -5196,18 +5569,18 @@ declare namespace shaka.extern {
5196
5569
  setSequenceMode (sequenceMode : boolean ) : any ;
5197
5570
  }
5198
5571
  }
5199
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5572
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
5200
5573
  declare namespace shaka.extern.TextParser {
5201
5574
  /**
5202
5575
  * A collection of time offsets used to adjust text cue times.
5203
5576
  */
5204
5577
  type TimeContext = { periodStart : number , segmentEnd : number , segmentStart : number , vttOffset : number } ;
5205
5578
  }
5206
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5579
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
5207
5580
  declare namespace shaka.extern {
5208
5581
  type TextParserPlugin = ( ) => shaka.extern.TextParser ;
5209
5582
  }
5210
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/transmuxer.js
5583
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/transmuxer.js
5211
5584
  declare namespace shaka.extern {
5212
5585
  /**
5213
5586
  * An interface for transmuxer plugins.
@@ -5236,18 +5609,18 @@ declare namespace shaka.extern {
5236
5609
  transmux (data : ArrayBuffer | ArrayBufferView , stream : shaka.extern.Stream , reference : shaka.media.SegmentReference | null , duration : number , contentType : string ) : Promise < Uint8Array > ;
5237
5610
  }
5238
5611
  }
5239
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/transmuxer.js
5612
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/transmuxer.js
5240
5613
  declare namespace shaka.extern {
5241
5614
  type TransmuxerPlugin = ( ) => shaka.extern.Transmuxer ;
5242
5615
  }
5243
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/tippy.js
5616
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/tippy.js
5244
5617
  declare namespace ಠ_ಠ.clutz {
5245
5618
  /**
5246
5619
  * This is the subset of this method that we use in our demo code.
5247
5620
  */
5248
5621
  function tippy (element : Element , config : object ) : any ;
5249
5622
  }
5250
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
5623
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/webkitmediakeys.js
5251
5624
  declare namespace ಠ_ಠ.clutz {
5252
5625
  class WebKitMediaKeyError {
5253
5626
  private noStructuralTyping_WebKitMediaKeyError : any;
@@ -5261,7 +5634,7 @@ declare namespace ಠ_ಠ.clutz {
5261
5634
  static MEDIA_KEYERR_UNKNOWN : number ;
5262
5635
  }
5263
5636
  }
5264
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
5637
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/webkitmediakeys.js
5265
5638
  declare namespace ಠ_ಠ.clutz {
5266
5639
  interface WebKitMediaKeySession extends EventTarget {
5267
5640
  addEventListener (type : any , listener : any , useCapture : any ) : any ;
@@ -5273,7 +5646,7 @@ declare namespace ಠ_ಠ.clutz {
5273
5646
  update (message : Uint8Array | null ) : any ;
5274
5647
  }
5275
5648
  }
5276
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
5649
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/webkitmediakeys.js
5277
5650
  declare namespace ಠ_ಠ.clutz {
5278
5651
  class WebKitMediaKeys {
5279
5652
  private noStructuralTyping_WebKitMediaKeys : any;
@@ -5282,7 +5655,7 @@ declare namespace ಠ_ಠ.clutz {
5282
5655
  static isTypeSupported (keySystem : string , contentType : string ) : boolean ;
5283
5656
  }
5284
5657
  }
5285
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5658
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5286
5659
  declare namespace shaka.extern {
5287
5660
  /**
5288
5661
  * Interface for UI elements. UI elements should inherit from the concrete base
@@ -5302,7 +5675,7 @@ video : HTMLMediaElement | null ;
5302
5675
  release ( ) : any ;
5303
5676
  }
5304
5677
  }
5305
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5678
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5306
5679
  declare namespace shaka.extern.IUIElement {
5307
5680
  /**
5308
5681
  * A factory for creating a UI element.
@@ -5311,7 +5684,7 @@ declare namespace shaka.extern.IUIElement {
5311
5684
  create (rootElement : HTMLElement , controls : shaka.ui.Controls ) : shaka.extern.IUIElement ;
5312
5685
  }
5313
5686
  }
5314
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5687
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5315
5688
  declare namespace shaka.extern {
5316
5689
  /**
5317
5690
  * Interface for UI range elements. UI range elements should inherit from the
@@ -5343,7 +5716,7 @@ container : HTMLElement ;
5343
5716
  setValue (value : number ) : any ;
5344
5717
  }
5345
5718
  }
5346
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5719
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5347
5720
  declare namespace shaka.extern {
5348
5721
  /**
5349
5722
  * Interface for SeekBars. SeekBars should inherit from the concrete base
@@ -5362,7 +5735,7 @@ declare namespace shaka.extern {
5362
5735
  update ( ) : any ;
5363
5736
  }
5364
5737
  }
5365
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5738
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5366
5739
  declare namespace shaka.extern.IUISeekBar {
5367
5740
  /**
5368
5741
  * A factory for creating a SeekBar element.
@@ -5371,7 +5744,7 @@ declare namespace shaka.extern.IUISeekBar {
5371
5744
  create (rootElement : HTMLElement , controls : shaka.ui.Controls ) : shaka.extern.IUISeekBar ;
5372
5745
  }
5373
5746
  }
5374
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5747
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5375
5748
  declare namespace shaka.extern {
5376
5749
  /**
5377
5750
  * Interface for UI settings menus. UI settings menus should inherit from the
@@ -5389,15 +5762,15 @@ menu : HTMLElement ;
5389
5762
  nameSpan : HTMLElement ;
5390
5763
  }
5391
5764
  }
5392
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5765
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5393
5766
  declare namespace shaka.extern {
5394
- 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 } ;
5767
+ 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 , showUnbufferedStart : boolean , singleClickForPlayAndPause : boolean , statisticsList : string [] , trackLabelFormat : shaka.ui.Overlay.TrackLabelFormat , volumeBarColors : shaka.extern.UIVolumeBarColors } ;
5395
5768
  }
5396
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5769
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5397
5770
  declare namespace shaka.extern {
5398
5771
  type UISeekBarColors = { adBreaks : string , base : string , buffered : string , played : string } ;
5399
5772
  }
5400
- // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5773
+ // Generated from /home/joey/hacking/work/shaka-player-clean/ui/externs/ui.js
5401
5774
  declare namespace shaka.extern {
5402
5775
  type UIVolumeBarColors = { base : string , level : string } ;
5403
5776
  }