shaka-player 3.3.1 → 3.3.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 (49) 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 +4 -4
  8. package/dist/locales.js +29 -29
  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 +93 -90
  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 +687 -686
  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 +107 -105
  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 +952 -952
  24. package/dist/shaka-player.ui.map +2 -2
  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/quality_observer.js +17 -34
  32. package/lib/media/region_observer.js +39 -33
  33. package/lib/media/region_timeline.js +17 -19
  34. package/lib/media/streaming_engine.js +1 -1
  35. package/lib/net/networking_engine.js +4 -0
  36. package/lib/offline/storage.js +8 -9
  37. package/lib/player.js +32 -10
  38. package/lib/util/fake_event_target.js +21 -1
  39. package/package.json +3 -6
  40. package/test/dash/dash_parser_live_unit.js +43 -0
  41. package/test/dash/dash_parser_manifest_unit.js +2 -1
  42. package/test/hls/hls_parser_unit.js +74 -0
  43. package/test/media/quality_observer_unit.js +4 -1
  44. package/test/media/region_observer_unit.js +40 -5
  45. package/test/media/region_timeline_unit.js +40 -22
  46. package/test/test/util/util.js +10 -7
  47. package/test/ui/text_displayer_layout_unit.js +8 -7
  48. package/ui/controls.js +3 -0
  49. package/ui/localization.js +12 -36
@@ -1120,11 +1120,24 @@ shaka.util.FakeEvent = class {
1120
1120
  */
1121
1121
  constructor(type, dict) {}
1122
1122
  };
1123
+ /**
1124
+ * An interface to standardize how objects release internal references
1125
+ * synchronously. If an object needs to asynchronously release references, then
1126
+ * it should use 'shaka.util.IDestroyable'.
1127
+ * @interface
1128
+ */
1129
+ shaka.util.IReleasable = class {
1130
+ /**
1131
+ * Request that this object release all internal references.
1132
+ */
1133
+ release() {}
1134
+ };
1123
1135
  /**
1124
1136
  * @summary A work-alike for EventTarget. Only DOM elements may be true
1125
1137
  * EventTargets, but this can be used as a base class to provide event dispatch
1126
1138
  * to non-DOM classes. Only FakeEvents should be dispatched.
1127
1139
  * @implements {EventTarget}
1140
+ * @implements {shaka.util.IReleasable}
1128
1141
  */
1129
1142
  shaka.util.FakeEventTarget = class {
1130
1143
  /** */
@@ -1162,6 +1175,10 @@ shaka.util.FakeEventTarget = class {
1162
1175
  * @override
1163
1176
  */
1164
1177
  dispatchEvent(event) {}
1178
+ /**
1179
+ * @override
1180
+ */
1181
+ release() {}
1165
1182
  };
1166
1183
  /**
1167
1184
  * These are the listener types defined in the closure extern for EventTarget.
@@ -1344,18 +1361,6 @@ shaka.net.NetworkingEngine.OnHeadersReceived;
1344
1361
  * reason (e.g. even if the download was aborted).
1345
1362
  */
1346
1363
  shaka.net.NetworkingEngine.OnDownloadFailed;
1347
- /**
1348
- * An interface to standardize how objects release internal references
1349
- * synchronously. If an object needs to asynchronously release references, then
1350
- * it should use 'shaka.util.IDestroyable'.
1351
- * @interface
1352
- */
1353
- shaka.util.IReleasable = class {
1354
- /**
1355
- * Request that this object release all internal references.
1356
- */
1357
- release() {}
1358
- };
1359
1364
  /**
1360
1365
  * @summary
1361
1366
  * An EventManager maintains a collection of "event