Skip to content

constructing new VideoFrame(HTMLVideoElement,...) shouldn't rely on <video>.networkState #487

Open
@chcunningham

Description

@chcunningham

Right now the constructor's steps say

If image’s networkState attribute is NETWORK_EMPTY, then throw an InvalidStateError DOMException.

This was a copy paste from createImageBitmap() steps.

But networkState really doesn't have any correspondence to "is your video element ready to render a frame".

There's a related discussion in Chrome's bug tracker where play() promise resolution (and thereby readyState > HAVE_CURRENT_DATA) is proposed as the signal that a frame is ready. Some unanswered questions there, and maybe some risk to making that change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-definitionAn issues where something needs to be specified normatively

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions