mirror of
https://github.com/servo/servo
synced 2026-05-14 02:47:14 +02:00
The media engine signals with the `PlayerEvent::EnoughData` event that the media source has enough data and the application should stop pushing more data to avoid excessive buffer queueing and wait `PlayerEvent::NeedData` event to continue. Note that the source buffer size - MAX_SRC_QUEUE_SIZE (50MB). This event is reflecting the state of the media source so the application shouldn't change the media element ready state somehow. Testing: No expected testing results changes Fixes (partially): https://github.com/servo/servo/issues/40740 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>