shaka-player 4.7.6 → 4.7.8

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 (40) hide show
  1. package/AUTHORS +2 -0
  2. package/CONTRIBUTORS +2 -0
  3. package/dist/locales.js +30 -30
  4. package/dist/shaka-player.compiled.d.ts +1 -1
  5. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  6. package/dist/shaka-player.compiled.debug.externs.js +2 -1
  7. package/dist/shaka-player.compiled.debug.js +94 -93
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +2 -1
  10. package/dist/shaka-player.compiled.js +1105 -1099
  11. package/dist/shaka-player.compiled.map +3 -3
  12. package/dist/shaka-player.ui.d.ts +13 -2
  13. package/dist/shaka-player.ui.debug.d.ts +13 -2
  14. package/dist/shaka-player.ui.debug.externs.js +3 -1
  15. package/dist/shaka-player.ui.debug.js +257 -256
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +3 -1
  18. package/dist/shaka-player.ui.js +1229 -1223
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/lib/hls/hls_parser.js +14 -6
  21. package/lib/media/drm_engine.js +9 -0
  22. package/lib/mss/mss_parser.js +2 -0
  23. package/lib/offline/storage.js +4 -0
  24. package/lib/player.js +14 -3
  25. package/lib/polyfill/media_capabilities.js +23 -3
  26. package/lib/transmuxer/aac_transmuxer.js +2 -0
  27. package/lib/transmuxer/ac3_transmuxer.js +2 -0
  28. package/lib/transmuxer/ec3_transmuxer.js +2 -0
  29. package/lib/transmuxer/h264.js +28 -1
  30. package/lib/transmuxer/h265.js +25 -5
  31. package/lib/transmuxer/mp3_transmuxer.js +2 -0
  32. package/lib/transmuxer/ts_transmuxer.js +12 -0
  33. package/lib/util/cmcd_manager.js +13 -0
  34. package/lib/util/manifest_parser_utils.js +2 -0
  35. package/lib/util/mp4_generator.js +31 -2
  36. package/lib/util/stream_utils.js +2 -10
  37. package/lib/util/ts_parser.js +7 -4
  38. package/package.json +1 -1
  39. package/ui/externs/ui.js +24 -0
  40. package/ui/play_button.js +3 -0
@@ -3003,9 +3003,12 @@ declare namespace shaka.ui {
3003
3003
  }
3004
3004
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
3005
3005
  declare namespace shaka.ui {
3006
- class PlayButton extends shaka.ui.Element {
3006
+ class PlayButton extends shaka.ui.Element implements shaka.extern.IUIPlayButton {
3007
3007
  private noStructuralTyping_shaka_ui_PlayButton : any;
3008
3008
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
3009
+ button : HTMLButtonElement ;
3010
+ isEnded ( ) : boolean ;
3011
+ isPaused ( ) : boolean ;
3009
3012
  }
3010
3013
  }
3011
3014
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
@@ -4103,7 +4106,7 @@ declare namespace shaka.util {
4103
4106
  * The code is based on hls.js
4104
4107
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
4105
4108
  */
4106
- parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
4109
+ parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
4107
4110
  static Timescale : number ;
4108
4111
  /**
4109
4112
  * Check if the passed data corresponds to an MPEG2-TS
@@ -5815,6 +5818,14 @@ declare namespace shaka.extern.IUIElement {
5815
5818
  }
5816
5819
  }
5817
5820
  // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5821
+ declare namespace shaka.extern {
5822
+ interface IUIPlayButton {
5823
+ button : HTMLButtonElement ;
5824
+ isEnded ( ) : boolean ;
5825
+ isPaused ( ) : boolean ;
5826
+ }
5827
+ }
5828
+ // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5818
5829
  declare namespace shaka.extern {
5819
5830
  /**
5820
5831
  * Interface for UI range elements. UI range elements should inherit from the
@@ -3003,9 +3003,12 @@ declare namespace shaka.ui {
3003
3003
  }
3004
3004
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
3005
3005
  declare namespace shaka.ui {
3006
- class PlayButton extends shaka.ui.Element {
3006
+ class PlayButton extends shaka.ui.Element implements shaka.extern.IUIPlayButton {
3007
3007
  private noStructuralTyping_shaka_ui_PlayButton : any;
3008
3008
  constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
3009
+ button : HTMLButtonElement ;
3010
+ isEnded ( ) : boolean ;
3011
+ isPaused ( ) : boolean ;
3009
3012
  }
3010
3013
  }
3011
3014
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
@@ -4103,7 +4106,7 @@ declare namespace shaka.util {
4103
4106
  * The code is based on hls.js
4104
4107
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
4105
4108
  */
4106
- parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
4109
+ parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
4107
4110
  static Timescale : number ;
4108
4111
  /**
4109
4112
  * Check if the passed data corresponds to an MPEG2-TS
@@ -5815,6 +5818,14 @@ declare namespace shaka.extern.IUIElement {
5815
5818
  }
5816
5819
  }
5817
5820
  // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5821
+ declare namespace shaka.extern {
5822
+ interface IUIPlayButton {
5823
+ button : HTMLButtonElement ;
5824
+ isEnded ( ) : boolean ;
5825
+ isPaused ( ) : boolean ;
5826
+ }
5827
+ }
5828
+ // Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
5818
5829
  declare namespace shaka.extern {
5819
5830
  /**
5820
5831
  * Interface for UI range elements. UI range elements should inherit from the
@@ -2354,9 +2354,10 @@ shaka.util.TsParser = class {
2354
2354
  * Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
2355
2355
  * @param {shaka.extern.MPEG_PES} pes
2356
2356
  * @param {?shaka.extern.VideoNalu=} lastNalu
2357
+ * @param {?number=} lastState
2357
2358
  * @return {!Array.<shaka.extern.VideoNalu>}
2358
2359
  */
2359
- parseNalus(pes, lastNalu) {}
2360
+ parseNalus(pes, lastNalu, lastState) {}
2360
2361
  /**
2361
2362
  * Return the ID3 metadata
2362
2363
  * @return {!Array.<shaka.extern.ID3Metadata>}
@@ -5607,6 +5608,7 @@ shaka.ui.AdPosition = class extends shaka.ui.Element {
5607
5608
  };
5608
5609
  /**
5609
5610
  * @extends {shaka.ui.Element}
5611
+ * @implements {shaka.extern.IUIPlayButton}
5610
5612
  */
5611
5613
  shaka.ui.PlayButton = class extends shaka.ui.Element {
5612
5614
  /**