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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 StreamId rtx_stream(ssrc, kOutgoingPacket); | 324 StreamId rtx_stream(ssrc, kOutgoingPacket); |
325 RegisterHeaderExtensions(config.rtp.extensions, | 325 RegisterHeaderExtensions(config.rtp.extensions, |
326 &extension_maps[rtx_stream]); | 326 &extension_maps[rtx_stream]); |
327 video_ssrcs_.insert(rtx_stream); | 327 video_ssrcs_.insert(rtx_stream); |
328 rtx_ssrcs_.insert(rtx_stream); | 328 rtx_ssrcs_.insert(rtx_stream); |
329 } | 329 } |
330 break; | 330 break; |
331 } | 331 } |
332 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: { | 332 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: { |
333 AudioReceiveStream::Config config; | 333 AudioReceiveStream::Config config; |
334 // TODO(terelius): Parse the audio configs once we have them. | 334 parsed_log_.GetAudioReceiveConfig(i, &config); |
| 335 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket); |
| 336 RegisterHeaderExtensions(config.rtp.extensions, |
| 337 &extension_maps[stream]); |
| 338 audio_ssrcs_.insert(stream); |
335 break; | 339 break; |
336 } | 340 } |
337 case ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT: { | 341 case ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT: { |
338 AudioSendStream::Config config(nullptr); | 342 AudioSendStream::Config config(nullptr); |
339 // TODO(terelius): Parse the audio configs once we have them. | 343 parsed_log_.GetAudioSendConfig(i, &config); |
| 344 StreamId stream(config.rtp.ssrc, kOutgoingPacket); |
| 345 RegisterHeaderExtensions(config.rtp.extensions, |
| 346 &extension_maps[stream]); |
| 347 audio_ssrcs_.insert(stream); |
340 break; | 348 break; |
341 } | 349 } |
342 case ParsedRtcEventLog::RTP_EVENT: { | 350 case ParsedRtcEventLog::RTP_EVENT: { |
343 MediaType media_type; | 351 MediaType media_type; |
344 parsed_log_.GetRtpHeader(i, &direction, &media_type, header, | 352 parsed_log_.GetRtpHeader(i, &direction, &media_type, header, |
345 &header_length, &total_length); | 353 &header_length, &total_length); |
346 // Parse header to get SSRC. | 354 // Parse header to get SSRC. |
347 RtpUtility::RtpHeaderParser rtp_parser(header, header_length); | 355 RtpUtility::RtpHeaderParser rtp_parser(header, header_length); |
348 RTPHeader parsed_header; | 356 RTPHeader parsed_header; |
349 rtp_parser.Parse(&parsed_header); | 357 rtp_parser.Parse(&parsed_header); |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 point.y -= estimated_base_delay_ms; | 1080 point.y -= estimated_base_delay_ms; |
1073 // Add the data set to the plot. | 1081 // Add the data set to the plot. |
1074 plot->series_list_.push_back(std::move(time_series)); | 1082 plot->series_list_.push_back(std::move(time_series)); |
1075 | 1083 |
1076 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1084 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1077 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 1085 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
1078 plot->SetTitle("Network Delay Change."); | 1086 plot->SetTitle("Network Delay Change."); |
1079 } | 1087 } |
1080 } // namespace plotting | 1088 } // namespace plotting |
1081 } // namespace webrtc | 1089 } // namespace webrtc |
OLD | NEW |