Skip to content

Media: <video> emit "seeked" event after the video is loaded when no seek is performed. #37057

@rayguo17

Description

@rayguo17

Describe the bug:
Currently, when first load the webpage that have mp4 video, servo's <video> tag will emit seeked even when no seek action is performed.

To Reproduce:
Minimum Test Case:

<!DOCTYPE html>
<html lang="en">
<body>
    <video src="mov_bbb.mp4"></video>
    <script>
        let video = document.querySelector("video");
        video.addEventListener("seeked", () => {
            console.log("Video seeked");
        });
    </script>
</body>
</html>
Chromium Servo
Video seeked

Step to Reproduce
build servo, open the above html page, and do nothing.

Note: currently servo rely on http range request to seek, for http server that does not support http range request, Gstreamer will emit error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions