OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2004 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_PC_MEDIASINK_H_ | |
12 #define WEBRTC_PC_MEDIASINK_H_ | |
13 | |
14 namespace cricket { | |
15 | |
16 // MediaSinkInterface is a sink to handle RTP and RTCP packets that are sent or | |
17 // received by a channel. | |
18 class MediaSinkInterface { | |
19 public: | |
20 virtual ~MediaSinkInterface() {} | |
21 | |
22 virtual void SetMaxSize(size_t size) = 0; | |
23 virtual bool Enable(bool enable) = 0; | |
24 virtual bool IsEnabled() const = 0; | |
25 virtual void OnPacket(const void* data, size_t size, bool rtcp) = 0; | |
26 virtual void set_packet_filter(int filter) = 0; | |
27 }; | |
28 | |
29 } // namespace cricket | |
30 | |
31 #endif // WEBRTC_PC_MEDIASINK_H_ | |
OLD | NEW |