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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type = | 1133 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type = |
1134 kUlpfecPayloadType; | 1134 kUlpfecPayloadType; |
1135 } | 1135 } |
1136 | 1136 |
1137 if (params_.screenshare.enabled) | 1137 if (params_.screenshare.enabled) |
1138 SetupScreenshare(); | 1138 SetupScreenshare(); |
1139 | 1139 |
1140 video_send_stream_ = | 1140 video_send_stream_ = |
1141 call->CreateVideoSendStream(video_send_config_, video_encoder_config_); | 1141 call->CreateVideoSendStream(video_send_config_, video_encoder_config_); |
1142 VideoReceiveStream* receive_stream = | 1142 VideoReceiveStream* receive_stream = |
1143 call->CreateVideoReceiveStream(video_receive_configs_[stream_id]); | 1143 call->CreateVideoReceiveStream(video_receive_configs_[stream_id].Copy()); |
1144 CreateCapturer(video_send_stream_->Input()); | 1144 CreateCapturer(video_send_stream_->Input()); |
1145 | 1145 |
1146 receive_stream->Start(); | 1146 receive_stream->Start(); |
1147 video_send_stream_->Start(); | 1147 video_send_stream_->Start(); |
1148 capturer_->Start(); | 1148 capturer_->Start(); |
1149 | 1149 |
1150 test::PressEnterToContinue(); | 1150 test::PressEnterToContinue(); |
1151 | 1151 |
1152 capturer_->Stop(); | 1152 capturer_->Stop(); |
1153 video_send_stream_->Stop(); | 1153 video_send_stream_->Stop(); |
1154 receive_stream->Stop(); | 1154 receive_stream->Stop(); |
1155 | 1155 |
1156 call->DestroyVideoReceiveStream(receive_stream); | 1156 call->DestroyVideoReceiveStream(receive_stream); |
1157 call->DestroyVideoSendStream(video_send_stream_); | 1157 call->DestroyVideoSendStream(video_send_stream_); |
1158 | 1158 |
1159 transport.StopSending(); | 1159 transport.StopSending(); |
1160 } | 1160 } |
1161 | 1161 |
1162 } // namespace webrtc | 1162 } // namespace webrtc |
OLD | NEW |