[Unified Plan] Implement FiredDirection for RtpTransceiver
Bug: webrtc:9236
Change-Id: Ib5a8215f3762f35b68d2a285c7d676f93f1212c5
Reviewed-on: https://webrtc-review.googlesource.com/88921
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24010}
diff --git a/pc/peerconnection.h b/pc/peerconnection.h
index 0efe8b5..50e0fd3 100644
--- a/pc/peerconnection.h
+++ b/pc/peerconnection.h
@@ -470,6 +470,20 @@
transceiver,
const SessionDescriptionInterface* sdesc) const;
+ // Runs the algorithm **process the removal of a remote track** specified in
+ // the WebRTC specification.
+ // This method will update the following lists:
+ // |remove_list| is the list of transceivers for which the receiving track is
+ // being removed.
+ // |removed_streams| is the list of streams which no longer have a receiving
+ // track so should be removed.
+ // https://w3c.github.io/webrtc-pc/#process-remote-track-removal
+ void ProcessRemovalOfRemoteTrack(
+ rtc::scoped_refptr<RtpTransceiverProxyWithInternal<RtpTransceiver>>
+ transceiver,
+ std::vector<rtc::scoped_refptr<RtpTransceiverInterface>>* remove_list,
+ std::vector<rtc::scoped_refptr<MediaStreamInterface>>* removed_streams);
+
void OnNegotiationNeeded();
bool IsClosed() const {