shaka-player 3.1.4 → 3.1.5

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 (43) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/controls.css +2 -2
  3. package/dist/controls.css.map +1 -1
  4. package/dist/locales.js +29 -29
  5. package/dist/shaka-player.compiled.d.ts +14 -0
  6. package/dist/shaka-player.compiled.debug.d.ts +14 -0
  7. package/dist/shaka-player.compiled.debug.externs.js +11 -0
  8. package/dist/shaka-player.compiled.debug.js +170 -168
  9. package/dist/shaka-player.compiled.debug.map +3 -3
  10. package/dist/shaka-player.compiled.externs.js +11 -0
  11. package/dist/shaka-player.compiled.js +650 -650
  12. package/dist/shaka-player.compiled.map +2 -2
  13. package/dist/shaka-player.ui.d.ts +14 -0
  14. package/dist/shaka-player.ui.debug.d.ts +14 -0
  15. package/dist/shaka-player.ui.debug.externs.js +11 -0
  16. package/dist/shaka-player.ui.debug.js +178 -176
  17. package/dist/shaka-player.ui.debug.map +3 -3
  18. package/dist/shaka-player.ui.externs.js +11 -0
  19. package/dist/shaka-player.ui.js +792 -792
  20. package/dist/shaka-player.ui.map +2 -2
  21. package/externs/shaka/text.js +10 -0
  22. package/lib/dash/dash_parser.js +4 -2
  23. package/lib/media/streaming_engine.js +5 -2
  24. package/lib/player.js +1 -1
  25. package/lib/polyfill/media_capabilities.js +30 -15
  26. package/lib/text/cue.js +6 -0
  27. package/lib/text/ttml_text_parser.js +84 -58
  28. package/lib/text/ui_text_displayer.js +17 -11
  29. package/lib/util/stream_utils.js +58 -7
  30. package/lib/util/xml_utils.js +19 -0
  31. package/package.json +2 -2
  32. package/test/dash/dash_parser_manifest_unit.js +33 -1
  33. package/test/media/drm_engine_unit.js +3 -3
  34. package/test/media/streaming_engine_integration.js +2 -1
  35. package/test/media/streaming_engine_unit.js +145 -0
  36. package/test/player_unit.js +5 -5
  37. package/test/test/util/ttml_utils.js +81 -0
  38. package/test/text/mp4_ttml_parser_unit.js +11 -18
  39. package/test/text/ttml_text_parser_unit.js +495 -228
  40. package/test/util/stream_utils_unit.js +35 -29
  41. package/ui/less/buttons.less +0 -4
  42. package/ui/text_selection.js +1 -0
  43. package/externs/media_capabilities.js +0 -16
@@ -891,6 +891,10 @@ shaka.text.Cue.prototype.id;
891
891
  * @override
892
892
  */
893
893
  shaka.text.Cue.prototype.nestedCues;
894
+ /**
895
+ * @override
896
+ */
897
+ shaka.text.Cue.prototype.isContainer;
894
898
  /**
895
899
  * @override
896
900
  */
@@ -3525,6 +3529,13 @@ shaka.polyfill.MediaCapabilities = class {
3525
3529
  */
3526
3530
  static install() {}
3527
3531
  };
3532
+ /**
3533
+ * A copy of the MediaCapabilities instance, to prevent Safari from
3534
+ * garbage-collecting the polyfilled method on it. We make it public and export
3535
+ * it to ensure that it is not stripped out by the compiler.
3536
+ * @type {MediaCapabilities}
3537
+ */
3538
+ shaka.polyfill.MediaCapabilities.originalMcap;
3528
3539
  /**
3529
3540
  * @summary A polyfill to patch MSE bugs.
3530
3541
  */