Skip to content

Conversation

@hamishwillee
Copy link
Contributor

@hamishwillee hamishwillee commented Oct 20, 2025

FF145 makes RTCEncodedAudioFrame and RTCEncodeVideoFrame get constructors in https://bugzilla.mozilla.org/show_bug.cgi?id=1975032

These include an options.metadata property that contains the same kind of object as returned by getMetadata().
This adds the subfeatures for both cases which duplicate each other.

The results are based on test https://jsfiddle.net/jib1/5t1mehn4/ from https://bugzilla.mozilla.org/show_bug.cgi?id=1975032#c7 along with version support for the whole thing went into Safari (26 - https://webkit.org/blog/17333/webkit-features-in-safari-26-0/).
The test worked for Chrome, but not in browserstack. Therefore I have assumed that except for audioLevel the properties were added in first release of the constructor.

Note that the last commit adds sequenceNumber and recieveTime. I cannot see these in the test above, but was able to observed them in WPT tests by debugging. 68f2acd

Related docs work can be tracked in mdn/content#41508

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:xl [PR only] >1000 LoC changed labels Oct 20, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@hamishwillee hamishwillee force-pushed the ff145_rtc_encoded_frame_constructor branch from 68f2acd to 1946029 Compare October 28, 2025 00:38
@hamishwillee
Copy link
Contributor Author

@caugner When you have a moment, might you be able to look at this one?

@caugner caugner changed the title Ff145 RTCEncodedAudioFrame/RTCEncodeVideoFrame constructor/metadata Add RTCEncoded{Audio,Video}Frame metadata support data Oct 28, 2025
@caugner caugner merged commit 0b2527c into mdn:main Oct 28, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:xl [PR only] >1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants