-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VideoFrame metadata #95
Comments
@sandersdan - I think there were other proposals to include user-provided metadata? Is there a user request behind that? Seems tricky to always map input:output. |
There was also the RTCEncodedVideoFrame feature gap (internal e-mail thread "RTCEncodedVideoFrame : WebCodecs"). I'm not sure if I've seen a user request, but I expect many cases where some format metadata or network timing information would be convenient to pass that way. I think at this point I'm resigned to mapping input packets to output frames 1:1, with the caveat that some might get dropped or duplicated in corner cases. Bikeshed: if we add a metadata object, we should recommend that specs use Symbol rather than String keys so that they can't conflict with app code. |
The ImageDecoder 'complete' flag was solved separately using ImageDecodeResult, which has a complete flag. But the need for metadata lives on in issue #189. I'll close this in favor of that and paste some bits of the discussion from here into that bug. |
Some uses of VideoFrame would like to associate named metadata with the frame. Examples include
frame.metadata[complete] = true/false
to distinguish partial vs complete frames for progressively downloaded images.Alternative designs should also be considered, including subclassing or wrapping VideoFrame to add the metadata.
The text was updated successfully, but these errors were encountered: