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