Lines Matching refs:ssrc
117 virtual bool RemoveSendStream(uint32_t ssrc) { in RemoveSendStream() argument
118 return RemoveStreamBySsrc(&send_streams_, ssrc); in RemoveSendStream()
128 virtual bool RemoveRecvStream(uint32_t ssrc) { in RemoveRecvStream() argument
129 return RemoveStreamBySsrc(&receive_streams_, ssrc); in RemoveRecvStream()
131 bool IsStreamMuted(uint32_t ssrc) const { in IsStreamMuted() argument
132 bool ret = muted_streams_.find(ssrc) != muted_streams_.end(); in IsStreamMuted()
134 if (!ret && ssrc == 0 && !send_streams_.empty()) { in IsStreamMuted()
146 bool HasRecvStream(uint32_t ssrc) const { in HasRecvStream() argument
147 return GetStreamBySsrc(receive_streams_, ssrc) != nullptr; in HasRecvStream()
149 bool HasSendStream(uint32_t ssrc) const { in HasSendStream() argument
150 return GetStreamBySsrc(send_streams_, ssrc) != nullptr; in HasSendStream()
173 bool MuteStream(uint32_t ssrc, bool mute) { in MuteStream() argument
174 if (!HasSendStream(ssrc) && ssrc != 0) { in MuteStream()
178 muted_streams_.insert(ssrc); in MuteStream()
180 muted_streams_.erase(ssrc); in MuteStream()
233 DtmfInfo(uint32_t ssrc, int event_code, int duration) in DtmfInfo()
234 : ssrc(ssrc), in DtmfInfo()
237 uint32_t ssrc; member
275 virtual bool SetAudioSend(uint32_t ssrc, in SetAudioSend() argument
279 if (!SetLocalRenderer(ssrc, renderer)) { in SetAudioSend()
282 if (!RtpHelper<VoiceMediaChannel>::MuteStream(ssrc, !enable)) { in SetAudioSend()
296 virtual bool RemoveRecvStream(uint32_t ssrc) { in RemoveRecvStream() argument
297 if (!RtpHelper<VoiceMediaChannel>::RemoveRecvStream(ssrc)) in RemoveRecvStream()
299 output_scalings_.erase(ssrc); in RemoveRecvStream()
321 virtual bool InsertDtmf(uint32_t ssrc, in InsertDtmf() argument
324 dtmf_info_queue_.push_back(DtmfInfo(ssrc, event_code, duration)); in InsertDtmf()
328 virtual bool SetOutputVolume(uint32_t ssrc, double volume) { in SetOutputVolume() argument
329 if (0 == ssrc) { in SetOutputVolume()
335 } else if (output_scalings_.find(ssrc) != output_scalings_.end()) { in SetOutputVolume()
336 output_scalings_[ssrc] = volume; in SetOutputVolume()
341 bool GetOutputVolume(uint32_t ssrc, double* volume) { in GetOutputVolume() argument
342 if (output_scalings_.find(ssrc) == output_scalings_.end()) in GetOutputVolume()
344 *volume = output_scalings_[ssrc]; in GetOutputVolume()
351 uint32_t ssrc, in SetRawAudioSink() argument
402 bool SetLocalRenderer(uint32_t ssrc, AudioRenderer* renderer) { in SetLocalRenderer() argument
403 auto it = local_renderers_.find(ssrc); in SetLocalRenderer()
409 ssrc, new VoiceChannelAudioSink(renderer))); in SetLocalRenderer()
433 uint32_t ssrc, in CompareDtmfInfo() argument
437 info.ssrc == ssrc); in CompareDtmfInfo()
462 bool GetSendStreamFormat(uint32_t ssrc, VideoFormat* format) { in GetSendStreamFormat() argument
463 if (send_formats_.find(ssrc) == send_formats_.end()) { in GetSendStreamFormat()
466 *format = send_formats_[ssrc]; in GetSendStreamFormat()
469 virtual bool SetSendStreamFormat(uint32_t ssrc, const VideoFormat& format) { in SetSendStreamFormat() argument
470 if (send_formats_.find(ssrc) == send_formats_.end()) { in SetSendStreamFormat()
473 send_formats_[ssrc] = format; in SetSendStreamFormat()
494 virtual bool RemoveSendStream(uint32_t ssrc) { in RemoveSendStream() argument
495 send_formats_.erase(ssrc); in RemoveSendStream()
496 return RtpHelper<VideoMediaChannel>::RemoveSendStream(ssrc); in RemoveSendStream()
506 virtual bool SetRenderer(uint32_t ssrc, VideoRenderer* r) { in SetRenderer() argument
507 if (ssrc != 0 && renderers_.find(ssrc) == renderers_.end()) { in SetRenderer()
510 if (ssrc != 0) { in SetRenderer()
511 renderers_[ssrc] = r; in SetRenderer()
517 virtual bool SetVideoSend(uint32_t ssrc, bool enable, in SetVideoSend() argument
519 if (!RtpHelper<VideoMediaChannel>::MuteStream(ssrc, !enable)) { in SetVideoSend()
527 virtual bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) { in SetCapturer() argument
528 capturers_[ssrc] = capturer; in SetCapturer()
531 bool HasCapturer(uint32_t ssrc) const { in HasCapturer() argument
532 return capturers_.find(ssrc) != capturers_.end(); in HasCapturer()
540 virtual bool RemoveRecvStream(uint32_t ssrc) { in RemoveRecvStream() argument
541 if (!RtpHelper<VideoMediaChannel>::RemoveRecvStream(ssrc)) in RemoveRecvStream()
543 renderers_.erase(ssrc); in RemoveRecvStream()
594 void SetSendStreamDefaultFormat(uint32_t ssrc) { in SetSendStreamDefaultFormat() argument
596 send_formats_[ssrc] = VideoFormat( in SetSendStreamDefaultFormat()
642 virtual bool RemoveRecvStream(uint32_t ssrc) { in RemoveRecvStream() argument
643 if (!RtpHelper<DataMediaChannel>::RemoveRecvStream(ssrc)) in RemoveRecvStream()