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.compiled.externs.js
10
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
449
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
478
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
496
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
653
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
690
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.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.compiled.externs.js
764
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
804
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
856
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
868
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
879
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
890
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
899
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.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.compiled.externs.js
920
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
937
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
944
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
958
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
969
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
990
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1001
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1023
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1046
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1053
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1079
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1216
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1220
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1308
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1324
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1328
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1423
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1439
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1443
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1457
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1464
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1477
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1484
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1553
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1578
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1591
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1595
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1599
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1603
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1618
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1636
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1655
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1662
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1733
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1766
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1781
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1791
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1801
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1811
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1821
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1837
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1847
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1857
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1872
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1882
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1892
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1902
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1912
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1922
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1932
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1942
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1952
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
1962
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2148
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2169
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2190
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2197
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2215
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2223
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2238
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2246
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2253
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2262
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2272
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2280
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2288
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2345
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2352
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2360
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2373
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2383
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2393
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2403
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2421
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2435
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2449
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2460
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2470
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2490
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2500
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2506
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2521
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2536
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2551
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2566
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2581
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.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.compiled.externs.js
2596
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2606
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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.compiled.externs.js
2625
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.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,7 +2637,7 @@ 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.compiled.externs.js
2640
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2377
2641
  declare namespace shaka.util {
2378
2642
  /**
2379
2643
  * A utility to wrap abortable operations. Note that these are not cancelable.
@@ -2399,7 +2663,7 @@ declare namespace shaka.util {
2399
2663
  static notAbortable < U > (promise : Promise < U > ) : shaka.util.AbortableOperation < U > ;
2400
2664
  }
2401
2665
  }
2402
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2666
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2403
2667
  declare namespace shaka.util {
2404
2668
  class BufferUtils {
2405
2669
  private noStructuralTyping_shaka_util_BufferUtils : any;
@@ -2429,7 +2693,7 @@ declare namespace shaka.util {
2429
2693
  static toUint8 (data : ArrayBuffer | ArrayBufferView , offset ? : number , length ? : number ) : Uint8Array ;
2430
2694
  }
2431
2695
  }
2432
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2696
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2433
2697
  declare namespace shaka.util.CmcdManager {
2434
2698
  enum StreamingFormat {
2435
2699
  DASH = 'd' ,
@@ -2438,7 +2702,7 @@ declare namespace shaka.util.CmcdManager {
2438
2702
  SMOOTH = 's' ,
2439
2703
  }
2440
2704
  }
2441
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2705
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2442
2706
  declare namespace shaka.util {
2443
2707
  class ConfigUtils {
2444
2708
  private noStructuralTyping_shaka_util_ConfigUtils : any;
@@ -2451,7 +2715,7 @@ declare namespace shaka.util {
2451
2715
  static mergeConfigObjects (destination : object , source : object , template : object , overrides : object , path : string ) : boolean ;
2452
2716
  }
2453
2717
  }
2454
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2718
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2455
2719
  declare namespace shaka.util {
2456
2720
  class DataViewReader {
2457
2721
  private noStructuralTyping_shaka_util_DataViewReader : any;
@@ -2512,7 +2776,7 @@ declare namespace shaka.util {
2512
2776
  skip (bytes : number ) : any ;
2513
2777
  }
2514
2778
  }
2515
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2779
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2516
2780
  declare namespace shaka.util.DataViewReader {
2517
2781
  /**
2518
2782
  * Endianness.
@@ -2525,7 +2789,7 @@ declare namespace shaka.util.DataViewReader {
2525
2789
  LITTLE_ENDIAN = 1.0 ,
2526
2790
  }
2527
2791
  }
2528
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2792
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2529
2793
  declare namespace shaka.util {
2530
2794
  class Dom {
2531
2795
  private noStructuralTyping_shaka_util_Dom : any;
@@ -2535,7 +2799,7 @@ declare namespace shaka.util {
2535
2799
  static removeAllChildren (element : Element ) : any ;
2536
2800
  }
2537
2801
  }
2538
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2802
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2539
2803
  declare namespace shaka.util {
2540
2804
  class Error extends GlobalError implements shaka.extern.Error {
2541
2805
  private noStructuralTyping_shaka_util_Error : any;
@@ -2547,7 +2811,7 @@ declare namespace shaka.util {
2547
2811
  severity : any ;
2548
2812
  }
2549
2813
  }
2550
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2814
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2551
2815
  declare namespace shaka.util.Error {
2552
2816
  enum Category {
2553
2817
  ADS = 10.0 ,
@@ -2562,9 +2826,11 @@ declare namespace shaka.util.Error {
2562
2826
  TEXT = 2.0 ,
2563
2827
  }
2564
2828
  }
2565
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2829
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2566
2830
  declare namespace shaka.util.Error {
2567
2831
  enum Code {
2832
+ AES_128_INVALID_IV_LENGTH = 4048.0 ,
2833
+ AES_128_INVALID_KEY_LENGTH = 4049.0 ,
2568
2834
  ALREADY_CASTING = 8002.0 ,
2569
2835
  ATTEMPTS_EXHAUSTED = 1010.0 ,
2570
2836
  BAD_ENCODING = 2004.0 ,
@@ -2586,6 +2852,7 @@ declare namespace shaka.util.Error {
2586
2852
  CS_AD_MANAGER_NOT_INITIALIZED = 10001.0 ,
2587
2853
  CS_IMA_SDK_MISSING = 10000.0 ,
2588
2854
  CURRENT_DAI_REQUEST_NOT_FINISHED = 10004.0 ,
2855
+ DASH_CONFLICTING_AES_128 = 4050.0 ,
2589
2856
  DASH_CONFLICTING_KEY_IDS = 4010.0 ,
2590
2857
  DASH_DUPLICATE_REPRESENTATION_ID = 4018.0 ,
2591
2858
  DASH_EMPTY_ADAPTATION_SET = 4003.0 ,
@@ -2595,6 +2862,7 @@ declare namespace shaka.util.Error {
2595
2862
  DASH_NO_COMMON_KEY_SYSTEM = 4008.0 ,
2596
2863
  DASH_NO_SEGMENT_INFO = 4002.0 ,
2597
2864
  DASH_PSSH_BAD_ENCODING = 4007.0 ,
2865
+ DASH_UNSUPPORTED_AES_128 = 4051.0 ,
2598
2866
  DASH_UNSUPPORTED_CONTAINER = 4006.0 ,
2599
2867
  DASH_UNSUPPORTED_XLINK_ACTUATE = 4027.0 ,
2600
2868
  DASH_WEBM_MISSING_INIT = 4005.0 ,
@@ -2610,8 +2878,6 @@ declare namespace shaka.util.Error {
2610
2878
  FAILED_TO_CREATE_CDM = 6002.0 ,
2611
2879
  FAILED_TO_CREATE_SESSION = 6005.0 ,
2612
2880
  FAILED_TO_GENERATE_LICENSE_REQUEST = 6006.0 ,
2613
- HLS_AES_128_INVALID_IV_LENGTH = 4043.0 ,
2614
- HLS_AES_128_INVALID_KEY_LENGTH = 4044.0 ,
2615
2881
  HLS_COULD_NOT_GUESS_CODECS = 4025.0 ,
2616
2882
  HLS_INVALID_PLAYLIST_HIERARCHY = 4017.0 ,
2617
2883
  HLS_KEYFORMATS_NOT_SUPPORTED = 4026.0 ,
@@ -2658,6 +2924,7 @@ declare namespace shaka.util.Error {
2658
2924
  MSS_MISSING_DATA_FOR_TRANSMUXING = 3020.0 ,
2659
2925
  MSS_TRANSMUXING_CODEC_UNKNOWN = 3021.0 ,
2660
2926
  MSS_TRANSMUXING_FAILED = 3022.0 ,
2927
+ MT_AD_MANAGER_NOT_INITIALIZED = 10005.0 ,
2661
2928
  NEW_KEY_OPERATION_NOT_SUPPORTED = 9011.0 ,
2662
2929
  NO_CAST_RECEIVERS = 8001.0 ,
2663
2930
  NO_INIT_DATA_FOR_OFFLINE = 9007.0 ,
@@ -2705,14 +2972,14 @@ declare namespace shaka.util.Error {
2705
2972
  WEBM_SEGMENT_ELEMENT_MISSING = 3009.0 ,
2706
2973
  }
2707
2974
  }
2708
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2975
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2709
2976
  declare namespace shaka.util.Error {
2710
2977
  enum Severity {
2711
2978
  CRITICAL = 2.0 ,
2712
2979
  RECOVERABLE = 1.0 ,
2713
2980
  }
2714
2981
  }
2715
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
2982
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2716
2983
  declare namespace shaka.util {
2717
2984
  class EventManager implements shaka.util.IReleasable {
2718
2985
  private noStructuralTyping_shaka_util_EventManager : any;
@@ -2750,18 +3017,18 @@ declare namespace shaka.util {
2750
3017
  unlisten (target : EventTarget | null , type : string , listener ? : shaka.util.EventManager.ListenerType ) : any ;
2751
3018
  }
2752
3019
  }
2753
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3020
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2754
3021
  declare namespace shaka.util.EventManager {
2755
3022
  type ListenerType = (a : Event ) => any ;
2756
3023
  }
2757
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3024
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2758
3025
  declare namespace shaka.util {
2759
3026
  class ExpGolomb {
2760
3027
  private noStructuralTyping_shaka_util_ExpGolomb : any;
2761
- constructor (data : Uint8Array ) ;
3028
+ constructor (data : Uint8Array , convertEbsp2rbsp ? : boolean ) ;
2762
3029
  }
2763
3030
  }
2764
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3031
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2765
3032
  declare namespace shaka.util {
2766
3033
  class FairPlayUtils {
2767
3034
  private noStructuralTyping_shaka_util_FairPlayUtils : any;
@@ -2825,14 +3092,14 @@ declare namespace shaka.util {
2825
3092
  static verimatrixInitDataTransform (initData : Uint8Array , initDataType : string , drmInfo : shaka.extern.DrmInfo | null ) : any ;
2826
3093
  }
2827
3094
  }
2828
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3095
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2829
3096
  declare namespace shaka.util {
2830
3097
  class FakeEvent extends Event {
2831
3098
  private noStructuralTyping_shaka_util_FakeEvent : any;
2832
3099
  constructor (type : string , dict ? : Map < string , object | null > | null ) ;
2833
3100
  }
2834
3101
  }
2835
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3102
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2836
3103
  declare namespace shaka.util {
2837
3104
  class FakeEventTarget implements EventTarget , shaka.util.IReleasable {
2838
3105
  private noStructuralTyping_shaka_util_FakeEventTarget : any;
@@ -2864,14 +3131,14 @@ declare namespace shaka.util {
2864
3131
  removeEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , options ? : EventListenerOptions | null | boolean ) : any ;
2865
3132
  }
2866
3133
  }
2867
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3134
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2868
3135
  declare namespace shaka.util.FakeEventTarget {
2869
3136
  /**
2870
3137
  * These are the listener types defined in the closure extern for EventTarget.
2871
3138
  */
2872
3139
  type ListenerType = EventListener | null | ( (a : Event ) => any ) ;
2873
3140
  }
2874
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3141
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2875
3142
  declare namespace shaka.util {
2876
3143
  /**
2877
3144
  * An interface to standardize how objects are destroyed.
@@ -2885,7 +3152,7 @@ declare namespace shaka.util {
2885
3152
  destroy ( ) : Promise < any > ;
2886
3153
  }
2887
3154
  }
2888
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3155
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2889
3156
  declare namespace shaka.util {
2890
3157
  /**
2891
3158
  * An interface to standardize how objects release internal references
@@ -2899,7 +3166,7 @@ declare namespace shaka.util {
2899
3166
  release ( ) : any ;
2900
3167
  }
2901
3168
  }
2902
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3169
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2903
3170
  declare namespace shaka.util {
2904
3171
  class Id3Utils {
2905
3172
  private noStructuralTyping_shaka_util_Id3Utils : any;
@@ -2917,7 +3184,7 @@ declare namespace shaka.util {
2917
3184
  static getID3Frames (id3Data : Uint8Array | null ) : shaka.extern.MetadataFrame [] ;
2918
3185
  }
2919
3186
  }
2920
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3187
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
2921
3188
  declare namespace shaka.util {
2922
3189
  class LanguageUtils {
2923
3190
  private noStructuralTyping_shaka_util_LanguageUtils : any;
@@ -3031,7 +3298,7 @@ declare namespace shaka.util {
3031
3298
  static relatedness (target : string , candidate : string ) : number ;
3032
3299
  }
3033
3300
  }
3034
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3301
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3035
3302
  declare namespace shaka.util {
3036
3303
  class MimeUtils {
3037
3304
  private noStructuralTyping_shaka_util_MimeUtils : any;
@@ -3047,7 +3314,7 @@ declare namespace shaka.util {
3047
3314
  static getFullTypeWithAllCodecs (mimeType : string , codecs ? : string ) : string ;
3048
3315
  }
3049
3316
  }
3050
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3317
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3051
3318
  declare namespace shaka.util {
3052
3319
  class Mp4Parser {
3053
3320
  private noStructuralTyping_shaka_util_Mp4Parser : any;
@@ -3114,11 +3381,11 @@ declare namespace shaka.util {
3114
3381
  static visualSampleEntry (box : shaka.extern.ParsedBox ) : any ;
3115
3382
  }
3116
3383
  }
3117
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3384
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3118
3385
  declare namespace shaka.util.Mp4Parser {
3119
3386
  type CallbackType = (a : shaka.extern.ParsedBox ) => any ;
3120
3387
  }
3121
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3388
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3122
3389
  declare namespace shaka.util {
3123
3390
  /**
3124
3391
  * A utility to combine streams across periods.
@@ -3132,7 +3399,7 @@ declare namespace shaka.util {
3132
3399
  release ( ) : any ;
3133
3400
  }
3134
3401
  }
3135
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3402
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3136
3403
  declare namespace shaka.util {
3137
3404
  class PlayerConfiguration {
3138
3405
  private noStructuralTyping_shaka_util_PlayerConfiguration : any;
@@ -3144,14 +3411,14 @@ declare namespace shaka.util {
3144
3411
  static mergeConfigObjects (destination : shaka.extern.PlayerConfiguration , updates : object , template ? : shaka.extern.PlayerConfiguration ) : boolean ;
3145
3412
  }
3146
3413
  }
3147
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3414
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3148
3415
  declare namespace shaka.util {
3149
3416
  class StreamUtils {
3150
3417
  private noStructuralTyping_shaka_util_StreamUtils : any;
3151
3418
  static meetsRestrictions (variant : shaka.extern.Variant , restrictions : shaka.extern.Restrictions , maxHwRes : { height : number , width : number } ) : boolean ;
3152
3419
  }
3153
3420
  }
3154
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3421
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3155
3422
  declare namespace shaka.util {
3156
3423
  class StringUtils {
3157
3424
  private noStructuralTyping_shaka_util_StringUtils : any;
@@ -3185,7 +3452,7 @@ declare namespace shaka.util {
3185
3452
  static toUTF8 (str : string ) : ArrayBuffer ;
3186
3453
  }
3187
3454
  }
3188
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3455
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3189
3456
  declare namespace shaka.util {
3190
3457
  /**
3191
3458
  * A timer allows a single function to be executed at a later time or at
@@ -3214,7 +3481,7 @@ declare namespace shaka.util {
3214
3481
  tickNow ( ) : shaka.util.Timer ;
3215
3482
  }
3216
3483
  }
3217
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3484
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3218
3485
  declare namespace shaka.util {
3219
3486
  class TsParser {
3220
3487
  private noStructuralTyping_shaka_util_TsParser : any;
@@ -3264,6 +3531,12 @@ declare namespace shaka.util {
3264
3531
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
3265
3532
  */
3266
3533
  parseAvcNalus (pes : shaka.extern.MPEG_PES , nextPes ? : shaka.extern.MPEG_PES | null ) : shaka.extern.VideoNalu [] ;
3534
+ /**
3535
+ * Parse AVC and HVC Nalus
3536
+ * The code is based on hls.js
3537
+ * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
3538
+ */
3539
+ parseNalus (pes : shaka.extern.MPEG_PES , nextPes ? : shaka.extern.MPEG_PES | null , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
3267
3540
  static Timescale : number ;
3268
3541
  /**
3269
3542
  * Check if the passed data corresponds to an MPEG2-TS
@@ -3275,7 +3548,7 @@ declare namespace shaka.util {
3275
3548
  static syncOffset (data : Uint8Array | null ) : number ;
3276
3549
  }
3277
3550
  }
3278
- // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
3551
+ // Generated from /home/joey/hacking/work/shaka-player-clean/dist/shaka-player.compiled.externs.js
3279
3552
  declare namespace shaka.util {
3280
3553
  class Uint8ArrayUtils {
3281
3554
  private noStructuralTyping_shaka_util_Uint8ArrayUtils : any;
@@ -3309,7 +3582,7 @@ declare namespace shaka.util {
3309
3582
  static toStandardBase64 (data : ArrayBuffer | ArrayBufferView ) : string ;
3310
3583
  }
3311
3584
  }
3312
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/airplay.js
3585
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/airplay.js
3313
3586
  declare namespace ಠ_ಠ.clutz {
3314
3587
  class AirPlayEvent extends Event {
3315
3588
  private noStructuralTyping_AirPlayEvent : any;
@@ -3317,7 +3590,7 @@ declare namespace ಠ_ಠ.clutz {
3317
3590
  availability : String | null ;
3318
3591
  }
3319
3592
  }
3320
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/awesomplete.js
3593
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/awesomplete.js
3321
3594
  declare namespace ಠ_ಠ.clutz {
3322
3595
  class Awesomplete {
3323
3596
  private noStructuralTyping_Awesomplete : any;
@@ -3327,18 +3600,18 @@ declare namespace ಠ_ಠ.clutz {
3327
3600
  evaluate ( ) : any ;
3328
3601
  }
3329
3602
  }
3330
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3603
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3331
3604
  declare namespace ಠ_ಠ.clutz {
3332
3605
  function __onGCastApiAvailable (a : boolean ) : any ;
3333
3606
  }
3334
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3607
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3335
3608
  declare namespace cast.receiver {
3336
3609
  class CastChannel {
3337
3610
  private noStructuralTyping_cast_receiver_CastChannel : any;
3338
3611
  send (message : any ) : any ;
3339
3612
  }
3340
3613
  }
3341
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3614
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3342
3615
  declare namespace cast.receiver {
3343
3616
  class CastMessageBus {
3344
3617
  private noStructuralTyping_cast_receiver_CastMessageBus : any;
@@ -3347,7 +3620,7 @@ declare namespace cast.receiver {
3347
3620
  onMessage : Function | null ;
3348
3621
  }
3349
3622
  }
3350
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3623
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3351
3624
  declare namespace cast.receiver.CastMessageBus {
3352
3625
  class Event {
3353
3626
  private noStructuralTyping_cast_receiver_CastMessageBus_Event : any;
@@ -3355,7 +3628,7 @@ declare namespace cast.receiver.CastMessageBus {
3355
3628
  senderId : string ;
3356
3629
  }
3357
3630
  }
3358
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3631
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3359
3632
  declare namespace cast.receiver {
3360
3633
  class CastReceiverManager {
3361
3634
  private noStructuralTyping_cast_receiver_CastReceiverManager : any;
@@ -3373,7 +3646,7 @@ declare namespace cast.receiver {
3373
3646
  static getInstance ( ) : cast.receiver.CastReceiverManager | null ;
3374
3647
  }
3375
3648
  }
3376
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3649
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3377
3650
  declare namespace cast.receiver.media {
3378
3651
  enum MetadataType {
3379
3652
  GENERIC = 0.0 ,
@@ -3383,7 +3656,7 @@ declare namespace cast.receiver.media {
3383
3656
  TV_SHOW = 2.0 ,
3384
3657
  }
3385
3658
  }
3386
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3659
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3387
3660
  declare namespace cast.receiver.system {
3388
3661
  class SystemVolumeData {
3389
3662
  private noStructuralTyping_cast_receiver_system_SystemVolumeData : any;
@@ -3391,14 +3664,14 @@ declare namespace cast.receiver.system {
3391
3664
  muted : boolean ;
3392
3665
  }
3393
3666
  }
3394
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3667
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3395
3668
  declare namespace chrome.cast {
3396
3669
  class ApiConfig {
3397
3670
  private noStructuralTyping_chrome_cast_ApiConfig : any;
3398
3671
  constructor (sessionRequest : chrome.cast.SessionRequest | null , sessionListener : Function | null , receiverListener : Function | null , autoJoinPolicy ? : string , defaultActionPolicy ? : string ) ;
3399
3672
  }
3400
3673
  }
3401
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3674
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3402
3675
  declare namespace chrome.cast {
3403
3676
  class Error {
3404
3677
  private noStructuralTyping_chrome_cast_Error : any;
@@ -3408,14 +3681,14 @@ declare namespace chrome.cast {
3408
3681
  details : object | null ;
3409
3682
  }
3410
3683
  }
3411
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3684
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3412
3685
  declare namespace chrome.cast {
3413
3686
  class Receiver {
3414
3687
  private noStructuralTyping_chrome_cast_Receiver : any;
3415
3688
  friendlyName : string ;
3416
3689
  }
3417
3690
  }
3418
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3691
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3419
3692
  declare namespace chrome.cast {
3420
3693
  class Session {
3421
3694
  private noStructuralTyping_chrome_cast_Session : any;
@@ -3431,32 +3704,32 @@ declare namespace chrome.cast {
3431
3704
  stop (successCallback : Function | null , errorCallback : Function | null ) : any ;
3432
3705
  }
3433
3706
  }
3434
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3707
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3435
3708
  declare namespace chrome.cast {
3436
3709
  class SessionRequest {
3437
3710
  private noStructuralTyping_chrome_cast_SessionRequest : any;
3438
3711
  constructor (appId : string , capabilities : ( object | null ) [] | null , timeout : number | null , androidReceiverCompatible : boolean , credentialsData : object | null ) ;
3439
3712
  }
3440
3713
  }
3441
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3714
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3442
3715
  declare namespace chrome.cast.SessionStatus {
3443
3716
  let STOPPED : string ;
3444
3717
  }
3445
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/chromecast.js
3718
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/chromecast.js
3446
3719
  declare namespace chrome.cast {
3447
3720
  let isAvailable : boolean ;
3448
3721
  }
3449
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/cmcd.js
3722
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/cmcd.js
3450
3723
  declare namespace ಠ_ಠ.clutz {
3451
3724
  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 } ;
3452
3725
  }
3453
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3726
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3454
3727
  declare namespace google.ima.AdErrorEvent {
3455
3728
  enum Type {
3456
3729
  AD_ERROR = 'AD_ERROR' ,
3457
3730
  }
3458
3731
  }
3459
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3732
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3460
3733
  declare namespace google.ima.AdEvent {
3461
3734
  enum Type {
3462
3735
  AD_BREAK_READY = 'AD_BREAK_READY' ,
@@ -3488,7 +3761,7 @@ declare namespace google.ima.AdEvent {
3488
3761
  VOLUME_MUTED = 'VOLUME_MUTED' ,
3489
3762
  }
3490
3763
  }
3491
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3764
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3492
3765
  declare namespace google.ima {
3493
3766
  class AdsLoader implements EventTarget {
3494
3767
  private noStructuralTyping_google_ima_AdsLoader : any;
@@ -3502,7 +3775,7 @@ declare namespace google.ima {
3502
3775
  requestAds (request : google.ima.AdsRequest ) : any ;
3503
3776
  }
3504
3777
  }
3505
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3778
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3506
3779
  declare namespace google.ima {
3507
3780
  class AdsManager implements EventTarget {
3508
3781
  private noStructuralTyping_google_ima_AdsManager : any;
@@ -3525,21 +3798,21 @@ declare namespace google.ima {
3525
3798
  updateAdsRenderingSettings (adsRenderingSettings : google.ima.AdsRenderingSettings ) : any ;
3526
3799
  }
3527
3800
  }
3528
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3801
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3529
3802
  declare namespace google.ima.AdsManagerLoadedEvent {
3530
3803
  enum Type {
3531
3804
  ADS_MANAGER_LOADED = 'ADS_MANAGER_LOADED' ,
3532
3805
  }
3533
3806
  }
3534
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3807
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3535
3808
  declare namespace google.ima {
3536
3809
  type AdsRenderingSettings = { autoAlign : boolean , bitrate : number , enablePreloading : boolean , loadVideoTimeout : number , mimeTypes : string [] | null , playAdsAfterTime : number , restoreCustomPlaybackStateOnAdBreakComplete : boolean , uiElements : string [] | null , useStyledLinearAds : boolean , useStyledNonLinearAds : boolean } ;
3537
3810
  }
3538
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3811
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3539
3812
  declare namespace google.ima {
3540
3813
  type AdsRequest = { adTagUrl ? : string , adsResponse ? : string } ;
3541
3814
  }
3542
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3815
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3543
3816
  declare namespace google.ima.ImaSdkSettings {
3544
3817
  enum VpaidMode {
3545
3818
  DISABLED = 0.0 ,
@@ -3547,14 +3820,14 @@ declare namespace google.ima.ImaSdkSettings {
3547
3820
  INSECURE = 2.0 ,
3548
3821
  }
3549
3822
  }
3550
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3823
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3551
3824
  declare namespace google.ima {
3552
3825
  enum ViewMode {
3553
3826
  FULLSCREEN = 'FULLSCREEN' ,
3554
3827
  NORMAL = 'NORMAL' ,
3555
3828
  }
3556
3829
  }
3557
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3830
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3558
3831
  declare namespace google.ima.dai.api {
3559
3832
  enum OmidAccessMode {
3560
3833
  DOMAIN = 'domain' ,
@@ -3562,7 +3835,7 @@ declare namespace google.ima.dai.api {
3562
3835
  LIMITED = 'limited' ,
3563
3836
  }
3564
3837
  }
3565
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3838
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3566
3839
  declare namespace google.ima.dai.api {
3567
3840
  enum OmidVerificationVendor {
3568
3841
  COMSCORE = 7.0 ,
@@ -3576,7 +3849,7 @@ declare namespace google.ima.dai.api {
3576
3849
  PIXELATE = 5.0 ,
3577
3850
  }
3578
3851
  }
3579
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3852
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3580
3853
  declare namespace google.ima.dai.api.StreamEvent {
3581
3854
  enum Type {
3582
3855
  AD_BREAK_ENDED = 'adBreakEnded' ,
@@ -3599,7 +3872,7 @@ declare namespace google.ima.dai.api.StreamEvent {
3599
3872
  VIDEO_CLICKED = 'videoClicked' ,
3600
3873
  }
3601
3874
  }
3602
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3875
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3603
3876
  declare namespace google.ima.dai.api {
3604
3877
  class StreamManager implements EventTarget {
3605
3878
  private noStructuralTyping_google_ima_dai_api_StreamManager : any;
@@ -3618,18 +3891,18 @@ declare namespace google.ima.dai.api {
3618
3891
  streamTimeForContentTime (contentTime : number ) : any ;
3619
3892
  }
3620
3893
  }
3621
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3894
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3622
3895
  declare namespace google.ima.dai.api.StreamRequest {
3623
3896
  enum StreamFormat {
3624
3897
  DASH = 'dash' ,
3625
3898
  HLS = 'hls' ,
3626
3899
  }
3627
3900
  }
3628
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3901
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/ima.js
3629
3902
  declare namespace google.ima {
3630
3903
  let settings : google.ima.ImaSdkSettings ;
3631
3904
  }
3632
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/jwk_set.js
3905
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/jwk_set.js
3633
3906
  declare namespace ಠ_ಠ.clutz {
3634
3907
  /**
3635
3908
  * A JSON Web Key.
@@ -3654,7 +3927,7 @@ declare namespace ಠ_ಠ.clutz {
3654
3927
  kty : string ;
3655
3928
  }
3656
3929
  }
3657
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/jwk_set.js
3930
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/jwk_set.js
3658
3931
  declare namespace ಠ_ಠ.clutz {
3659
3932
  /**
3660
3933
  * A JSON Web Key set.
@@ -3664,14 +3937,17 @@ declare namespace ಠ_ಠ.clutz {
3664
3937
  keys : ( JWK | null ) [] | null ;
3665
3938
  }
3666
3939
  }
3667
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
3668
- declare namespace LcevcDil {
3940
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
3941
+ declare namespace LCEVCdec {
3669
3942
  /**
3670
- * LCEVC DIL constructor
3943
+ * LCEVC Dec constructor
3671
3944
  */
3672
- class LcevcDIL {
3673
- private noStructuralTyping_LcevcDil_LcevcDIL : any;
3674
- constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , dilConfig : shaka.extern.LcevcConfiguration ) ;
3945
+ class LCEVCdec {
3946
+ private noStructuralTyping_LCEVCdec_LCEVCdec : any;
3947
+ /**
3948
+ * LCEVC Dec constructor
3949
+ */
3950
+ constructor (media : HTMLVideoElement | null , canvas : HTMLCanvasElement | null , lcevcConfig : shaka.extern.LcevcConfiguration ) ;
3675
3951
  /**
3676
3952
  * Append the video buffers before they are appended to
3677
3953
  * Media Source Extensions SourceBuffer. Here the lcevc data
@@ -3679,10 +3955,11 @@ declare namespace LcevcDil {
3679
3955
  * @param data Video Buffer Data.
3680
3956
  * @param type Type of Video Buffer Data.
3681
3957
  * @param variantId Variant that the fragment belongs to.
3958
+ * @param timestampOffset Timestamp offset for appended segments
3682
3959
  */
3683
- appendBuffer (data : ArrayBuffer | ArrayBufferView , type : string , variantId : number ) : any ;
3960
+ appendBuffer (data : ArrayBuffer | ArrayBufferView , type : string , variantId : number , timestampOffset : number ) : any ;
3684
3961
  /**
3685
- * Close LCEVC DIL
3962
+ * Close LCEVC DEC
3686
3963
  */
3687
3964
  close ( ) : any ;
3688
3965
  /**
@@ -3692,33 +3969,54 @@ declare namespace LcevcDil {
3692
3969
  setContainerFormat (containerFormat : number ) : any ;
3693
3970
  /**
3694
3971
  * Set current variant as variantId to the LCEVC decoder
3695
- * @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.
3972
+ * @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.
3696
3973
  */
3697
3974
  setLevelSwitching (variantId : number , autoBufferSwitch : boolean ) : any ;
3975
+ /**
3976
+ * Set streaming Format for LCEVC Data Parsing.
3977
+ * @param streamingFormat container type of the stream.
3978
+ */
3979
+ setStreamingFormat (streamingFormat : number ) : any ;
3698
3980
  }
3699
3981
  }
3700
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
3701
- declare namespace LcevcDil.SupportObject {
3982
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
3983
+ declare namespace LCEVCdec {
3984
+ /**
3985
+ * The older module interface, for backward compatibility.
3986
+ * Typed to the same interface, but under a different name.
3987
+ */
3988
+ export import LcevcDil = LCEVCdec.LCEVCdec ;
3989
+ }
3990
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
3991
+ declare namespace LCEVCdec.SupportObject {
3702
3992
  /**
3703
3993
  * LCEVC Support CheckList Error if any.
3704
3994
  */
3705
3995
  let SupportError : string ;
3706
3996
  }
3707
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
3708
- declare namespace LcevcDil.SupportObject {
3997
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
3998
+ declare namespace LCEVCdec.SupportObject {
3709
3999
  /**
3710
4000
  * LCEVC Support Checklist Result
3711
4001
  */
3712
4002
  let SupportStatus : boolean ;
3713
4003
  }
3714
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/lcevc.js
3715
- declare namespace LcevcDil.SupportObject {
4004
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4005
+ declare namespace LCEVCdec.SupportObject {
3716
4006
  /**
3717
4007
  * Check if canvas has WebGL support
3718
4008
  */
3719
4009
  function webGLSupport (canvas : HTMLCanvasElement | null ) : boolean ;
3720
4010
  }
3721
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mdl.js
4011
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/lcevc.js
4012
+ declare namespace ಠ_ಠ.clutz {
4013
+ /**
4014
+ * Typedef for the module interface. Both LCEVCdec (new module) and LcevcDil
4015
+ * (old module) implement roughly the same interface.
4016
+ */
4017
+ type LCEVCmodule = typeof LCEVCdec ;
4018
+ }
4019
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mdl.js
3722
4020
  declare namespace ಠ_ಠ.clutz {
3723
4021
  class MaterialLayout {
3724
4022
  private noStructuralTyping_MaterialLayout : any;
@@ -3726,7 +4024,43 @@ declare namespace ಠ_ಠ.clutz {
3726
4024
  toggleDrawer ( ) : any ;
3727
4025
  }
3728
4026
  }
3729
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mediasession.js
4027
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/media_remote.js
4028
+ declare namespace ಠ_ಠ.clutz {
4029
+ class RemotePlayback implements EventTarget {
4030
+ private noStructuralTyping_RemotePlayback : any;
4031
+ addEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , opt_options ? : boolean | AddEventListenerOptions ) : void ;
4032
+ /**
4033
+ * The cancelWatchAvailability() method of the RemotePlayback interface
4034
+ * cancels the request to watch for one or all available devices.
4035
+ */
4036
+ cancelWatchAvailability (id : number ) : Promise < any > ;
4037
+ dispatchEvent (evt : Event ) : boolean ;
4038
+ /**
4039
+ * The prompt() method of the RemotePlayback interface prompts the user
4040
+ * to select an available remote playback device and give permission
4041
+ * for the current media to be played using that device.
4042
+ *
4043
+ * If the user gives permission, the state will be set to connecting and
4044
+ * the user agent will connect to the device to initiate playback.
4045
+ *
4046
+ * If the user chooses to instead disconnect from the device, the state will
4047
+ * be set to disconnected and user agent will disconnect from this device.
4048
+ */
4049
+ prompt ( ) : Promise < any > ;
4050
+ removeEventListener (type : string , listener : EventListener | null | ( (a : Event ) => any ) , opt_options ? : boolean | EventListenerOptions ) : void ;
4051
+ /**
4052
+ * Represents the RemotePlayback connection's state.
4053
+ */
4054
+ state : string ;
4055
+ /**
4056
+ * The watchAvailability() method of the RemotePlayback interface watches
4057
+ * the list of available remote playback devices and returns a Promise that
4058
+ * resolves with the callbackId of a remote playback device.
4059
+ */
4060
+ watchAvailability (callback : (a : boolean ) => any ) : Promise < any > ;
4061
+ }
4062
+ }
4063
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediasession.js
3730
4064
  declare namespace ಠ_ಠ.clutz {
3731
4065
  class MediaMetadata {
3732
4066
  private noStructuralTyping_MediaMetadata : any;
@@ -3736,44 +4070,58 @@ declare namespace ಠ_ಠ.clutz {
3736
4070
  title : string ;
3737
4071
  }
3738
4072
  }
3739
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mediasession.js
4073
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediasession.js
3740
4074
  declare namespace ಠ_ಠ.clutz {
3741
4075
  class MediaSession {
3742
4076
  private noStructuralTyping_MediaSession : any;
3743
4077
  metadata : MediaMetadata | null ;
3744
4078
  }
3745
4079
  }
3746
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mux.js
3747
- declare namespace muxjs.mp4 {
3748
- class Transmuxer {
3749
- private noStructuralTyping_muxjs_mp4_Transmuxer : any;
3750
- constructor (options ? : object | null ) ;
3751
- /**
3752
- * Remove all handlers and clean up.
3753
- */
3754
- dispose ( ) : any ;
3755
- flush ( ) : any ;
3756
- /**
3757
- * Remove a handler for a specified event type.
3758
- * @param type Event name
3759
- * @param listener The callback to be removed
3760
- */
3761
- off (type : string , listener : Function | null ) : any ;
3762
- /**
3763
- * Add a handler for a specified event type.
3764
- * @param type Event name
3765
- * @param listener The callback to be invoked
3766
- */
3767
- on (type : string , listener : Function | null ) : any ;
3768
- push (data : Uint8Array ) : any ;
3769
- setBaseMediaDecodeTime (time : number ) : any ;
3770
- }
4080
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4081
+ declare namespace mediaTailor {
4082
+ 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 [] } ;
4083
+ }
4084
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4085
+ declare namespace mediaTailor {
4086
+ type AdBreak = { adBreakTrackingEvents : mediaTailor.TrackingEvent [] , ads : mediaTailor.Ad [] , durationInSeconds : number , nonLinearAdsList : mediaTailor.Ad [] , startTimeInSeconds : number } ;
4087
+ }
4088
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4089
+ declare namespace mediaTailor {
4090
+ type NonLinearAd = { adId : string , adParameters : string , adSystem : string , adTitle : string , creativeAdId : string , creativeId : string , creativeSequence : string , height : number | null , staticResource : string , width : number | null } ;
4091
+ }
4092
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4093
+ declare namespace mediaTailor {
4094
+ type SessionResponse = { manifestUrl : string | null , trackingUrl : string | null } ;
4095
+ }
4096
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4097
+ declare namespace mediaTailor {
4098
+ type TrackingEvent = { beaconUrls : string [] , eventType : string } ;
4099
+ }
4100
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4101
+ declare namespace mediaTailor {
4102
+ type TrackingResponse = { avails : mediaTailor.AdBreak [] } ;
4103
+ }
4104
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4105
+ declare namespace mediaTailorExternalResource {
4106
+ type App = { data : mediaTailorExternalResource.AppData , placeholder : mediaTailorExternalResource.AppPlaceholder } ;
4107
+ }
4108
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4109
+ declare namespace mediaTailorExternalResource {
4110
+ type AppData = { source : mediaTailorExternalResource.AppDataSource [] } ;
4111
+ }
4112
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4113
+ declare namespace mediaTailorExternalResource {
4114
+ type AppDataSource = { url : string } ;
3771
4115
  }
3772
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/mux.js
3773
- declare namespace muxjs.mp4.Transmuxer {
3774
- type Segment = { data : Uint8Array , initSegment : Uint8Array } ;
4116
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4117
+ declare namespace mediaTailorExternalResource {
4118
+ type AppPlaceholder = { left : number , top : number } ;
3775
4119
  }
3776
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
4120
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/mediatailor.js
4121
+ declare namespace mediaTailorExternalResource {
4122
+ type Response = { apps : mediaTailorExternalResource.App [] } ;
4123
+ }
4124
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/pictureinpicture.js
3777
4125
  declare namespace ಠ_ಠ.clutz {
3778
4126
  class DocumentPictureInPicture implements EventTarget {
3779
4127
  private noStructuralTyping_DocumentPictureInPicture : any;
@@ -3784,15 +4132,23 @@ declare namespace ಠ_ಠ.clutz {
3784
4132
  window : Window | null ;
3785
4133
  }
3786
4134
  }
3787
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/pictureinpicture.js
4135
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/pictureinpicture.js
4136
+ declare namespace ಠ_ಠ.clutz {
4137
+ class DocumentPictureInPictureEvent extends Event {
4138
+ private noStructuralTyping_DocumentPictureInPictureEvent : any;
4139
+ constructor ( ) ;
4140
+ window : Window | null ;
4141
+ }
4142
+ }
4143
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/pictureinpicture.js
3788
4144
  declare namespace ಠ_ಠ.clutz {
3789
4145
  type DocumentPictureInPictureOptions = { height ? : number , width ? : number } ;
3790
4146
  }
3791
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/polyfill.js
4147
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/polyfill.js
3792
4148
  declare namespace window {
3793
4149
  let shakaMediaKeysPolyfill : boolean ;
3794
4150
  }
3795
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/prefixed_eme.js
4151
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/prefixed_eme.js
3796
4152
  declare namespace ಠ_ಠ.clutz {
3797
4153
  class MediaKeyError {
3798
4154
  private noStructuralTyping_MediaKeyError : any;
@@ -3800,7 +4156,7 @@ declare namespace ಠ_ಠ.clutz {
3800
4156
  systemCode : number ;
3801
4157
  }
3802
4158
  }
3803
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/prefixed_eme.js
4159
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/prefixed_eme.js
3804
4160
  declare namespace ಠ_ಠ.clutz {
3805
4161
  class MediaKeyEvent extends Event {
3806
4162
  private noStructuralTyping_MediaKeyEvent : any;
@@ -3815,7 +4171,7 @@ declare namespace ಠ_ಠ.clutz {
3815
4171
  target : HTMLMediaElement ;
3816
4172
  }
3817
4173
  }
3818
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abortable.js
4174
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abortable.js
3819
4175
  declare namespace shaka.extern {
3820
4176
  /**
3821
4177
  * A representation of an abortable operation. Note that these are not
@@ -3841,7 +4197,7 @@ declare namespace shaka.extern {
3841
4197
  promise : Promise < T > ;
3842
4198
  }
3843
4199
  }
3844
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
4200
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abr_manager.js
3845
4201
  declare namespace shaka.extern {
3846
4202
  /**
3847
4203
  * An object which selects Streams from a set of possible choices. This also
@@ -3916,14 +4272,14 @@ declare namespace shaka.extern {
3916
4272
  stop ( ) : any ;
3917
4273
  }
3918
4274
  }
3919
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
4275
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abr_manager.js
3920
4276
  declare namespace shaka.extern.AbrManager {
3921
4277
  /**
3922
4278
  * A factory for creating the abr manager.
3923
4279
  */
3924
4280
  type Factory = ( ) => shaka.extern.AbrManager ;
3925
4281
  }
3926
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
4282
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/abr_manager.js
3927
4283
  declare namespace shaka.extern.AbrManager {
3928
4284
  /**
3929
4285
  * A callback into the Player that should be called when the AbrManager decides
@@ -3942,15 +4298,15 @@ declare namespace shaka.extern.AbrManager {
3942
4298
  */
3943
4299
  type SwitchCallback = (a : shaka.extern.Variant , b ? : boolean , c ? : number ) => any ;
3944
4300
  }
3945
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4301
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
3946
4302
  declare namespace shaka.extern {
3947
4303
  type AdCuePoint = { end : number | null , start : number } ;
3948
4304
  }
3949
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4305
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
3950
4306
  declare namespace shaka.extern {
3951
4307
  type AdsStats = { loadTimes : number [] , playedCompletely : number , skipped : number , started : number } ;
3952
4308
  }
3953
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4309
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
3954
4310
  declare namespace shaka.extern {
3955
4311
  /**
3956
4312
  * Interface for Ad objects.
@@ -3991,7 +4347,7 @@ declare namespace shaka.extern {
3991
4347
  skip ( ) : any ;
3992
4348
  }
3993
4349
  }
3994
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4350
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
3995
4351
  declare namespace shaka.extern {
3996
4352
  /**
3997
4353
  * An object that's responsible for all the ad-related logic
@@ -4004,6 +4360,7 @@ declare namespace shaka.extern {
4004
4360
  * Must be called at least once before init*().
4005
4361
  */
4006
4362
  configure (config : shaka.extern.AdsConfiguration ) : any ;
4363
+ getCuePoints ( ) : shaka.extern.AdCuePoint [] ;
4007
4364
  getServerSideCuePoints ( ) : shaka.extern.AdCuePoint [] ;
4008
4365
  /**
4009
4366
  * Get statistics for the current playback session. If the player is not
@@ -4011,35 +4368,41 @@ declare namespace shaka.extern {
4011
4368
  */
4012
4369
  getStats ( ) : any ;
4013
4370
  initClientSide (adContainer : HTMLElement , video : HTMLMediaElement , adsRenderingSettings : google.ima.AdsRenderingSettings | null ) : any ;
4371
+ initMediaTailor (adContainer : HTMLElement , networkingEngine : shaka.net.NetworkingEngine , video : HTMLMediaElement ) : any ;
4014
4372
  initServerSide (adContainer : HTMLElement , video : HTMLMediaElement ) : any ;
4015
4373
  onAssetUnload ( ) : any ;
4016
4374
  onCueMetadataChange (value : shaka.extern.MetadataFrame ) : any ;
4017
4375
  onDashTimedMetadata (region : shaka.extern.TimelineRegionInfo ) : any ;
4018
4376
  onHlsTimedMetadata (metadata : shaka.extern.ID3Metadata , timestampOffset : number ) : any ;
4377
+ /**
4378
+ * Fired when the manifest is updated.
4379
+ */
4380
+ onManifestUpdated (isLive : boolean ) : any ;
4019
4381
  release ( ) : any ;
4020
4382
  replaceServerSideAdTagParameters (adTagParameters : object | null ) : any ;
4021
4383
  requestClientSideAds (imaRequest : google.ima.AdsRequest ) : any ;
4384
+ requestMediaTailorStream (url : string , adsParams : object | null , backupUrl ? : string ) : Promise < string > ;
4022
4385
  requestServerSideStream (imaRequest : google.ima.dai.api.StreamRequest , backupUrl ? : string ) : Promise < string > ;
4023
4386
  setLocale (locale : string ) : any ;
4024
4387
  updateClientSideAdsRenderingSettings (adsRenderingSettings : google.ima.AdsRenderingSettings ) : any ;
4025
4388
  }
4026
4389
  }
4027
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4390
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/ads.js
4028
4391
  declare namespace shaka.extern.IAdManager {
4029
4392
  /**
4030
4393
  * A factory for creating the ad manager.
4031
4394
  */
4032
4395
  type Factory = ( ) => shaka.extern.IAdManager ;
4033
4396
  }
4034
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4397
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4035
4398
  declare namespace shaka.extern {
4036
4399
  type CaptionDecoderPlugin = ( ) => shaka.extern.ICaptionDecoder ;
4037
4400
  }
4038
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4401
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4039
4402
  declare namespace shaka.extern {
4040
4403
  type CeaParserPlugin = ( ) => shaka.extern.ICeaParser ;
4041
4404
  }
4042
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4405
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4043
4406
  declare namespace shaka.extern {
4044
4407
  /**
4045
4408
  * Interface for decoding inband closed captions from packets.
@@ -4066,14 +4429,14 @@ declare namespace shaka.extern {
4066
4429
  extract (userDataSeiMessage : Uint8Array , pts : number ) : any ;
4067
4430
  }
4068
4431
  }
4069
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4432
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4070
4433
  declare namespace shaka.extern.ICaptionDecoder {
4071
4434
  /**
4072
4435
  * Parsed Cue.
4073
4436
  */
4074
4437
  type ClosedCaption = { cue : shaka.text.Cue , stream : string } ;
4075
4438
  }
4076
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4439
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4077
4440
  declare namespace shaka.extern {
4078
4441
  /**
4079
4442
  * Interface for parsing inband closed caption data from MP4 streams.
@@ -4091,19 +4454,19 @@ declare namespace shaka.extern {
4091
4454
  parse (mediaSegment : ArrayBuffer | ArrayBufferView ) : shaka.extern.ICeaParser.CaptionPacket [] ;
4092
4455
  }
4093
4456
  }
4094
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/cea.js
4457
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/cea.js
4095
4458
  declare namespace shaka.extern.ICeaParser {
4096
4459
  type CaptionPacket = { packet : Uint8Array , pts : number } ;
4097
4460
  }
4098
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
4461
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/codecs.js
4099
4462
  declare namespace shaka.extern {
4100
4463
  type MPEG_PES = { data : Uint8Array | null , dts : number | null , packetLength : number , pts : number | null } ;
4101
4464
  }
4102
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/codecs.js
4465
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/codecs.js
4103
4466
  declare namespace shaka.extern {
4104
4467
  type VideoNalu = { data : Uint8Array , fullData : Uint8Array , time : number | null , type : number } ;
4105
4468
  }
4106
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/error.js
4469
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/error.js
4107
4470
  declare namespace shaka.extern {
4108
4471
  interface Error {
4109
4472
  category : shaka.util.Error.Category ;
@@ -4113,11 +4476,11 @@ declare namespace shaka.extern {
4113
4476
  severity : shaka.util.Error.Severity ;
4114
4477
  }
4115
4478
  }
4116
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/error.js
4479
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/error.js
4117
4480
  declare namespace shaka.extern {
4118
4481
  type RestrictionInfo = { hasAppRestrictions : boolean , missingKeys : string [] , restrictedKeyStatuses : string [] } ;
4119
4482
  }
4120
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4483
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4121
4484
  declare namespace shaka.extern {
4122
4485
  /**
4123
4486
  * Creates a SegmentIndex; returns a Promise that resolves after the
@@ -4125,11 +4488,11 @@ declare namespace shaka.extern {
4125
4488
  */
4126
4489
  type CreateSegmentIndexFunction = ( ) => Promise < any > ;
4127
4490
  }
4128
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4491
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4129
4492
  declare namespace shaka.extern {
4130
4493
  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 } ;
4131
4494
  }
4132
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4495
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4133
4496
  declare namespace shaka.extern {
4134
4497
  /**
4135
4498
  * A function that fetches the crypto keys for AES-128.
@@ -4137,39 +4500,39 @@ declare namespace shaka.extern {
4137
4500
  */
4138
4501
  type FetchCryptoKeysFunction = ( ) => Promise < any > ;
4139
4502
  }
4140
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4141
- declare namespace shaka.extern {
4142
- type HlsAes128Key = { cryptoKey ? : webCrypto.CryptoKey | null , fetchKey ? : shaka.extern.CreateSegmentIndexFunction , firstMediaSequenceNumber : number , iv ? : Uint8Array , method : string } ;
4143
- }
4144
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4503
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4145
4504
  declare namespace shaka.extern {
4146
4505
  type InitDataOverride = { initData : Uint8Array , initDataType : string , keyId : string | null } ;
4147
4506
  }
4148
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4507
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4149
4508
  declare namespace shaka.extern {
4150
4509
  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 [] } ;
4151
4510
  }
4152
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4511
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4153
4512
  declare namespace shaka.extern {
4154
4513
  type MssPrivateData = { codecPrivateData : string | null , duration : number , timescale : number } ;
4155
4514
  }
4156
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4515
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4157
4516
  declare namespace shaka.extern {
4158
4517
  type Period = { audioStreams : shaka.extern.Stream [] , id : string , imageStreams : shaka.extern.Stream [] , textStreams : shaka.extern.Stream [] , videoStreams : shaka.extern.Stream [] } ;
4159
4518
  }
4160
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4519
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4161
4520
  declare namespace shaka.extern {
4162
4521
  type ServiceDescription = { maxLatency : number | null , maxPlaybackRate : number | null } ;
4163
4522
  }
4164
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4523
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4165
4524
  declare namespace shaka.extern {
4166
- 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 } ;
4525
+ 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 } ;
4167
4526
  }
4168
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest.js
4527
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4169
4528
  declare namespace shaka.extern {
4170
4529
  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 } ;
4171
4530
  }
4172
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
4531
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest.js
4532
+ declare namespace shaka.extern {
4533
+ type aes128Key = { cryptoKey ? : webCrypto.CryptoKey | null , fetchKey ? : shaka.extern.CreateSegmentIndexFunction , firstMediaSequenceNumber : number , iv ? : Uint8Array , method : string } ;
4534
+ }
4535
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest_parser.js
4173
4536
  declare namespace shaka.extern {
4174
4537
  /**
4175
4538
  * Parses media manifests and handles manifest updates.
@@ -4232,7 +4595,7 @@ declare namespace shaka.extern {
4232
4595
  update ( ) : any ;
4233
4596
  }
4234
4597
  }
4235
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
4598
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest_parser.js
4236
4599
  declare namespace shaka.extern.ManifestParser {
4237
4600
  /**
4238
4601
  * A factory for creating the manifest parser. This function is registered with
@@ -4240,31 +4603,31 @@ declare namespace shaka.extern.ManifestParser {
4240
4603
  */
4241
4604
  type Factory = ( ) => shaka.extern.ManifestParser ;
4242
4605
  }
4243
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/manifest_parser.js
4606
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/manifest_parser.js
4244
4607
  declare namespace shaka.extern.ManifestParser {
4245
- 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 } ;
4608
+ 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 } ;
4246
4609
  }
4247
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/mp4_parser.js
4610
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/mp4_parser.js
4248
4611
  declare namespace shaka.extern {
4249
4612
  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 } ;
4250
4613
  }
4251
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4614
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4252
4615
  declare namespace shaka.extern {
4253
4616
  type HeadersReceived = (a : { [ key: string ]: string } ) => any ;
4254
4617
  }
4255
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4618
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4256
4619
  declare namespace shaka.extern {
4257
4620
  type ProgressUpdated = (a : number , b : number , c : number ) => any ;
4258
4621
  }
4259
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4622
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4260
4623
  declare namespace shaka.extern {
4261
4624
  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 [] } ;
4262
4625
  }
4263
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4626
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4264
4627
  declare namespace shaka.extern {
4265
4628
  type RequestContext = { segment ? : shaka.media.SegmentReference | null , stream ? : shaka.extern.Stream , type ? : shaka.net.NetworkingEngine.AdvancedRequestType } ;
4266
4629
  }
4267
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4630
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4268
4631
  declare namespace shaka.extern {
4269
4632
  /**
4270
4633
  * Defines a filter for requests. This filter takes the request and modifies
@@ -4277,11 +4640,11 @@ declare namespace shaka.extern {
4277
4640
  */
4278
4641
  type RequestFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Request , c ? : shaka.extern.RequestContext ) => Promise < any > | void ;
4279
4642
  }
4280
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4643
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4281
4644
  declare namespace shaka.extern {
4282
4645
  type Response = { data : ArrayBuffer | ArrayBufferView , fromCache ? : boolean , headers : { [ key: string ]: string } , originalUri : string , status ? : number , timeMs ? : number , uri : string } ;
4283
4646
  }
4284
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4647
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4285
4648
  declare namespace shaka.extern {
4286
4649
  /**
4287
4650
  * Defines a filter for responses. This filter takes the response and modifies
@@ -4293,19 +4656,19 @@ declare namespace shaka.extern {
4293
4656
  */
4294
4657
  type ResponseFilter = (a : shaka.net.NetworkingEngine.RequestType , b : shaka.extern.Response , c ? : shaka.extern.RequestContext ) => Promise < any > | void ;
4295
4658
  }
4296
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4659
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4297
4660
  declare namespace shaka.extern {
4298
4661
  type RetryParameters = { backoffFactor : number , baseDelay : number , connectionTimeout : number , fuzzFactor : number , maxAttempts : number , stallTimeout : number , timeout : number } ;
4299
4662
  }
4300
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/net.js
4663
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/net.js
4301
4664
  declare namespace shaka.extern {
4302
4665
  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 > ;
4303
4666
  }
4304
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4667
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4305
4668
  declare namespace shaka.extern {
4306
4669
  type EmeSessionDB = { audioCapabilities : { contentType : string , robustness : string } [] , keySystem : string , licenseUri : string , serverCertificate : Uint8Array | null , sessionId : string , videoCapabilities : { contentType : string , robustness : string } [] } ;
4307
4670
  }
4308
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4671
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4309
4672
  declare namespace shaka.extern {
4310
4673
  /**
4311
4674
  * Similar to storage cells (shaka.extern.StorageCell), an EmeSessionStorageCell
@@ -4331,23 +4694,23 @@ declare namespace shaka.extern {
4331
4694
  remove (sessionIds : string [] ) : Promise < any > ;
4332
4695
  }
4333
4696
  }
4334
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4697
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4335
4698
  declare namespace shaka.extern {
4336
4699
  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 } ;
4337
4700
  }
4338
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4701
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4339
4702
  declare namespace shaka.extern {
4340
4703
  type OfflineSupport = { basic : boolean , encrypted : { [ key: string ]: boolean } } ;
4341
4704
  }
4342
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4705
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4343
4706
  declare namespace shaka.extern {
4344
4707
  type SegmentDB = { appendWindowEnd : number , appendWindowStart : number , dataKey : number , endTime : number , initSegmentKey : number | null , pendingInitSegmentRefId ? : string , pendingSegmentRefId ? : string , startTime : number , tilesLayout : string | null , timestampOffset : number } ;
4345
4708
  }
4346
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4709
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4347
4710
  declare namespace shaka.extern {
4348
4711
  type SegmentDataDB = { data : ArrayBuffer } ;
4349
4712
  }
4350
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4713
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4351
4714
  declare namespace shaka.extern {
4352
4715
  /**
4353
4716
  * An interface that defines access to collection of segments and manifests. All
@@ -4423,7 +4786,7 @@ declare namespace shaka.extern {
4423
4786
  updateManifestExpiration (key : number , expiration : number ) : Promise < any > ;
4424
4787
  }
4425
4788
  }
4426
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4789
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4427
4790
  declare namespace shaka.extern {
4428
4791
  /**
4429
4792
  * Storage mechanisms are one of two exported storage APIs. Storage mechanisms
@@ -4467,207 +4830,207 @@ declare namespace shaka.extern {
4467
4830
  init ( ) : Promise < any > ;
4468
4831
  }
4469
4832
  }
4470
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4833
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4471
4834
  declare namespace shaka.extern {
4472
4835
  type StoredContent = { appMetadata : object | null , duration : number , expiration : number , isIncomplete : boolean , offlineUri : string | null , originalManifestUri : string , size : number , tracks : shaka.extern.TrackList } ;
4473
4836
  }
4474
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline.js
4837
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline.js
4475
4838
  declare namespace shaka.extern {
4476
- 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 } ;
4839
+ 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 } ;
4477
4840
  }
4478
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
4841
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4479
4842
  declare namespace shaka.extern {
4480
4843
  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 } ;
4481
4844
  }
4482
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
4845
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4483
4846
  declare namespace shaka.extern {
4484
4847
  type PeriodDBV1 = { startTime : number , streams : shaka.extern.StreamDBV1 [] } ;
4485
4848
  }
4486
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
4849
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4487
4850
  declare namespace shaka.extern {
4488
4851
  type SegmentDBV1 = { endTime : number , startTime : number , uri : string } ;
4489
4852
  }
4490
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
4853
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4491
4854
  declare namespace shaka.extern {
4492
4855
  type SegmentDataDBV1 = { data : ArrayBuffer , key : number } ;
4493
4856
  }
4494
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v1.js
4857
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v1.js
4495
4858
  declare namespace shaka.extern {
4496
4859
  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 } ;
4497
4860
  }
4498
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
4861
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4499
4862
  declare namespace shaka.extern {
4500
4863
  type ManifestDBV2 = { appMetadata : object | null , drmInfo : shaka.extern.DrmInfo | null , duration : number , expiration : number , originalManifestUri : string , periods : shaka.extern.PeriodDBV2 [] , sessionIds : string [] , size : number } ;
4501
4864
  }
4502
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
4865
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4503
4866
  declare namespace shaka.extern {
4504
4867
  type PeriodDBV2 = { startTime : number , streams : shaka.extern.StreamDBV2 [] } ;
4505
4868
  }
4506
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
4869
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4507
4870
  declare namespace shaka.extern {
4508
4871
  type SegmentDBV2 = { dataKey : number , endTime : number , startTime : number } ;
4509
4872
  }
4510
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
4873
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4511
4874
  declare namespace shaka.extern {
4512
4875
  type SegmentDataDBV2 = { data : ArrayBuffer } ;
4513
4876
  }
4514
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/offline_compat_v2.js
4877
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/offline_compat_v2.js
4515
4878
  declare namespace shaka.extern {
4516
4879
  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 } ;
4517
4880
  }
4518
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4881
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4519
4882
  declare namespace shaka.extern {
4520
4883
  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 } ;
4521
4884
  }
4522
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4885
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4523
4886
  declare namespace shaka.extern {
4524
4887
  type AdsConfiguration = { customPlayheadTracker : boolean } ;
4525
4888
  }
4526
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4889
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4527
4890
  declare namespace shaka.extern {
4528
4891
  type AdvancedAbrConfiguration = { fastHalfLife : number , minBytes : number , minTotalBytes : number , slowHalfLife : number } ;
4529
4892
  }
4530
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4893
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4531
4894
  declare namespace shaka.extern {
4532
4895
  type AdvancedDrmConfiguration = { audioRobustness : string , distinctiveIdentifierRequired : boolean , individualizationServer : string , persistentStateRequired : boolean , serverCertificate : Uint8Array | null , serverCertificateUri : string , sessionType : string , videoRobustness : string } ;
4533
4896
  }
4534
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4897
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4535
4898
  declare namespace shaka.extern {
4536
4899
  type BufferedInfo = { audio : shaka.extern.BufferedRange [] , text : shaka.extern.BufferedRange [] , total : shaka.extern.BufferedRange [] , video : shaka.extern.BufferedRange [] } ;
4537
4900
  }
4538
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4901
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4539
4902
  declare namespace shaka.extern {
4540
4903
  type BufferedRange = { end : number , start : number } ;
4541
4904
  }
4542
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4905
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4543
4906
  declare namespace shaka.extern {
4544
4907
  type Chapter = { endTime : number , id : string , startTime : number , title : string } ;
4545
4908
  }
4546
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4909
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4547
4910
  declare namespace shaka.extern {
4548
4911
  type CmcdConfiguration = { contentId : string , enabled : boolean , sessionId : string , useHeaders : boolean } ;
4549
4912
  }
4550
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4913
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4551
4914
  declare namespace shaka.extern {
4552
- 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 } ;
4915
+ 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 } ;
4553
4916
  }
4554
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4917
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4555
4918
  declare namespace shaka.extern {
4556
4919
  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 } ;
4557
4920
  }
4558
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4921
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4559
4922
  declare namespace shaka.extern {
4560
4923
  type DrmSessionMetadata = { initData : Uint8Array | null , initDataType : string | null , sessionId : string , sessionType : string } ;
4561
4924
  }
4562
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4925
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4563
4926
  declare namespace shaka.extern {
4564
4927
  type DrmSupportType = { persistentState : boolean } ;
4565
4928
  }
4566
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4929
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4567
4930
  declare namespace shaka.extern {
4568
4931
  type EmsgInfo = { endTime : number , eventDuration : number , id : number , messageData : Uint8Array | null , presentationTimeDelta : number , schemeIdUri : string , startTime : number , timescale : number , value : string } ;
4569
4932
  }
4570
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4933
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4571
4934
  declare namespace shaka.extern {
4572
4935
  type HlsManifestConfiguration = { defaultAudioCodec : string , defaultVideoCodec : string , ignoreImageStreamFailures : boolean , ignoreManifestProgramDateTime : boolean , ignoreManifestTimestampsInSegmentsMode : boolean , ignoreTextStreamFailures : boolean , liveSegmentsDelay : number , mediaPlaylistFullMimeType : string , sequenceMode : boolean , useSafariBehaviorForLive : boolean } ;
4573
4936
  }
4574
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4937
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4575
4938
  declare namespace shaka.extern {
4576
4939
  type ID3Metadata = { cueTime : number | null , data : Uint8Array , dts : number | null , frames : shaka.extern.MetadataFrame [] , pts : number | null } ;
4577
4940
  }
4578
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4941
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4579
4942
  declare namespace shaka.extern {
4580
4943
  type InitDataTransform = (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array ;
4581
4944
  }
4582
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4945
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4583
4946
  declare namespace shaka.extern {
4584
4947
  type LanguageRole = { label : string | null , language : string , role : string } ;
4585
4948
  }
4586
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4949
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4587
4950
  declare namespace shaka.extern {
4588
4951
  type LcevcConfiguration = { drawLogo : boolean , dynamicPerformanceScaling : boolean , enabled : boolean , logLevel : number } ;
4589
4952
  }
4590
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4953
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4591
4954
  declare namespace shaka.extern {
4592
4955
  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 } ;
4593
4956
  }
4594
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4957
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4595
4958
  declare namespace shaka.extern {
4596
4959
  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 } ;
4597
4960
  }
4598
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4961
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4599
4962
  declare namespace shaka.extern {
4600
- type MediaSourceConfiguration = { forceTransmux : boolean , insertFakeEncryptionInInit : boolean , sourceBufferExtraFeatures : string } ;
4963
+ type MediaSourceConfiguration = { codecSwitchingStrategy : shaka.config.CodecSwitchingStrategy , forceTransmux : boolean , insertFakeEncryptionInInit : boolean , sourceBufferExtraFeatures : string } ;
4601
4964
  }
4602
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4965
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4603
4966
  declare namespace shaka.extern {
4604
4967
  type MetadataFrame = { data : ArrayBuffer | null | string | number , description : string , key : string } ;
4605
4968
  }
4606
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4969
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4607
4970
  declare namespace shaka.extern {
4608
4971
  type MetadataRawFrame = { data : Uint8Array | null , size : number , type : string } ;
4609
4972
  }
4610
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4973
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4611
4974
  declare namespace shaka.extern {
4612
4975
  type MssManifestConfiguration = { keySystemsBySystemId : { [ key: string ]: string } , manifestPreprocessor : (a : Element ) => any , sequenceMode : boolean } ;
4613
4976
  }
4614
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4977
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4615
4978
  declare namespace shaka.extern {
4616
4979
  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 } ;
4617
4980
  }
4618
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4981
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4619
4982
  declare namespace shaka.extern {
4620
4983
  type PersistentSessionMetadata = { initData : Uint8Array | null , initDataType : string | null , sessionId : string } ;
4621
4984
  }
4622
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4985
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4623
4986
  declare namespace shaka.extern {
4624
4987
  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 } ;
4625
4988
  }
4626
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4989
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4627
4990
  declare namespace shaka.extern {
4628
4991
  type ProducerReferenceTime = { programStartDate : Date | null , wallClockTime : number } ;
4629
4992
  }
4630
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4993
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4631
4994
  declare namespace shaka.extern {
4632
4995
  type Restrictions = { maxBandwidth : number , maxFrameRate : number , maxHeight : number , maxPixels : number , maxWidth : number , minBandwidth : number , minFrameRate : number , minHeight : number , minPixels : number , minWidth : number } ;
4633
4996
  }
4634
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4997
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4635
4998
  declare namespace shaka.extern {
4636
4999
  type StateChange = { duration : number , state : string , timestamp : number } ;
4637
5000
  }
4638
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5001
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4639
5002
  declare namespace shaka.extern {
4640
5003
  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 } ;
4641
5004
  }
4642
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5005
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4643
5006
  declare namespace shaka.extern {
4644
5007
  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 } ;
4645
5008
  }
4646
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5009
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4647
5010
  declare namespace shaka.extern {
4648
5011
  type SupportType = { drm : { [ key: string ]: shaka.extern.DrmSupportType | null } , manifest : { [ key: string ]: boolean } , media : { [ key: string ]: boolean } } ;
4649
5012
  }
4650
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5013
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4651
5014
  declare namespace shaka.extern {
4652
5015
  type Thumbnail = { duration : number , height : number , imageHeight : number , imageWidth : number , positionX : number , positionY : number , sprite : boolean , startTime : number , uris : string [] , width : number } ;
4653
5016
  }
4654
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5017
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4655
5018
  declare namespace shaka.extern {
4656
5019
  type TimelineRegionInfo = { endTime : number , eventElement : Element | null , id : string , schemeIdUri : string , startTime : number , value : string } ;
4657
5020
  }
4658
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5021
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4659
5022
  declare namespace shaka.extern {
4660
5023
  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 } ;
4661
5024
  }
4662
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5025
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4663
5026
  declare namespace shaka.extern {
4664
5027
  type TrackChoice = { bandwidth : number | null , fromAdaptation : boolean , id : number , timestamp : number , type : string } ;
4665
5028
  }
4666
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
5029
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/player.js
4667
5030
  declare namespace shaka.extern {
4668
5031
  type TrackList = shaka.extern.Track [] ;
4669
5032
  }
4670
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5033
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
4671
5034
  declare namespace shaka.extern {
4672
5035
  interface TextDisplayer extends shaka.util.IDestroyable {
4673
5036
  /**
@@ -4694,14 +5057,14 @@ declare namespace shaka.extern {
4694
5057
  setTextVisibility (on : boolean ) : any ;
4695
5058
  }
4696
5059
  }
4697
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5060
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
4698
5061
  declare namespace shaka.extern.TextDisplayer {
4699
5062
  /**
4700
5063
  * A factory for creating a TextDisplayer.
4701
5064
  */
4702
5065
  type Factory = ( ) => shaka.extern.TextDisplayer ;
4703
5066
  }
4704
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5067
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
4705
5068
  declare namespace shaka.extern {
4706
5069
  /**
4707
5070
  * An interface for plugins that parse text tracks.
@@ -4729,18 +5092,18 @@ declare namespace shaka.extern {
4729
5092
  setSequenceMode (sequenceMode : boolean ) : any ;
4730
5093
  }
4731
5094
  }
4732
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5095
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
4733
5096
  declare namespace shaka.extern.TextParser {
4734
5097
  /**
4735
5098
  * A collection of time offsets used to adjust text cue times.
4736
5099
  */
4737
5100
  type TimeContext = { periodStart : number , segmentEnd : number , segmentStart : number , vttOffset : number } ;
4738
5101
  }
4739
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/text.js
5102
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/text.js
4740
5103
  declare namespace shaka.extern {
4741
5104
  type TextParserPlugin = ( ) => shaka.extern.TextParser ;
4742
5105
  }
4743
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/transmuxer.js
5106
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/transmuxer.js
4744
5107
  declare namespace shaka.extern {
4745
5108
  /**
4746
5109
  * An interface for transmuxer plugins.
@@ -4769,18 +5132,18 @@ declare namespace shaka.extern {
4769
5132
  transmux (data : ArrayBuffer | ArrayBufferView , stream : shaka.extern.Stream , reference : shaka.media.SegmentReference | null , duration : number , contentType : string ) : Promise < Uint8Array > ;
4770
5133
  }
4771
5134
  }
4772
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/transmuxer.js
5135
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/shaka/transmuxer.js
4773
5136
  declare namespace shaka.extern {
4774
5137
  type TransmuxerPlugin = ( ) => shaka.extern.Transmuxer ;
4775
5138
  }
4776
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/tippy.js
5139
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/tippy.js
4777
5140
  declare namespace ಠ_ಠ.clutz {
4778
5141
  /**
4779
5142
  * This is the subset of this method that we use in our demo code.
4780
5143
  */
4781
5144
  function tippy (element : Element , config : object ) : any ;
4782
5145
  }
4783
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
5146
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/webkitmediakeys.js
4784
5147
  declare namespace ಠ_ಠ.clutz {
4785
5148
  class WebKitMediaKeyError {
4786
5149
  private noStructuralTyping_WebKitMediaKeyError : any;
@@ -4794,7 +5157,7 @@ declare namespace ಠ_ಠ.clutz {
4794
5157
  static MEDIA_KEYERR_UNKNOWN : number ;
4795
5158
  }
4796
5159
  }
4797
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
5160
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/webkitmediakeys.js
4798
5161
  declare namespace ಠ_ಠ.clutz {
4799
5162
  interface WebKitMediaKeySession extends EventTarget {
4800
5163
  addEventListener (type : any , listener : any , useCapture : any ) : any ;
@@ -4806,7 +5169,7 @@ declare namespace ಠ_ಠ.clutz {
4806
5169
  update (message : Uint8Array | null ) : any ;
4807
5170
  }
4808
5171
  }
4809
- // Generated from /home/runner/work/shaka-player/shaka-player/externs/webkitmediakeys.js
5172
+ // Generated from /home/joey/hacking/work/shaka-player-clean/externs/webkitmediakeys.js
4810
5173
  declare namespace ಠ_ಠ.clutz {
4811
5174
  class WebKitMediaKeys {
4812
5175
  private noStructuralTyping_WebKitMediaKeys : any;