mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
c306ac3501
- Exposed and renamed `shaka.util.FakeEventTarget.ALL_EVENTS_` to `ALL_EVENTS`, updating its value to `__shaka_all_events__` to prevent string collisions. - Refactored `CastProxy` and `CastReceiver` to subscribe directly to this wildcard event for both the Player and the AdManager instances. - Removed the hardcoded `shaka.cast.CastUtils.AdManagerEvents` array and eliminated the loops that iterated over static event lists. This makes the casting event proxy layer completely dynamic, cleaner, and future-proof against new event additions to either the Player or the AdManager.