mirror of
https://github.com/servo/servo
synced 2026-05-14 19:06:31 +02:00
The new audio/video tracks should be added to the media element from the initial `metadata` event from the media engine because there are possibility of the multiple `metadata` events without any associated `media track` state changes and previously the application added new tracks into lists unconditionally. The registered issue to handle possible dynamic `media track` state changes from the media engine gracefully. https://github.com/servo/media/issues/473 Testing: Improvements in the following tests - html/semantics/embedded-content/the-video-element/video_size_preserved_after_ended.html Fixes: https://github.com/servo/servo/issues/32623 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>