Skip to content
Snippets Groups Projects
Commit aedcc1eb authored by Tony Herre's avatar Tony Herre Committed by moz-wptsync-bot
Browse files

Bug 1812306 [wpt PR 38164] - Add frameType to RTCEncodedVideoFrameMetadata, a=testonly

Automatic update from web-platform-tests
Add frameType to RTCEncodedVideoFrameMetadata

Add a field specifying if a frame is a key or delta frame to the
RTC encoded frame metadata. Without this,
encodedFrame.setMetadata(encodedFrame.getMetadata()) would reset the
frame type in the header to "kEmptyFrame", causing it to be dropped
before being sent on a PeerConnection, making it hard to test
setMetadata().

Guarded by the same feature as the rest of this additional metadata:
RTCEncodedVideoFrameAdditionalMetadata.

Bug: webrtc:14709
Change-Id: Id93622dc7488f04900debff450689113fe757840
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4181178


Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Commit-Queue: Tony Herre <toprice@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097421}

--

wpt-commits: 672d747e92e68a55697fbeb69f8f9c14e2ebdf29
wpt-pr: 38164
parent 432fea6f
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,8 @@ promise_test(async t => {
'spatialIndex');
assert_equals(cloneMetadata.temporalIndex, metadata.temporalIndex,
'temporalIndex');
assert_equals(cloneMetadata.frameType, metadata.frameType,
'frameType');
// RTCEncodedVideoFrameAdditionalMetadata-only fields.
assert_array_equals(cloneMetadata.decodeTargetIndications,
metadata.decodeTargetIndications,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment