Lines Matching refs:local_stream
679 bool PeerConnection::AddStream(MediaStreamInterface* local_stream) { in AddStream() argument
684 if (!CanAddLocalMediaStream(local_streams_, local_stream)) { in AddStream()
688 local_streams_->AddStream(local_stream); in AddStream()
689 MediaStreamObserver* observer = new MediaStreamObserver(local_stream); in AddStream()
700 for (const auto& track : local_stream->GetAudioTracks()) { in AddStream()
701 OnAudioTrackAdded(track.get(), local_stream); in AddStream()
703 for (const auto& track : local_stream->GetVideoTracks()) { in AddStream()
704 OnVideoTrackAdded(track.get(), local_stream); in AddStream()
707 stats_->AddStream(local_stream); in AddStream()
712 void PeerConnection::RemoveStream(MediaStreamInterface* local_stream) { in RemoveStream() argument
714 for (const auto& track : local_stream->GetAudioTracks()) { in RemoveStream()
715 OnAudioTrackRemoved(track.get(), local_stream); in RemoveStream()
717 for (const auto& track : local_stream->GetVideoTracks()) { in RemoveStream()
718 OnVideoTrackRemoved(track.get(), local_stream); in RemoveStream()
721 local_streams_->RemoveStream(local_stream); in RemoveStream()
725 [local_stream](const rtc::scoped_ptr<MediaStreamObserver>& observer) { in RemoveStream()
726 return observer->stream()->label().compare(local_stream->label()) == in RemoveStream()