 Chromium Code Reviews
 Chromium Code Reviews Issue 2886993005:
  Introduce RtpStreamReceiver and RtpStreamReceiverControllerInterface.  (Closed)
    
  
    Issue 2886993005:
  Introduce RtpStreamReceiver and RtpStreamReceiverControllerInterface.  (Closed) 
  | 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 #ifndef WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_RECEIVE_INTERFACE_H_ | |
| 11 #define WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_RECEIVE_INTERFACE_H_ | |
| 12 | |
| 13 #include <memory> | |
| 14 | |
| 15 #include "webrtc/call/rtp_demuxer.h" | |
| 16 | |
| 17 namespace webrtc { | |
| 18 | |
| 19 class RtpTransportReceiver { | |
| 
pthatcher1
2017/05/17 23:24:53
What is this?  No comment.  No methods.
And I'm g
 | |
| 20 public: | |
| 21 virtual ~RtpTransportReceiver() {} | |
| 22 }; | |
| 23 | |
| 24 // This class acts as a factory for RtpTransportReceive objects. | |
| 25 class RtpTransportControllerReceiveInterface { | |
| 
pthatcher1
2017/05/17 23:24:53
I still don't like this name.  RtpReceiverControll
 
nisse-webrtc
2017/05/18 08:45:43
I'm open to renaming (as long as RtpTransportContr
 
pthatcher1
2017/05/24 03:57:38
A controller is a thing that creates, owns, and de
 | |
| 26 public: | |
| 27 virtual ~RtpTransportControllerReceiveInterface() {} | |
| 28 virtual std::unique_ptr<RtpTransportReceiver> CreateReceiver( | |
| 
pthatcher1
2017/05/17 23:24:53
This could use a method also.  You put in a sink a
 
nisse-webrtc
2017/05/18 08:45:43
On an abstract level, a receiver is a handle to th
 | |
| 29 uint32_t ssrc, | |
| 30 RtpPacketSinkInterface* sink) = 0; | |
| 31 }; | |
| 
danilchap
2017/05/19 15:37:43
OnRtpPacket or similar likely should be part of th
 
nisse-webrtc
2017/05/22 07:09:37
If we add that interface, I think it should take a
 | |
| 32 | |
| 33 } // namespace webrtc | |
| 34 | |
| 35 #endif // WEBRTC_CALL_RTP_TRANSPORT_CONTROLLER_RECEIVE_INTERFACE_H_ | |
| OLD | NEW |