OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 webrtc::MediaType::AUDIO, | 408 webrtc::MediaType::AUDIO, |
409 webrtc::kOutgoingPacket); | 409 webrtc::kOutgoingPacket); |
410 if (!FLAGS_noconfig && !FLAGS_noaudio && !FLAGS_noincoming) { | 410 if (!FLAGS_noconfig && !FLAGS_noaudio && !FLAGS_noincoming) { |
411 std::cout << parsed_stream.GetTimestamp(i) << "\tAUDIO_RECV_CONFIG" | 411 std::cout << parsed_stream.GetTimestamp(i) << "\tAUDIO_RECV_CONFIG" |
412 << "\tssrc=" << config.remote_ssrc | 412 << "\tssrc=" << config.remote_ssrc |
413 << "\tfeedback_ssrc=" << config.local_ssrc << std::endl; | 413 << "\tfeedback_ssrc=" << config.local_ssrc << std::endl; |
414 } | 414 } |
415 } | 415 } |
416 if (parsed_stream.GetEventType(i) == | 416 if (parsed_stream.GetEventType(i) == |
417 webrtc::ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT) { | 417 webrtc::ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT) { |
418 webrtc::AudioSendStream::Config config(nullptr); | 418 webrtc::rtclog::StreamConfig config; |
419 parsed_stream.GetAudioSendConfig(i, &config); | 419 parsed_stream.GetAudioSendConfig(i, &config); |
420 global_streams.emplace_back(config.rtp.ssrc, webrtc::MediaType::AUDIO, | 420 global_streams.emplace_back(config.local_ssrc, webrtc::MediaType::AUDIO, |
421 webrtc::kOutgoingPacket); | 421 webrtc::kOutgoingPacket); |
422 if (!FLAGS_noconfig && !FLAGS_noaudio && !FLAGS_nooutgoing) { | 422 if (!FLAGS_noconfig && !FLAGS_noaudio && !FLAGS_nooutgoing) { |
423 std::cout << parsed_stream.GetTimestamp(i) << "\tAUDIO_SEND_CONFIG" | 423 std::cout << parsed_stream.GetTimestamp(i) << "\tAUDIO_SEND_CONFIG" |
424 << "\tssrc=" << config.rtp.ssrc << std::endl; | 424 << "\tssrc=" << config.local_ssrc << std::endl; |
425 } | 425 } |
426 } | 426 } |
427 if (!FLAGS_nortp && | 427 if (!FLAGS_nortp && |
428 parsed_stream.GetEventType(i) == webrtc::ParsedRtcEventLog::RTP_EVENT) { | 428 parsed_stream.GetEventType(i) == webrtc::ParsedRtcEventLog::RTP_EVENT) { |
429 size_t header_length; | 429 size_t header_length; |
430 size_t total_length; | 430 size_t total_length; |
431 uint8_t header[IP_PACKET_SIZE]; | 431 uint8_t header[IP_PACKET_SIZE]; |
432 webrtc::PacketDirection direction; | 432 webrtc::PacketDirection direction; |
433 webrtc::MediaType media_type; | 433 webrtc::MediaType media_type; |
434 parsed_stream.GetRtpHeader(i, &direction, &media_type, header, | 434 parsed_stream.GetRtpHeader(i, &direction, &media_type, header, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 PrintPsFeedback(rtcp_block, log_timestamp, direction); | 491 PrintPsFeedback(rtcp_block, log_timestamp, direction); |
492 break; | 492 break; |
493 default: | 493 default: |
494 break; | 494 break; |
495 } | 495 } |
496 } | 496 } |
497 } | 497 } |
498 } | 498 } |
499 return 0; | 499 return 0; |
500 } | 500 } |
OLD | NEW |