[Webkit-unassigned] [Bug 275833] New: Sync `RTCCodecStats` from web-specification

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 24 18:08:37 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=275833

            Bug ID: 275833
           Summary: Sync `RTCCodecStats` from web-specification
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: youennf at gmail.com

Hi Team,

Just looking into WebRTC specific failure for WebKit / Safari, I noticed that we don't match following:

Web-Spec: https://w3c.github.io/webrtc-stats/#codec-dict*

Current WebKit: https://searchfox.org/wubkat/rev/38fb2ecadd89df8d6d7114cc2b030188d744aeb0/Source/WebCore/Modules/mediastream/RTCStatsReport.idl#210


] dictionary RTCCodecStats : RTCStats {
    unsigned long payloadType;
    DOMString transportId;
    DOMString mimeType;
    unsigned long clockRate;
    unsigned long channels;
    DOMString sdpFmtpLine;
};

to:

dictionary RTCCodecStats : RTCStats {
             required unsigned long payloadType;
             required DOMString     transportId;
             required DOMString     mimeType;
             unsigned long clockRate;
             unsigned long channels;
             DOMString     sdpFmtpLine;
};

It is missing 'required', while for 'payloadType', we need to do following change in .h, file here as well: https://searchfox.org/wubkat/rev/38fb2ecadd89df8d6d7114cc2b030188d744aeb0/Source/WebCore/Modules/mediastream/RTCStatsReport.h#400

Change: std::optional<uint32_t> payloadType; to uint32_t payloadType;

___

It compiles with above changes (required and equivalent in '.h' for payloadType).

Just wanted to raise so we can fix it.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240625/7aacefba/attachment.htm>


More information about the webkit-unassigned mailing list