OLD | NEW |
---|---|
(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_RTP_TRANSPORT_CONTROLLER_H_ | |
12 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_H_ | |
13 | |
14 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | |
15 | |
16 namespace webrtc { | |
17 | |
18 class VieRemb; | |
19 class PacketRouter; | |
20 | |
21 // An RtpTransportController should own everything related to the RTP | |
22 // transport to/from a remote endpoint. We should have separate | |
23 // interfaces for send and receive sice, even if they are implemented | |
stefan-webrtc
2017/02/17 11:59:28
since
| |
24 // by the same class. This is on ongoing refactoring project. At some | |
stefan-webrtc
2017/02/17 11:59:28
-on
| |
25 // point, this class should be promoted to a public api under | |
26 // webrtc/api/rtp/. | |
27 // | |
28 // For a start, this object is just a collection of the objects needed | |
29 // by the VideoSendStream constructor. The plan is to move ownership | |
30 // of all RTP-related objects here, and add methods to create per-ssrc | |
31 // objects which would then be passed to VideoSendStream. | |
32 // | |
33 // This should also have a reference to the underlying | |
34 // webrtc::Transport. Currently, webrtc::Transport is implemented by | |
35 // WebRtcVideoChannel2 and WebRtcVoiceMediaChannel, and owned by | |
36 // WebrtcSession. It's unclear why video and audio uses different | |
37 // transports, possibly because it is implemented by BaseChannel and | |
38 // there are other reasons for BaseChannel subclasses specific for | |
39 // video and audio. | |
40 // | |
41 // Extracting the logic of the webrtc::Transport from BaseChannel and | |
42 // subclasses into a separate class seems to be a prerequesite for | |
43 // moving the transport here. As an interim step, using this class for | |
44 // video only, we could consider passing the WebRtcVideoChannel2 | |
45 // transport here. | |
46 class RtpTransportControllerSendInterface { | |
47 public: | |
48 virtual ~RtpTransportControllerSendInterface() {} | |
49 virtual VieRemb* remb() = 0; | |
stefan-webrtc
2017/02/17 11:59:28
Do you think it would be possible to use PacketRou
| |
50 virtual PacketRouter* packet_router() = 0; | |
stefan-webrtc
2017/02/17 11:59:28
PacketRouter will not have to be exposed any longe
nisse-webrtc
2017/02/17 12:35:15
I don't think any of the current accessor methods
| |
51 virtual CongestionController* congestion_controller() = 0; | |
52 }; | |
53 | |
54 } // namespace webrtc | |
55 | |
56 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_H_ | |
OLD | NEW |