mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Use MSE steps to update the media element's ready state
These steps are the best definition we have for how the ready state should be set, and it seems to be reasonable to apply to plain file playback as well. Since our file demuxers are hardcoded to return the entire duration as buffered, the ready state immediately progresses to HAVE_CURRENT_DATA. This will probably change once we can check the demuxers for buffered data.
This commit is contained in:
committed by
Gregory Bertilson
parent
29db875b7f
commit
f3832c0b36
Notes:
github-actions[bot]
2026-04-01 07:57:28 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f3832c0b369 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8655 Reviewed-by: https://github.com/tcl3
@@ -1,6 +1,6 @@
|
||||
loadstart: readyState=0
|
||||
durationchange: readyState=1 duration=12.043
|
||||
loadedmetadata: readyState=1
|
||||
loadeddata: readyState=4
|
||||
durationchange: readyState=2 duration=12.043
|
||||
loadedmetadata: readyState=2
|
||||
loadeddata: readyState=2
|
||||
canplay: readyState=4
|
||||
canplaythrough: readyState=4
|
||||
|
||||
Reference in New Issue
Block a user