mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
05b09728c7
Added polyfills for `Map.getOrInsert()` and `Map.getOrInsertComputed()` from the TC39 upsert proposal and refactor the codebase to use them. These methods replace the common "check if key exists, then set default" pattern with a single atomic operation. This improves code readability and eliminates redundant map lookups throughout the player. --------- Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
18 lines
671 B
Plaintext
18 lines
671 B
Plaintext
# Polyfills used to emulate missing browsers features.
|
|
|
|
+../../lib/polyfill/eme_encryption_scheme.js
|
|
+../../lib/polyfill/encryption_scheme_media_key_system_access.js
|
|
+../../lib/polyfill/encryption_scheme_utils.js
|
|
+../../lib/polyfill/map.js
|
|
+../../lib/polyfill/mcap_encryption_scheme.js
|
|
+../../lib/polyfill/mediasource.js
|
|
+../../lib/polyfill/media_capabilities.js
|
|
+../../lib/polyfill/patchedmediakeys_cert.js
|
|
+../../lib/polyfill/patchedmediakeys_webkit.js
|
|
+../../lib/polyfill/random_uuid.js
|
|
+../../lib/polyfill/symbol.js
|
|
+../../lib/polyfill/typed_array.js
|
|
+../../lib/polyfill/video_play_promise.js
|
|
+../../lib/polyfill/videoplaybackquality.js
|
|
+../../lib/polyfill/vttcue.js
|