shaka-player 4.6.10 → 4.6.12

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 (48) hide show
  1. package/.github/ISSUE_TEMPLATE/question.md +7 -0
  2. package/AUTHORS +2 -0
  3. package/CHANGELOG.md +24 -0
  4. package/CONTRIBUTORS +2 -0
  5. package/demo/config.js +1 -1
  6. package/dist/demo.compiled.debug.js +1 -1
  7. package/dist/demo.compiled.js +1 -1
  8. package/dist/locales.js +32 -32
  9. package/dist/shaka-player.compiled.d.ts +1 -1
  10. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  11. package/dist/shaka-player.compiled.debug.externs.js +2 -1
  12. package/dist/shaka-player.compiled.debug.js +270 -269
  13. package/dist/shaka-player.compiled.debug.map +3 -3
  14. package/dist/shaka-player.compiled.externs.js +2 -1
  15. package/dist/shaka-player.compiled.js +1125 -1120
  16. package/dist/shaka-player.compiled.map +3 -3
  17. package/dist/shaka-player.ui.d.ts +13 -2
  18. package/dist/shaka-player.ui.debug.d.ts +13 -2
  19. package/dist/shaka-player.ui.debug.externs.js +3 -1
  20. package/dist/shaka-player.ui.debug.js +146 -144
  21. package/dist/shaka-player.ui.debug.map +3 -3
  22. package/dist/shaka-player.ui.externs.js +3 -1
  23. package/dist/shaka-player.ui.js +1241 -1236
  24. package/dist/shaka-player.ui.map +3 -3
  25. package/lib/media/drm_engine.js +9 -0
  26. package/lib/mss/mss_parser.js +2 -0
  27. package/lib/offline/storage.js +4 -0
  28. package/lib/player.js +14 -3
  29. package/lib/polyfill/media_capabilities.js +23 -3
  30. package/lib/transmuxer/aac_transmuxer.js +2 -0
  31. package/lib/transmuxer/ac3_transmuxer.js +2 -0
  32. package/lib/transmuxer/ec3_transmuxer.js +2 -0
  33. package/lib/transmuxer/h264.js +28 -1
  34. package/lib/transmuxer/h265.js +25 -5
  35. package/lib/transmuxer/mp3_transmuxer.js +2 -0
  36. package/lib/transmuxer/ts_transmuxer.js +12 -0
  37. package/lib/util/cmcd_manager.js +13 -0
  38. package/lib/util/manifest_parser_utils.js +2 -0
  39. package/lib/util/mp4_generator.js +31 -2
  40. package/lib/util/stream_utils.js +2 -10
  41. package/lib/util/ts_parser.js +7 -4
  42. package/package.json +1 -1
  43. package/test/polyfill/media_capabilities_unit.js +12 -6
  44. package/test/test/util/fake_drm_engine.js +7 -0
  45. package/test/util/stream_utils_unit.js +2 -8
  46. package/ui/externs/ui.js +24 -0
  47. package/ui/play_button.js +3 -0
  48. /package/.github/{config.yml → ISSUE_TEMPLATE/config.yml} +0 -0
@@ -2980,9 +2980,12 @@ declare namespace shaka.ui {
2980
2980
  }
2981
2981
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
2982
2982
  declare namespace shaka.ui {
2983
- class PlayButton extends shaka.ui.Element {
2983
+ class PlayButton extends shaka.ui.Element implements shaka.extern.IUIPlayButton {
2984
2984
  private noStructuralTyping_shaka_ui_PlayButton : any;
2985
2985
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2986
+ button : HTMLButtonElement ;
2987
+ isEnded ( ) : boolean ;
2988
+ isPaused ( ) : boolean ;
2986
2989
  }
2987
2990
  }
2988
2991
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
@@ -4049,7 +4052,7 @@ declare namespace shaka.util {
4049
4052
  * The code is based on hls.js
4050
4053
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
4051
4054
  */
4052
- parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
4055
+ parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
4053
4056
  static Timescale : number ;
4054
4057
  /**
4055
4058
  * Check if the passed data corresponds to an MPEG2-TS
@@ -5744,6 +5747,14 @@ declare namespace shaka.extern.IUIElement {
5744
5747
  }
5745
5748
  }
5746
5749
  // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5750
+ declare namespace shaka.extern {
5751
+ interface IUIPlayButton {
5752
+ button : HTMLButtonElement ;
5753
+ isEnded ( ) : boolean ;
5754
+ isPaused ( ) : boolean ;
5755
+ }
5756
+ }
5757
+ // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5747
5758
  declare namespace shaka.extern {
5748
5759
  /**
5749
5760
  * Interface for UI range elements. UI range elements should inherit from the
@@ -2980,9 +2980,12 @@ declare namespace shaka.ui {
2980
2980
  }
2981
2981
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
2982
2982
  declare namespace shaka.ui {
2983
- class PlayButton extends shaka.ui.Element {
2983
+ class PlayButton extends shaka.ui.Element implements shaka.extern.IUIPlayButton {
2984
2984
  private noStructuralTyping_shaka_ui_PlayButton : any;
2985
2985
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
2986
+ button : HTMLButtonElement ;
2987
+ isEnded ( ) : boolean ;
2988
+ isPaused ( ) : boolean ;
2986
2989
  }
2987
2990
  }
2988
2991
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
@@ -4049,7 +4052,7 @@ declare namespace shaka.util {
4049
4052
  * The code is based on hls.js
4050
4053
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
4051
4054
  */
4052
- parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
4055
+ parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
4053
4056
  static Timescale : number ;
4054
4057
  /**
4055
4058
  * Check if the passed data corresponds to an MPEG2-TS
@@ -5744,6 +5747,14 @@ declare namespace shaka.extern.IUIElement {
5744
5747
  }
5745
5748
  }
5746
5749
  // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5750
+ declare namespace shaka.extern {
5751
+ interface IUIPlayButton {
5752
+ button : HTMLButtonElement ;
5753
+ isEnded ( ) : boolean ;
5754
+ isPaused ( ) : boolean ;
5755
+ }
5756
+ }
5757
+ // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5747
5758
  declare namespace shaka.extern {
5748
5759
  /**
5749
5760
  * Interface for UI range elements. UI range elements should inherit from the
@@ -2346,9 +2346,10 @@ shaka.util.TsParser = class {
2346
2346
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
2347
2347
  * @param {shaka.extern.MPEG_PES} pes
2348
2348
  * @param {?shaka.extern.VideoNalu=} lastNalu
2349
+ * @param {?number=} lastState
2349
2350
  * @return {!Array.<shaka.extern.VideoNalu>}
2350
2351
  */
2351
- parseNalus(pes, lastNalu) {}
2352
+ parseNalus(pes, lastNalu, lastState) {}
2352
2353
  /**
2353
2354
  * Return the ID3 metadata
2354
2355
  * @return {!Array.<shaka.extern.ID3Metadata>}
@@ -5558,6 +5559,7 @@ shaka.ui.AdPosition = class extends shaka.ui.Element {
5558
5559
  };
5559
5560
  /**
5560
5561
  * @extends {shaka.ui.Element}
5562
+ * @implements {shaka.extern.IUIPlayButton}
5561
5563
  */
5562
5564
  shaka.ui.PlayButton = class extends shaka.ui.Element {
5563
5565
  /**