Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: webrtc/pc/peerconnection.h

Issue 2977493002: When a track is added/removed directly to MediaStream notify observer->OnRenegotionNeeded (Closed)
Patch Set: When removing stream, do not remove tracks if pc is closed Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | webrtc/pc/peerconnection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/peerconnection.h
diff --git a/webrtc/pc/peerconnection.h b/webrtc/pc/peerconnection.h
index e563d513973d47038ae0b97d5d40c88de131eaed..ff2a2f68e448789d5fc6bd2a21a735ad76342c2a 100644
--- a/webrtc/pc/peerconnection.h
+++ b/webrtc/pc/peerconnection.h
@@ -193,11 +193,15 @@ class PeerConnection : public PeerConnectionInterface,
const std::string& track_id,
uint32_t ssrc);
void DestroyReceiver(const std::string& track_id);
- void DestroyAudioSender(MediaStreamInterface* stream,
- AudioTrackInterface* audio_track,
- uint32_t ssrc);
- void DestroyVideoSender(MediaStreamInterface* stream,
- VideoTrackInterface* video_track);
+
+ // May be called either by AddStream/RemoveStream, or when a track is
+ // added/removed from a stream previously added via AddStream.
+ void AddAudioTrack(AudioTrackInterface* track, MediaStreamInterface* stream);
+ void RemoveAudioTrack(AudioTrackInterface* track,
+ MediaStreamInterface* stream);
+ void AddVideoTrack(VideoTrackInterface* track, MediaStreamInterface* stream);
+ void RemoveVideoTrack(VideoTrackInterface* track,
+ MediaStreamInterface* stream);
// Implements IceObserver
void OnIceConnectionStateChange(IceConnectionState new_state) override;
« no previous file with comments | « AUTHORS ('k') | webrtc/pc/peerconnection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698