commit | 5932fe1392c69749e003cdecaac505df1c1aaf14 | [log] [tgz] |
---|---|---|
author | Markus Handell <handellm@webrtc.org> | Thu Dec 17 22:19:40 2020 +0100 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 17 23:43:42 2020 +0000 |
tree | ea493162f8708feaec4e825aaf55bfbc0914e739 | |
parent | d95a47d08fddd2f8e59a626e8283ece28d4fd28e [diff] [blame] |
RtpTransceiverInterface: introduce HeaderExtensionsNegotiated. This changes adds exposure of a new transceiver method for accessing header extensions that have been negotiated, following spec details in https://w3c.github.io/webrtc-extensions/#rtcrtptransceiver-interface. The change contains unit tests testing the functionality. Note: support for signalling directionality of header extensions in the SDP isn't implemented yet. https://chromestatus.com/feature/5680189201711104. Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/65YdUi02yZk Bug: chromium:1051821 Change-Id: If963beed37e96eed2dff3a2822db4e30caaea4a0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/198126 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32860}
diff --git a/api/rtp_transceiver_interface.h b/api/rtp_transceiver_interface.h index fd3555f..9b46846 100644 --- a/api/rtp_transceiver_interface.h +++ b/api/rtp_transceiver_interface.h
@@ -156,6 +156,12 @@ virtual std::vector<RtpHeaderExtensionCapability> HeaderExtensionsToOffer() const; + // Readonly attribute which is either empty if negotation has not yet + // happened, or a vector of the negotiated header extensions. + // https://w3c.github.io/webrtc-extensions/#rtcrtptransceiver-interface + virtual std::vector<RtpHeaderExtensionCapability> HeaderExtensionsNegotiated() + const; + // The SetOfferedRtpHeaderExtensions method modifies the next SDP negotiation // so that it negotiates use of header extensions which are not kStopped. // https://w3c.github.io/webrtc-extensions/#rtcrtptransceiver-interface