RID parsing for Simulcast support.
Adding RidDescription to StreamParams that will contain the list of rids
for the track.
Adding receive_stream to MediaContentDescription to allow identifying
the stream that originates from the answerer (but is referenced by the
sender). For example, to signal that it will be received in Simulcast.
Bug: webrtc:10073.
Change-Id: Icd9a6b0a69d42bef51f525e673ce447255584334
Reviewed-on: https://webrtc-review.googlesource.com/c/113794
Commit-Queue: Amit Hilbuch <amithi@webrtc.org>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Seth Hampson <shampson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25978}
diff --git a/pc/sdpserializer.h b/pc/sdpserializer.h
index 428b420..3c6f31b 100644
--- a/pc/sdpserializer.h
+++ b/pc/sdpserializer.h
@@ -15,6 +15,7 @@
#include "absl/strings/string_view.h"
#include "api/rtcerror.h"
+#include "media/base/riddescription.h"
#include "pc/sessiondescription.h"
namespace webrtc {
@@ -42,6 +43,16 @@
// https://tools.ietf.org/html/draft-ietf-mmusic-sdp-simulcast-13#section-5.1
RTCErrorOr<cricket::SimulcastDescription> DeserializeSimulcastDescription(
absl::string_view string) const;
+
+ // Serialization for the RID description according to
+ // https://tools.ietf.org/html/draft-ietf-mmusic-rid-15#section-10
+ std::string SerializeRidDescription(
+ const cricket::RidDescription& rid_description) const;
+
+ // Deserialization for the RidDescription according to
+ // https://tools.ietf.org/html/draft-ietf-mmusic-rid-15#section-10
+ RTCErrorOr<cricket::RidDescription> DeserializeRidDescription(
+ absl::string_view string) const;
};
} // namespace webrtc