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

Side by Side 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, 4 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 unified diff | Download patch
« no previous file with comments | « AUTHORS ('k') | webrtc/pc/peerconnection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void OnMessage(rtc::Message* msg) override; 186 void OnMessage(rtc::Message* msg) override;
187 187
188 void CreateAudioReceiver(MediaStreamInterface* stream, 188 void CreateAudioReceiver(MediaStreamInterface* stream,
189 const std::string& track_id, 189 const std::string& track_id,
190 uint32_t ssrc); 190 uint32_t ssrc);
191 191
192 void CreateVideoReceiver(MediaStreamInterface* stream, 192 void CreateVideoReceiver(MediaStreamInterface* stream,
193 const std::string& track_id, 193 const std::string& track_id,
194 uint32_t ssrc); 194 uint32_t ssrc);
195 void DestroyReceiver(const std::string& track_id); 195 void DestroyReceiver(const std::string& track_id);
196 void DestroyAudioSender(MediaStreamInterface* stream, 196
197 AudioTrackInterface* audio_track, 197 // May be called either by AddStream/RemoveStream, or when a track is
198 uint32_t ssrc); 198 // added/removed from a stream previously added via AddStream.
199 void DestroyVideoSender(MediaStreamInterface* stream, 199 void AddAudioTrack(AudioTrackInterface* track, MediaStreamInterface* stream);
200 VideoTrackInterface* video_track); 200 void RemoveAudioTrack(AudioTrackInterface* track,
201 MediaStreamInterface* stream);
202 void AddVideoTrack(VideoTrackInterface* track, MediaStreamInterface* stream);
203 void RemoveVideoTrack(VideoTrackInterface* track,
204 MediaStreamInterface* stream);
201 205
202 // Implements IceObserver 206 // Implements IceObserver
203 void OnIceConnectionStateChange(IceConnectionState new_state) override; 207 void OnIceConnectionStateChange(IceConnectionState new_state) override;
204 void OnIceGatheringChange(IceGatheringState new_state) override; 208 void OnIceGatheringChange(IceGatheringState new_state) override;
205 void OnIceCandidate( 209 void OnIceCandidate(
206 std::unique_ptr<IceCandidateInterface> candidate) override; 210 std::unique_ptr<IceCandidateInterface> candidate) override;
207 void OnIceCandidatesRemoved( 211 void OnIceCandidatesRemoved(
208 const std::vector<cricket::Candidate>& candidates) override; 212 const std::vector<cricket::Candidate>& candidates) override;
209 void OnIceConnectionReceivingChange(bool receiving) override; 213 void OnIceConnectionReceivingChange(bool receiving) override;
210 214
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>> 451 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>>
448 senders_; 452 senders_;
449 std::vector< 453 std::vector<
450 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> 454 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>>
451 receivers_; 455 receivers_;
452 }; 456 };
453 457
454 } // namespace webrtc 458 } // namespace webrtc
455 459
456 #endif // WEBRTC_PC_PEERCONNECTION_H_ 460 #endif // WEBRTC_PC_PEERCONNECTION_H_
OLDNEW
« 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