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

Side by Side Diff: webrtc/call/rtx_receive_stream.h

Issue 2888093002: New class RtxReceiveStream. (Closed)
Patch Set: Address more comments. Created 3 years, 7 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 | « webrtc/call/BUILD.gn ('k') | webrtc/call/rtx_receive_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_CALL_RTX_RECEIVE_STREAM_H_
12 #define WEBRTC_CALL_RTX_RECEIVE_STREAM_H_
13
14 #include <map>
15
16 #include "webrtc/call/rtp_demuxer.h"
17
18 namespace webrtc {
19
20 class RtxReceiveStream : public RtpPacketSinkInterface {
21 public:
22 RtxReceiveStream(RtpPacketSinkInterface* media_sink,
23 std::map<int, int> rtx_payload_type_map,
24 uint32_t media_ssrc);
25
26 // RtpPacketSinkInterface.
27 void OnRtpPacket(const RtpPacketReceived& packet) override;
28
29 private:
30 RtpPacketSinkInterface* const media_sink_;
31 // Mapping rtx_payload_type_map_[rtx] = associated.
32 const std::map<int, int> rtx_payload_type_map_;
33 // TODO(nisse): Ultimately, the media receive stream shouldn't care about the
34 // ssrc, and we should delete this.
35 const uint32_t media_ssrc_;
36 };
37
38 } // namespace webrtc
39
40 #endif // WEBRTC_CALL_RTX_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/call/rtx_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698