OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 #include <climits> | 6 #include <climits> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <cstdio> | 8 #include <cstdio> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 }; | 183 }; |
184 | 184 |
185 } // namespace cast | 185 } // namespace cast |
186 } // namespace media | 186 } // namespace media |
187 | 187 |
188 int main(int argc, char** argv) { | 188 int main(int argc, char** argv) { |
189 base::AtExitManager at_exit; | 189 base::AtExitManager at_exit; |
190 CommandLine::Init(argc, argv); | 190 CommandLine::Init(argc, argv); |
191 InitLogging(logging::LoggingSettings()); | 191 InitLogging(logging::LoggingSettings()); |
192 | 192 |
193 // Enable raw event logging only. | |
194 media::cast::CastLoggingConfig logging_config; | |
195 logging_config.enable_raw_data_collection = true; | |
196 | |
197 scoped_refptr<media::cast::CastEnvironment> cast_environment( | 193 scoped_refptr<media::cast::CastEnvironment> cast_environment( |
198 new media::cast::StandaloneCastEnvironment(logging_config)); | 194 new media::cast::StandaloneCastEnvironment); |
199 | 195 |
200 media::cast::AudioReceiverConfig audio_config = | 196 media::cast::AudioReceiverConfig audio_config = |
201 media::cast::GetAudioReceiverConfig(); | 197 media::cast::GetAudioReceiverConfig(); |
202 media::cast::VideoReceiverConfig video_config = | 198 media::cast::VideoReceiverConfig video_config = |
203 media::cast::GetVideoReceiverConfig(); | 199 media::cast::GetVideoReceiverConfig(); |
204 | 200 |
205 int remote_port, local_port; | 201 int remote_port, local_port; |
206 media::cast::GetPorts(&remote_port, &local_port); | 202 media::cast::GetPorts(&remote_port, &local_port); |
207 if (!local_port) { | 203 if (!local_port) { |
208 LOG(ERROR) << "Invalid local port."; | 204 LOG(ERROR) << "Invalid local port."; |
(...skipping 23 matching lines...) Expand all Loading... |
232 local_end_point, | 228 local_end_point, |
233 remote_end_point, | 229 remote_end_point, |
234 audio_config, | 230 audio_config, |
235 video_config); | 231 video_config); |
236 receiver_display->Start(); | 232 receiver_display->Start(); |
237 | 233 |
238 base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM). | 234 base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM). |
239 NOTREACHED(); | 235 NOTREACHED(); |
240 return 0; | 236 return 0; |
241 } | 237 } |
OLD | NEW |