OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 StreamId rtx_stream(ssrc, kOutgoingPacket); | 346 StreamId rtx_stream(ssrc, kOutgoingPacket); |
347 RegisterHeaderExtensions(config.rtp.extensions, | 347 RegisterHeaderExtensions(config.rtp.extensions, |
348 &extension_maps[rtx_stream]); | 348 &extension_maps[rtx_stream]); |
349 video_ssrcs_.insert(rtx_stream); | 349 video_ssrcs_.insert(rtx_stream); |
350 rtx_ssrcs_.insert(rtx_stream); | 350 rtx_ssrcs_.insert(rtx_stream); |
351 } | 351 } |
352 break; | 352 break; |
353 } | 353 } |
354 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: { | 354 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: { |
355 AudioReceiveStream::Config config; | 355 AudioReceiveStream::Config config; |
356 // TODO(terelius): Parse the audio configs once we have them. | 356 parsed_log_.GetAudioReceiveConfig(i, &config); |
| 357 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket); |
| 358 RegisterHeaderExtensions(config.rtp.extensions, |
| 359 &extension_maps[stream]); |
| 360 audio_ssrcs_.insert(stream); |
357 break; | 361 break; |
358 } | 362 } |
359 case ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT: { | 363 case ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT: { |
360 AudioSendStream::Config config(nullptr); | 364 AudioSendStream::Config config(nullptr); |
361 // TODO(terelius): Parse the audio configs once we have them. | 365 parsed_log_.GetAudioSendConfig(i, &config); |
| 366 StreamId stream(config.rtp.ssrc, kOutgoingPacket); |
| 367 RegisterHeaderExtensions(config.rtp.extensions, |
| 368 &extension_maps[stream]); |
| 369 audio_ssrcs_.insert(stream); |
362 break; | 370 break; |
363 } | 371 } |
364 case ParsedRtcEventLog::RTP_EVENT: { | 372 case ParsedRtcEventLog::RTP_EVENT: { |
365 MediaType media_type; | 373 MediaType media_type; |
366 parsed_log_.GetRtpHeader(i, &direction, &media_type, header, | 374 parsed_log_.GetRtpHeader(i, &direction, &media_type, header, |
367 &header_length, &total_length); | 375 &header_length, &total_length); |
368 // Parse header to get SSRC. | 376 // Parse header to get SSRC. |
369 RtpUtility::RtpHeaderParser rtp_parser(header, header_length); | 377 RtpUtility::RtpHeaderParser rtp_parser(header, header_length); |
370 RTPHeader parsed_header; | 378 RTPHeader parsed_header; |
371 rtp_parser.Parse(&parsed_header); | 379 rtp_parser.Parse(&parsed_header); |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 point.y -= estimated_base_delay_ms; | 1167 point.y -= estimated_base_delay_ms; |
1160 // Add the data set to the plot. | 1168 // Add the data set to the plot. |
1161 plot->series_list_.push_back(std::move(time_series)); | 1169 plot->series_list_.push_back(std::move(time_series)); |
1162 | 1170 |
1163 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1171 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1164 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 1172 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
1165 plot->SetTitle("Network Delay Change."); | 1173 plot->SetTitle("Network Delay Change."); |
1166 } | 1174 } |
1167 } // namespace plotting | 1175 } // namespace plotting |
1168 } // namespace webrtc | 1176 } // namespace webrtc |
OLD | NEW |