Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: webrtc/video/rtp_video_stream_receiver.h

Issue 2928123002: Use the configured remote ssrc instead of relying on the first received packet. (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/video/rtp_video_stream_receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const WebRtcRTPHeader* rtp_header) override; 105 const WebRtcRTPHeader* rtp_header) override;
106 // Implements RecoveredPacketReceiver. 106 // Implements RecoveredPacketReceiver.
107 void OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override; 107 void OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override;
108 108
109 // Implements RtpFeedback. 109 // Implements RtpFeedback.
110 int32_t OnInitializeDecoder(int8_t payload_type, 110 int32_t OnInitializeDecoder(int8_t payload_type,
111 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 111 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
112 int frequency, 112 int frequency,
113 size_t channels, 113 size_t channels,
114 uint32_t rate) override; 114 uint32_t rate) override;
115 void OnIncomingSSRCChanged(uint32_t ssrc) override; 115 void OnIncomingSSRCChanged(uint32_t ssrc) override {}
116 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override {} 116 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override {}
117 117
118 // Implements VCMFrameTypeCallback. 118 // Implements VCMFrameTypeCallback.
119 int32_t RequestKeyFrame() override; 119 int32_t RequestKeyFrame() override;
120 120
121 bool IsUlpfecEnabled() const; 121 bool IsUlpfecEnabled() const;
122 bool IsRetransmissionsEnabled() const; 122 bool IsRetransmissionsEnabled() const;
123 // Don't use, still experimental. 123 // Don't use, still experimental.
124 void RequestPacketRetransmit(const std::vector<uint16_t>& sequence_numbers); 124 void RequestPacketRetransmit(const std::vector<uint16_t>& sequence_numbers);
125 125
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Maps a payload type to a map of out-of-band supplied codec parameters. 197 // Maps a payload type to a map of out-of-band supplied codec parameters.
198 std::map<uint8_t, std::map<std::string, std::string>> pt_codec_params_; 198 std::map<uint8_t, std::map<std::string, std::string>> pt_codec_params_;
199 int16_t last_payload_type_ = -1; 199 int16_t last_payload_type_ = -1;
200 200
201 bool has_received_frame_; 201 bool has_received_frame_;
202 }; 202 };
203 203
204 } // namespace webrtc 204 } // namespace webrtc
205 205
206 #endif // WEBRTC_VIDEO_RTP_VIDEO_STREAM_RECEIVER_H_ 206 #endif // WEBRTC_VIDEO_RTP_VIDEO_STREAM_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/rtp_video_stream_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698