OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 if (config_.renderer != nullptr) | 313 if (config_.renderer != nullptr) |
314 config_.renderer->RenderFrame( | 314 config_.renderer->RenderFrame( |
315 video_frame, | 315 video_frame, |
316 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); | 316 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); |
317 | 317 |
318 stats_proxy_->OnRenderedFrame(); | 318 stats_proxy_->OnRenderedFrame(); |
319 | 319 |
320 return 0; | 320 return 0; |
321 } | 321 } |
322 | 322 |
323 void VideoReceiveStream::SignalNetworkState(Call::NetworkState state) { | 323 void VideoReceiveStream::SignalNetworkState(NetworkState state) { |
324 if (state == Call::kNetworkUp) | 324 if (state == kNetworkUp) |
325 SetRtcpMode(config_.rtp.rtcp_mode); | 325 SetRtcpMode(config_.rtp.rtcp_mode); |
326 if (state == Call::kNetworkDown) | 326 if (state == kNetworkDown) |
327 vie_channel_->SetRTCPMode(kRtcpOff); | 327 vie_channel_->SetRTCPMode(kRtcpOff); |
328 } | 328 } |
329 | 329 |
330 void VideoReceiveStream::SetRtcpMode(newapi::RtcpMode mode) { | 330 void VideoReceiveStream::SetRtcpMode(newapi::RtcpMode mode) { |
331 switch (mode) { | 331 switch (mode) { |
332 case newapi::kRtcpCompound: | 332 case newapi::kRtcpCompound: |
333 vie_channel_->SetRTCPMode(kRtcpCompound); | 333 vie_channel_->SetRTCPMode(kRtcpCompound); |
334 break; | 334 break; |
335 case newapi::kRtcpReducedSize: | 335 case newapi::kRtcpReducedSize: |
336 vie_channel_->SetRTCPMode(kRtcpNonCompound); | 336 vie_channel_->SetRTCPMode(kRtcpNonCompound); |
337 break; | 337 break; |
338 } | 338 } |
339 } | 339 } |
340 } // namespace internal | 340 } // namespace internal |
341 } // namespace webrtc | 341 } // namespace webrtc |
OLD | NEW |