Home | History | Annotate | Download | only in base

Lines Matching refs:ssrc

124   virtual bool RemoveSendStream(uint32 ssrc) {
125 return RemoveStreamBySsrc(&send_streams_, ssrc);
135 virtual bool RemoveRecvStream(uint32 ssrc) {
136 return RemoveStreamBySsrc(&receive_streams_, ssrc);
138 virtual bool MuteStream(uint32 ssrc, bool on) {
139 if (!HasSendStream(ssrc) && ssrc != 0)
142 muted_streams_.insert(ssrc);
144 muted_streams_.erase(ssrc);
147 bool IsStreamMuted(uint32 ssrc) const {
148 bool ret = muted_streams_.find(ssrc) != muted_streams_.end();
149 // If |ssrc = 0| check if the first send stream is muted.
150 if (!ret && ssrc == 0 && !send_streams_.empty()) {
162 bool HasRecvStream(uint32 ssrc) const {
163 return GetStreamBySsrc(receive_streams_, ssrc, NULL);
165 bool HasSendStream(uint32 ssrc) const {
166 return GetStreamBySsrc(send_streams_, ssrc, NULL);
228 DtmfInfo(uint32 ssrc, int event_code, int duration, int flags)
229 : ssrc(ssrc), event_code(event_code), duration(duration), flags(flags) {
231 uint32 ssrc;
292 virtual bool RemoveRecvStream(uint32 ssrc) {
293 if (!RtpHelper<VoiceMediaChannel>::RemoveRecvStream(ssrc))
295 output_scalings_.erase(ssrc);
298 virtual bool SetRemoteRenderer(uint32 ssrc, AudioRenderer* renderer) {
300 remote_renderers_.find(ssrc);
305 remote_renderers_.insert(std::make_pair(ssrc, renderer));
318 virtual bool SetLocalRenderer(uint32 ssrc, AudioRenderer* renderer) {
320 local_renderers_.find(ssrc);
326 ssrc, new VoiceChannelAudioSink(renderer)));
348 virtual bool PlayRingbackTone(uint32 ssrc, bool play, bool loop) {
349 ringback_tone_ssrc_ = ssrc;
365 virtual bool InsertDtmf(uint32 ssrc, int event_code, int duration,
367 dtmf_info_queue_.push_back(DtmfInfo(ssrc, event_code, duration, flags));
371 virtual bool SetOutputScaling(uint32 ssrc, double left, double right) {
372 if (0 == ssrc) {
379 } else if (output_scalings_.find(ssrc) != output_scalings_.end()) {
380 output_scalings_[ssrc].left = left;
381 output_scalings_[ssrc].right = right;
386 virtual bool GetOutputScaling(uint32 ssrc, double* left, double* right) {
387 if (output_scalings_.find(ssrc) == output_scalings_.end())
389 *left = output_scalings_[ssrc].left;
390 *right = output_scalings_[ssrc].right;
395 virtual void GetLastMediaError(uint32* ssrc,
397 *ssrc = 0;
403 void TriggerError(uint32 ssrc, VoiceMediaChannel::Error error) {
404 VoiceMediaChannel::SignalMediaError(ssrc, error);
468 uint32 ssrc, int event_code, int duration,
471 info.flags == flags && info.ssrc == ssrc);
494 bool GetSendStreamFormat(uint32 ssrc, VideoFormat* format) {
495 if (send_formats_.find(ssrc) == send_formats_.end()) {
498 *format = send_formats_[ssrc];
501 virtual bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) {
502 if (send_formats_.find(ssrc) == send_formats_.end()) {
505 send_formats_[ssrc] = format;
516 virtual bool RemoveSendStream(uint32 ssrc) {
517 send_formats_.erase(ssrc);
518 return RtpHelper<VideoMediaChannel>::RemoveSendStream(ssrc);
553 virtual bool SetRenderer(uint32 ssrc, VideoRenderer* r) {
554 if (ssrc != 0 && renderers_.find(ssrc) == renderers_.end()) {
557 if (ssrc != 0) {
558 renderers_[ssrc] = r;
564 virtual bool SetCapturer(uint32 ssrc, VideoCapturer* capturer) {
565 capturers_[ssrc] = capturer;
568 bool HasCapturer(uint32 ssrc) const {
569 return capturers_.find(ssrc) != capturers_.end();
585 virtual bool RemoveRecvStream(uint32 ssrc) {
586 if (!RtpHelper<VideoMediaChannel>::RemoveRecvStream(ssrc))
588 renderers_.erase(ssrc);
618 void SetSendStreamDefaultFormat(uint32 ssrc) {
620 send_formats_[ssrc] = VideoFormat(
686 virtual bool RemoveRecvStream(uint32 ssrc) {
687 if (!RtpHelper<DataMediaChannel>::RemoveRecvStream(ssrc))
829 bool RegisterProcessor(uint32 ssrc, VoiceProcessor* voice_processor,
841 bool UnregisterProcessor(uint32 ssrc, VoiceProcessor* voice_processor,