shaka-player 3.2.3 → 3.2.4

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 (47) hide show
  1. package/.github/workflows/build_and_test.yaml +73 -0
  2. package/.github/workflows/release.yaml +53 -0
  3. package/CHANGELOG.md +13 -1
  4. package/build/checkversion.py +1 -1
  5. package/build/test.py +6 -0
  6. package/dist/controls.css +1 -1
  7. package/dist/deps.js +3 -3
  8. package/dist/locales.js +30 -30
  9. package/dist/shaka-player.compiled.d.ts +2 -1
  10. package/dist/shaka-player.compiled.debug.d.ts +2 -1
  11. package/dist/shaka-player.compiled.debug.externs.js +17 -12
  12. package/dist/shaka-player.compiled.debug.js +95 -93
  13. package/dist/shaka-player.compiled.debug.map +4 -4
  14. package/dist/shaka-player.compiled.externs.js +17 -12
  15. package/dist/shaka-player.compiled.js +610 -608
  16. package/dist/shaka-player.compiled.map +3 -3
  17. package/dist/shaka-player.ui.d.ts +4 -12
  18. package/dist/shaka-player.ui.debug.d.ts +4 -12
  19. package/dist/shaka-player.ui.debug.externs.js +19 -23
  20. package/dist/shaka-player.ui.debug.js +109 -108
  21. package/dist/shaka-player.ui.debug.map +4 -4
  22. package/dist/shaka-player.ui.externs.js +19 -23
  23. package/dist/shaka-player.ui.js +774 -773
  24. package/dist/shaka-player.ui.map +3 -3
  25. package/karma.conf.js +19 -15
  26. package/lib/ads/ad_manager.js +1 -0
  27. package/lib/cast/cast_proxy.js +3 -0
  28. package/lib/cast/cast_receiver.js +3 -0
  29. package/lib/dash/dash_parser.js +31 -19
  30. package/lib/hls/manifest_text_parser.js +1 -0
  31. package/lib/media/region_observer.js +39 -33
  32. package/lib/media/region_timeline.js +17 -19
  33. package/lib/media/streaming_engine.js +1 -1
  34. package/lib/net/networking_engine.js +4 -0
  35. package/lib/offline/storage.js +8 -9
  36. package/lib/player.js +25 -9
  37. package/lib/util/fake_event_target.js +21 -1
  38. package/package.json +3 -6
  39. package/test/dash/dash_parser_live_unit.js +43 -0
  40. package/test/dash/dash_parser_manifest_unit.js +2 -1
  41. package/test/hls/hls_parser_unit.js +74 -0
  42. package/test/media/region_observer_unit.js +40 -5
  43. package/test/media/region_timeline_unit.js +40 -22
  44. package/test/test/util/util.js +10 -7
  45. package/test/ui/text_displayer_layout_unit.js +8 -7
  46. package/ui/controls.js +3 -0
  47. package/ui/localization.js +12 -36
@@ -966,11 +966,24 @@ shaka.util.FakeEvent = class {
966
966
  */
967
967
  constructor(type, dict) {}
968
968
  };
969
+ /**
970
+ * An interface to standardize how objects release internal references
971
+ * synchronously. If an object needs to asynchronously release references, then
972
+ * it should use 'shaka.util.IDestroyable'.
973
+ * @interface
974
+ */
975
+ shaka.util.IReleasable = class {
976
+ /**
977
+ * Request that this object release all internal references.
978
+ */
979
+ release() {}
980
+ };
969
981
  /**
970
982
  * @summary A work-alike for EventTarget. Only DOM elements may be true
971
983
  * EventTargets, but this can be used as a base class to provide event dispatch
972
984
  * to non-DOM classes. Only FakeEvents should be dispatched.
973
985
  * @implements {EventTarget}
986
+ * @implements {shaka.util.IReleasable}
974
987
  */
975
988
  shaka.util.FakeEventTarget = class {
976
989
  /** */
@@ -1008,6 +1021,10 @@ shaka.util.FakeEventTarget = class {
1008
1021
  * @override
1009
1022
  */
1010
1023
  dispatchEvent(event) {}
1024
+ /**
1025
+ * @override
1026
+ */
1027
+ release() {}
1011
1028
  };
1012
1029
  /**
1013
1030
  * These are the listener types defined in the closure extern for EventTarget.
@@ -1165,18 +1182,6 @@ shaka.net.NetworkingEngine.PluginPriority = {
1165
1182
  'PREFERRED': 2,
1166
1183
  'APPLICATION': 3
1167
1184
  };
1168
- /**
1169
- * An interface to standardize how objects release internal references
1170
- * synchronously. If an object needs to asynchronously release references, then
1171
- * it should use 'shaka.util.IDestroyable'.
1172
- * @interface
1173
- */
1174
- shaka.util.IReleasable = class {
1175
- /**
1176
- * Request that this object release all internal references.
1177
- */
1178
- release() {}
1179
- };
1180
1185
  /**
1181
1186
  * @summary
1182
1187
  * An EventManager maintains a collection of "event