1 parent 9f60cc6 commit 480ff5cCopy full SHA for 480ff5c
1 file changed
media/rtc/src/sdp/mod.rs
@@ -452,6 +452,15 @@ impl SdpSession {
452
})
453
}
454
455
+ pub fn offered_media(&self) -> impl Iterator<Item = &PendingMedia> {
456
+ self.offered_changes
457
+ .iter()
458
+ .filter_map(|pending_change| match pending_change {
459
+ PendingChange::AddMedia(pending_media) => Some(pending_media),
460
+ _ => None,
461
+ })
462
+ }
463
+
464
/// Set the RTP/RTCP ports of a transport
465
pub fn set_transport_ports(
466
&mut self,
0 commit comments