OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 | 814 |
815 video_encoder_config_.min_transmit_bitrate_bps = | 815 video_encoder_config_.min_transmit_bitrate_bps = |
816 params_.common.min_transmit_bps; | 816 params_.common.min_transmit_bps; |
817 video_encoder_config_.streams = params_.ss.streams; | 817 video_encoder_config_.streams = params_.ss.streams; |
818 video_encoder_config_.spatial_layers = params_.ss.spatial_layers; | 818 video_encoder_config_.spatial_layers = params_.ss.spatial_layers; |
819 | 819 |
820 CreateMatchingReceiveConfigs(recv_transport); | 820 CreateMatchingReceiveConfigs(recv_transport); |
821 | 821 |
822 for (size_t i = 0; i < num_streams; ++i) { | 822 for (size_t i = 0; i < num_streams; ++i) { |
823 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; | 823 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
824 video_receive_configs_[i].rtp.rtx[kSendRtxPayloadType].ssrc = | 824 video_receive_configs_[i].rtp.rtx[payload_type].ssrc = kSendRtxSsrcs[i]; |
825 kSendRtxSsrcs[i]; | 825 video_receive_configs_[i].rtp.rtx[payload_type].payload_type = |
826 video_receive_configs_[i].rtp.rtx[kSendRtxPayloadType].payload_type = | |
827 kSendRtxPayloadType; | 826 kSendRtxPayloadType; |
828 video_receive_configs_[i].rtp.transport_cc = params_.common.send_side_bwe; | 827 video_receive_configs_[i].rtp.transport_cc = params_.common.send_side_bwe; |
829 } | 828 } |
830 } | 829 } |
831 | 830 |
832 void VideoQualityTest::SetupScreenshare() { | 831 void VideoQualityTest::SetupScreenshare() { |
833 RTC_CHECK(params_.screenshare.enabled); | 832 RTC_CHECK(params_.screenshare.enabled); |
834 | 833 |
835 // Fill out codec settings. | 834 // Fill out codec settings. |
836 video_encoder_config_.content_type = VideoEncoderConfig::ContentType::kScreen; | 835 video_encoder_config_.content_type = VideoEncoderConfig::ContentType::kScreen; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 video_send_stream_->Stop(); | 1063 video_send_stream_->Stop(); |
1065 receive_stream->Stop(); | 1064 receive_stream->Stop(); |
1066 | 1065 |
1067 call->DestroyVideoReceiveStream(receive_stream); | 1066 call->DestroyVideoReceiveStream(receive_stream); |
1068 call->DestroyVideoSendStream(video_send_stream_); | 1067 call->DestroyVideoSendStream(video_send_stream_); |
1069 | 1068 |
1070 transport.StopSending(); | 1069 transport.StopSending(); |
1071 } | 1070 } |
1072 | 1071 |
1073 } // namespace webrtc | 1072 } // namespace webrtc |
OLD | NEW |