mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
6b11f1ecdc
Instead of calling video.load() and waiting for loadeddata for src=, wait for loadedmetadata. This should be a safe event to use in most cases, and calling video.load() causes native HLS to start preloading an uncontrollable amount of content. The exception is if the app sets preload='none' on the video element. If this happens, we will detect it, log a warning, and avoid the loadedmetadata event which may never fire. This is not a scenario we will officially support, but at least we can prevent a hang in player.load(). Closes #2483 Change-Id: Id64c8f23cb8fa82bb5c301abafb51f2d9d8730f7