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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. Created 4 years, 1 month 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 | « webrtc/media/engine/webrtcvoiceengine.h ('k') | webrtc/media/sctp/sctpdataengine.h » ('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 (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 } 2456 }
2457 2457
2458 void WebRtcVoiceMediaChannel::OnReadyToSend(bool ready) { 2458 void WebRtcVoiceMediaChannel::OnReadyToSend(bool ready) {
2459 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 2459 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2460 LOG(LS_VERBOSE) << "OnReadyToSend: " << (ready ? "Ready." : "Not ready."); 2460 LOG(LS_VERBOSE) << "OnReadyToSend: " << (ready ? "Ready." : "Not ready.");
2461 call_->SignalChannelNetworkState( 2461 call_->SignalChannelNetworkState(
2462 webrtc::MediaType::AUDIO, 2462 webrtc::MediaType::AUDIO,
2463 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown); 2463 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown);
2464 } 2464 }
2465 2465
2466 void WebRtcVoiceMediaChannel::OnTransportOverheadChanged(
2467 int transport_overhead_per_packet) {
2468 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2469 call_->OnTransportOverheadChanged(webrtc::MediaType::AUDIO,
2470 transport_overhead_per_packet);
2471 }
2472
2466 bool WebRtcVoiceMediaChannel::GetStats(VoiceMediaInfo* info) { 2473 bool WebRtcVoiceMediaChannel::GetStats(VoiceMediaInfo* info) {
2467 TRACE_EVENT0("webrtc", "WebRtcVoiceMediaChannel::GetStats"); 2474 TRACE_EVENT0("webrtc", "WebRtcVoiceMediaChannel::GetStats");
2468 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 2475 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2469 RTC_DCHECK(info); 2476 RTC_DCHECK(info);
2470 2477
2471 // Get SSRC and stats for each sender. 2478 // Get SSRC and stats for each sender.
2472 RTC_DCHECK(info->senders.size() == 0); 2479 RTC_DCHECK(info->senders.size() == 0);
2473 for (const auto& stream : send_streams_) { 2480 for (const auto& stream : send_streams_) {
2474 webrtc::AudioSendStream::Stats stats = stream.second->GetStats(); 2481 webrtc::AudioSendStream::Stats stats = stream.second->GetStats();
2475 VoiceSenderInfo sinfo; 2482 VoiceSenderInfo sinfo;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 2579 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2573 const auto it = send_streams_.find(ssrc); 2580 const auto it = send_streams_.find(ssrc);
2574 if (it != send_streams_.end()) { 2581 if (it != send_streams_.end()) {
2575 return it->second->channel(); 2582 return it->second->channel();
2576 } 2583 }
2577 return -1; 2584 return -1;
2578 } 2585 }
2579 } // namespace cricket 2586 } // namespace cricket
2580 2587
2581 #endif // HAVE_WEBRTC_VOICE 2588 #endif // HAVE_WEBRTC_VOICE
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.h ('k') | webrtc/media/sctp/sctpdataengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698