mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
d27f7d24bb
A preroll ad fails to start when there is no autoplay. This happens because Shaka doesn't check if playback is allowed before calling the Ad Manager's `start()` method. IMA's https://github.com/googleads/googleads-ima-html5/tree/main/attempt_to_autoplay addresses this by resolving a `play()` promise. This waits to start AdManager until a `play` event from the video element. Closes #4179