Implement RTCRtpTransceiver.setCodecPreferences

SetCodecPreferences allows clients to filter and reorder codecs in their
SDP offer and answer.

Bug: webrtc:9777
Change-Id: I716bed9b06496629b45210883b286f599c875239
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/129727
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Seth Hampson <shampson@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27817}
This commit is contained in:
Florent Castelli
2019-04-23 19:25:51 +02:00
committed by Commit Bot
parent 2ad2fabdcf
commit 2d9d82ecef
12 changed files with 892 additions and 121 deletions

View File

@ -129,8 +129,9 @@ class RtpTransceiverInterface : public rtc::RefCountInterface {
// The SetCodecPreferences method overrides the default codec preferences used
// by WebRTC for this transceiver.
// https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver-setcodecpreferences
// TODO(steveanton): Not implemented.
virtual void SetCodecPreferences(rtc::ArrayView<RtpCodecCapability> codecs);
virtual RTCError SetCodecPreferences(
rtc::ArrayView<RtpCodecCapability> codecs);
virtual std::vector<RtpCodecCapability> codec_preferences() const;
protected:
~RtpTransceiverInterface() override = default;