shaka-player 4.12.1 → 4.12.3

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 (54) hide show
  1. package/.csslintrc +2 -1
  2. package/.eslintrc.js +1 -0
  3. package/AUTHORS +1 -0
  4. package/CONTRIBUTORS +1 -0
  5. package/dist/controls.css +3 -3
  6. package/dist/controls.css.map +1 -1
  7. package/dist/deps.js +3 -2
  8. package/dist/locales.js +38 -38
  9. package/dist/shaka-player.compiled.d.ts +8 -8
  10. package/dist/shaka-player.compiled.debug.d.ts +8 -8
  11. package/dist/shaka-player.compiled.debug.js +295 -294
  12. package/dist/shaka-player.compiled.debug.map +4 -4
  13. package/dist/shaka-player.compiled.js +1334 -1329
  14. package/dist/shaka-player.compiled.map +4 -4
  15. package/dist/shaka-player.ui.d.ts +8 -8
  16. package/dist/shaka-player.ui.debug.d.ts +8 -8
  17. package/dist/shaka-player.ui.debug.js +327 -326
  18. package/dist/shaka-player.ui.debug.map +4 -4
  19. package/dist/shaka-player.ui.js +1542 -1537
  20. package/dist/shaka-player.ui.map +4 -4
  21. package/externs/managedmediasource.js +6 -0
  22. package/externs/shaka/abortable.js +36 -36
  23. package/externs/shaka/ads.js +3 -0
  24. package/lib/ads/ad_utils.js +1 -0
  25. package/lib/ads/interstitial_ad_manager.js +66 -24
  26. package/lib/cast/cast_utils.js +4 -2
  27. package/lib/hls/hls_parser.js +1 -1
  28. package/lib/media/drm_engine.js +2 -0
  29. package/lib/media/media_source_capabilities.js +6 -8
  30. package/lib/media/media_source_engine.js +62 -5
  31. package/lib/media/preload_manager.js +6 -1
  32. package/lib/media/segment_reference.js +1 -1
  33. package/lib/media/segment_utils.js +7 -3
  34. package/lib/media/streaming_engine.js +9 -11
  35. package/lib/net/http_xhr_plugin.js +1 -0
  36. package/lib/player.js +42 -36
  37. package/lib/polyfill/media_capabilities.js +46 -8
  38. package/lib/text/vtt_text_parser.js +9 -10
  39. package/lib/util/abortable_operation.js +11 -6
  40. package/lib/util/buffer_utils.js +10 -8
  41. package/lib/util/mime_utils.js +2 -0
  42. package/lib/util/number_utils.js +37 -0
  43. package/lib/util/object_utils.js +1 -1
  44. package/lib/util/platform.js +18 -7
  45. package/lib/util/uint8array_utils.js +3 -2
  46. package/package.json +3 -3
  47. package/ui/chapter_selection.js +6 -2
  48. package/ui/language_utils.js +3 -1
  49. package/ui/less/ad_controls.less +3 -3
  50. package/ui/less/buttons.less +4 -4
  51. package/ui/less/containers.less +7 -7
  52. package/ui/less/overflow_menu.less +4 -4
  53. package/ui/less/thumbnails.less +3 -3
  54. package/ui/less/tooltip.less +1 -1
@@ -4644,6 +4644,13 @@ declare namespace shaka.extern {
4644
4644
  * whereas aborting only means that further work is stopped.
4645
4645
  */
4646
4646
  interface IAbortableOperation < T > {
4647
+ /**
4648
+ * A Promise which represents the underlying operation. It is resolved when
4649
+ * the operation is complete, and rejected if the operation fails or is
4650
+ * aborted. Aborted operations should be rejected with a shaka.util.Error
4651
+ * object using the error code OPERATION_ABORTED.
4652
+ */
4653
+ promise : Promise < T > ;
4647
4654
  /**
4648
4655
  * Can be called by anyone holding this object to abort the underlying
4649
4656
  * operation. This is not cancelation, and will not necessarily result in
@@ -4653,13 +4660,6 @@ declare namespace shaka.extern {
4653
4660
  */
4654
4661
  abort ( ) : Promise < any > ;
4655
4662
  finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
4656
- /**
4657
- * A Promise which represents the underlying operation. It is resolved when
4658
- * the operation is complete, and rejected if the operation fails or is
4659
- * aborted. Aborted operations should be rejected with a shaka.util.Error
4660
- * object using the error code OPERATION_ABORTED.
4661
- */
4662
- promise : Promise < T > ;
4663
4663
  }
4664
4664
  }
4665
4665
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
@@ -4781,7 +4781,7 @@ declare namespace shaka.extern {
4781
4781
  }
4782
4782
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4783
4783
  declare namespace shaka.extern {
4784
- type AdInterstitial = { canJump : boolean , endTime : number | null , id : string | null , isSkippable : boolean , once : boolean , playoutLimit : number | null , post : boolean , pre : boolean , resumeOffset : number | null , skipFor : number | null , skipOffset : number | null , startTime : number , timelineRange : boolean , uri : string } ;
4784
+ type AdInterstitial = { canJump : boolean , endTime : number | null , id : string | null , isSkippable : boolean , mimeType : string | null , once : boolean , playoutLimit : number | null , post : boolean , pre : boolean , resumeOffset : number | null , skipFor : number | null , skipOffset : number | null , startTime : number , timelineRange : boolean , uri : string } ;
4785
4785
  }
4786
4786
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4787
4787
  declare namespace shaka.extern {
@@ -4644,6 +4644,13 @@ declare namespace shaka.extern {
4644
4644
  * whereas aborting only means that further work is stopped.
4645
4645
  */
4646
4646
  interface IAbortableOperation < T > {
4647
+ /**
4648
+ * A Promise which represents the underlying operation. It is resolved when
4649
+ * the operation is complete, and rejected if the operation fails or is
4650
+ * aborted. Aborted operations should be rejected with a shaka.util.Error
4651
+ * object using the error code OPERATION_ABORTED.
4652
+ */
4653
+ promise : Promise < T > ;
4647
4654
  /**
4648
4655
  * Can be called by anyone holding this object to abort the underlying
4649
4656
  * operation. This is not cancelation, and will not necessarily result in
@@ -4653,13 +4660,6 @@ declare namespace shaka.extern {
4653
4660
  */
4654
4661
  abort ( ) : Promise < any > ;
4655
4662
  finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
4656
- /**
4657
- * A Promise which represents the underlying operation. It is resolved when
4658
- * the operation is complete, and rejected if the operation fails or is
4659
- * aborted. Aborted operations should be rejected with a shaka.util.Error
4660
- * object using the error code OPERATION_ABORTED.
4661
- */
4662
- promise : Promise < T > ;
4663
4663
  }
4664
4664
  }
4665
4665
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
@@ -4781,7 +4781,7 @@ declare namespace shaka.extern {
4781
4781
  }
4782
4782
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4783
4783
  declare namespace shaka.extern {
4784
- type AdInterstitial = { canJump : boolean , endTime : number | null , id : string | null , isSkippable : boolean , once : boolean , playoutLimit : number | null , post : boolean , pre : boolean , resumeOffset : number | null , skipFor : number | null , skipOffset : number | null , startTime : number , timelineRange : boolean , uri : string } ;
4784
+ type AdInterstitial = { canJump : boolean , endTime : number | null , id : string | null , isSkippable : boolean , mimeType : string | null , once : boolean , playoutLimit : number | null , post : boolean , pre : boolean , resumeOffset : number | null , skipFor : number | null , skipOffset : number | null , startTime : number , timelineRange : boolean , uri : string } ;
4785
4785
  }
4786
4786
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/ads.js
4787
4787
  declare namespace shaka.extern {