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.
- package/.github/workflows/build_and_test.yaml +73 -0
- package/.github/workflows/release.yaml +53 -0
- package/CHANGELOG.md +13 -1
- package/build/checkversion.py +1 -1
- package/build/test.py +6 -0
- package/dist/controls.css +1 -1
- package/dist/deps.js +3 -3
- package/dist/locales.js +30 -30
- package/dist/shaka-player.compiled.d.ts +2 -1
- package/dist/shaka-player.compiled.debug.d.ts +2 -1
- package/dist/shaka-player.compiled.debug.externs.js +17 -12
- package/dist/shaka-player.compiled.debug.js +95 -93
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +17 -12
- package/dist/shaka-player.compiled.js +610 -608
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +4 -12
- package/dist/shaka-player.ui.debug.d.ts +4 -12
- package/dist/shaka-player.ui.debug.externs.js +19 -23
- package/dist/shaka-player.ui.debug.js +109 -108
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +19 -23
- package/dist/shaka-player.ui.js +774 -773
- package/dist/shaka-player.ui.map +3 -3
- package/karma.conf.js +19 -15
- package/lib/ads/ad_manager.js +1 -0
- package/lib/cast/cast_proxy.js +3 -0
- package/lib/cast/cast_receiver.js +3 -0
- package/lib/dash/dash_parser.js +31 -19
- package/lib/hls/manifest_text_parser.js +1 -0
- package/lib/media/region_observer.js +39 -33
- package/lib/media/region_timeline.js +17 -19
- package/lib/media/streaming_engine.js +1 -1
- package/lib/net/networking_engine.js +4 -0
- package/lib/offline/storage.js +8 -9
- package/lib/player.js +25 -9
- package/lib/util/fake_event_target.js +21 -1
- package/package.json +3 -6
- package/test/dash/dash_parser_live_unit.js +43 -0
- package/test/dash/dash_parser_manifest_unit.js +2 -1
- package/test/hls/hls_parser_unit.js +74 -0
- package/test/media/region_observer_unit.js +40 -5
- package/test/media/region_timeline_unit.js +40 -22
- package/test/test/util/util.js +10 -7
- package/test/ui/text_displayer_layout_unit.js +8 -7
- package/ui/controls.js +3 -0
- 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
|