shaka-player 4.2.1 → 4.2.2

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 (80) hide show
  1. package/.github/workflows/build-and-test.yaml +31 -16
  2. package/.github/workflows/custom-actions/set-commit-status/action.yaml +1 -5
  3. package/.github/workflows/deflake.yaml +28 -0
  4. package/.github/workflows/selenium-lab-tests.yaml +13 -4
  5. package/AUTHORS +3 -0
  6. package/CHANGELOG.md +19 -0
  7. package/CONTRIBUTORS +3 -0
  8. package/demo/common/message_ids.js +1 -0
  9. package/demo/config.js +3 -1
  10. package/demo/locales/en.json +1 -0
  11. package/demo/locales/source.json +4 -0
  12. package/dist/demo.compiled.debug.js +7 -6
  13. package/dist/demo.compiled.debug.map +3 -3
  14. package/dist/demo.compiled.js +7 -6
  15. package/dist/demo.compiled.map +3 -3
  16. package/dist/deps.js +2 -2
  17. package/dist/locales.js +32 -32
  18. package/dist/receiver.compiled.debug.js +4 -3
  19. package/dist/receiver.compiled.debug.map +3 -3
  20. package/dist/receiver.compiled.js +4 -3
  21. package/dist/receiver.compiled.map +3 -3
  22. package/dist/shaka-player.compiled.d.ts +2 -2
  23. package/dist/shaka-player.compiled.debug.d.ts +2 -2
  24. package/dist/shaka-player.compiled.debug.externs.js +24 -24
  25. package/dist/shaka-player.compiled.debug.js +237 -229
  26. package/dist/shaka-player.compiled.debug.map +4 -4
  27. package/dist/shaka-player.compiled.externs.js +24 -24
  28. package/dist/shaka-player.compiled.js +744 -741
  29. package/dist/shaka-player.compiled.map +4 -4
  30. package/dist/shaka-player.ui.d.ts +2 -2
  31. package/dist/shaka-player.ui.debug.d.ts +2 -2
  32. package/dist/shaka-player.ui.debug.externs.js +24 -24
  33. package/dist/shaka-player.ui.debug.js +212 -203
  34. package/dist/shaka-player.ui.debug.map +4 -4
  35. package/dist/shaka-player.ui.externs.js +24 -24
  36. package/dist/shaka-player.ui.js +905 -901
  37. package/dist/shaka-player.ui.map +4 -4
  38. package/docs/jsdoc-template/publish.js +33 -0
  39. package/docs/jsdoc-template/tmpl/container.tmpl +4 -1
  40. package/docs/jsdoc.conf.json +1 -0
  41. package/externs/shaka/manifest_parser.js +4 -1
  42. package/externs/shaka/player.js +7 -1
  43. package/lib/ads/client_side_ad_manager.js +7 -0
  44. package/lib/cast/cast_sender.js +39 -14
  45. package/lib/cea/cea608_memory.js +4 -0
  46. package/lib/hls/hls_parser.js +30 -8
  47. package/lib/media/drm_engine.js +52 -1
  48. package/lib/media/media_source_engine.js +43 -15
  49. package/lib/media/segment_index.js +4 -1
  50. package/lib/media/streaming_engine.js +79 -14
  51. package/lib/offline/storage.js +1 -0
  52. package/lib/player.js +17 -5
  53. package/lib/text/ttml_text_parser.js +6 -0
  54. package/lib/util/platform.js +24 -0
  55. package/lib/util/player_configuration.js +4 -0
  56. package/lib/util/pssh.js +2 -1
  57. package/lib/util/stream_utils.js +2 -1
  58. package/package.json +1 -1
  59. package/test/cea/cea608_memory_unit.js +88 -0
  60. package/test/dash/dash_parser_content_protection_unit.js +1 -0
  61. package/test/dash/dash_parser_live_unit.js +1 -0
  62. package/test/dash/dash_parser_manifest_unit.js +1 -0
  63. package/test/dash/dash_parser_segment_base_unit.js +1 -0
  64. package/test/dash/dash_parser_segment_list_unit.js +1 -0
  65. package/test/dash/dash_parser_segment_template_unit.js +1 -0
  66. package/test/hls/hls_live_unit.js +169 -247
  67. package/test/hls/hls_parser_unit.js +60 -2
  68. package/test/media/drm_engine_unit.js +61 -0
  69. package/test/media/media_source_engine_integration.js +36 -0
  70. package/test/media/media_source_engine_unit.js +118 -1
  71. package/test/media/segment_index_unit.js +28 -2
  72. package/test/media/streaming_engine_integration.js +9 -7
  73. package/test/media/streaming_engine_unit.js +29 -0
  74. package/test/offline/offline_integration.js +3 -3
  75. package/test/player_integration.js +2 -2
  76. package/test/test/util/dash_parser_util.js +2 -0
  77. package/test/test/util/ttml_utils.js +0 -2
  78. package/test/text/ttml_text_parser_unit.js +46 -0
  79. package/test/ui/text_displayer_layout_unit.js +17 -2
  80. package/ui/controls.js +0 -7
@@ -1534,30 +1534,6 @@ shaka.util.EventManager = class {
1534
1534
  * @typedef {function(!Event)}
1535
1535
  */
1536
1536
  shaka.util.EventManager.ListenerType;
1537
- /**
1538
- * @summary An interface to register manifest parsers.
1539
- */
1540
- shaka.media.ManifestParser = class {
1541
- /**
1542
- * Registers a manifest parser by file extension.
1543
- * @param {string} extension The file extension of the manifest.
1544
- * @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
1545
- * used to create parser instances.
1546
- */
1547
- static registerParserByExtension(extension, parserFactory) {}
1548
- /**
1549
- * Registers a manifest parser by MIME type.
1550
- * @param {string} mimeType The MIME type of the manifest.
1551
- * @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
1552
- * used to create parser instances.
1553
- */
1554
- static registerParserByMime(mimeType, parserFactory) {}
1555
- /**
1556
- * Unregisters a manifest parser by MIME type.
1557
- * @param {string} mimeType The MIME type of the manifest.
1558
- */
1559
- static unregisterParserByMime(mimeType) {}
1560
- };
1561
1537
  /**
1562
1538
  * @summary DataViewReader abstracts a DataView object.
1563
1539
  */
@@ -1728,6 +1704,30 @@ shaka.util.Mp4Parser = class {
1728
1704
  * @typedef {function(!shaka.extern.ParsedBox)}
1729
1705
  */
1730
1706
  shaka.util.Mp4Parser.CallbackType;
1707
+ /**
1708
+ * @summary An interface to register manifest parsers.
1709
+ */
1710
+ shaka.media.ManifestParser = class {
1711
+ /**
1712
+ * Registers a manifest parser by file extension.
1713
+ * @param {string} extension The file extension of the manifest.
1714
+ * @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
1715
+ * used to create parser instances.
1716
+ */
1717
+ static registerParserByExtension(extension, parserFactory) {}
1718
+ /**
1719
+ * Registers a manifest parser by MIME type.
1720
+ * @param {string} mimeType The MIME type of the manifest.
1721
+ * @param {shaka.extern.ManifestParser.Factory} parserFactory The factory
1722
+ * used to create parser instances.
1723
+ */
1724
+ static registerParserByMime(mimeType, parserFactory) {}
1725
+ /**
1726
+ * Unregisters a manifest parser by MIME type.
1727
+ * @param {string} mimeType The MIME type of the manifest.
1728
+ */
1729
+ static unregisterParserByMime(mimeType) {}
1730
+ };
1731
1731
  /**
1732
1732
  * Creates an InitSegmentReference, which provides the location to an
1733
1733
  * initialization segment.