Bug 224430 - Add support for RTCEncodedFrame metadata
Summary: Add support for RTCEncodedFrame metadata
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-12 05:10 PDT by youenn fablet
Modified: 2021-04-13 02:03 PDT (History)
13 users (show)

See Also:


Attachments
Patch (12.03 KB, patch)
2021-04-12 05:13 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (20.48 KB, patch)
2021-04-12 05:52 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2021-04-12 05:10:44 PDT
Add support for RTCEncodedFrame metadata
Comment 1 youenn fablet 2021-04-12 05:13:49 PDT
Created attachment 425735 [details]
Patch
Comment 2 youenn fablet 2021-04-12 05:52:13 PDT
Created attachment 425737 [details]
Patch
Comment 3 Eric Carlson 2021-04-12 09:40:32 PDT
Comment on attachment 425737 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=425737&action=review

> Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransformableFrame.cpp:114
> +    return { frameId, WTFMove(dependencies), metadata.GetWidth(), metadata.GetHeight(), metadata.GetSpatialIndex(), metadata.GetTemporalIndex(), m_rtcFrame->GetSsrc(), { } };

Will we eventually support contributingSources? If so, it would be good to have a bug and reference it here.
Comment 4 youenn fablet 2021-04-12 11:34:55 PDT
(In reply to Eric Carlson from comment #3)
> Comment on attachment 425737 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=425737&action=review
> 
> > Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransformableFrame.cpp:114
> > +    return { frameId, WTFMove(dependencies), metadata.GetWidth(), metadata.GetHeight(), metadata.GetSpatialIndex(), metadata.GetTemporalIndex(), m_rtcFrame->GetSsrc(), { } };
> 
> Will we eventually support contributingSources? If so, it would be good to
> have a bug and reference it here.

contributing sources is mostly for audio mixers where a server is mixing several audio in one stream but web page might still want to expose who is actually speaking.

I will file a bug to track it though since CSRC is not audio specific.
Comment 5 EWS 2021-04-12 11:45:35 PDT
Committed r275830 (236400@main): <https://commits.webkit.org/236400@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425737 [details].
Comment 6 Radar WebKit Bug Importer 2021-04-12 11:46:19 PDT
<rdar://problem/76549361>
Comment 7 youenn fablet 2021-04-13 02:03:37 PDT
> contributing sources is mostly for audio mixers where a server is mixing
> several audio in one stream but web page might still want to expose who is
> actually speaking.
> 
> I will file a bug to track it though since CSRC is not audio specific.

Let's make the attribute undefined if there are no CSRCs so that we do not surface it until we have something.