OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2016 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_API_CALL_FLEXFEC_RECEIVE_STREAM_H_ | |
12 #define WEBRTC_API_CALL_FLEXFEC_RECEIVE_STREAM_H_ | |
13 | |
14 #include <string> | |
15 | |
16 #include "webrtc/config.h" | |
17 | |
18 namespace webrtc { | |
19 | |
20 // WORK IN PROGRESS | |
stefan-webrtc
2016/10/17 17:56:04
Add TODO(brandtr):
brandtr
2016/10/18 14:31:17
Done.
| |
21 // This class is under development and is not yet intended for for use outside | |
22 // of WebRTC. | |
23 | |
24 class FlexfecReceiveStream { | |
25 public: | |
26 struct Stats { | |
27 std::string ToString(int64_t time_ms) const; | |
28 | |
29 // TODO(brandtr): Add appropriate stats here. | |
30 int flexfec_bitrate_bps; | |
31 }; | |
32 | |
33 // TODO(brandtr): When we add multistream protection, and thus add a | |
34 // FlexfecSendStream class, remove FlexfecConfig from config.h and add | |
35 // the appropriate configs here and in FlexfecSendStream. | |
36 using Config = FlexfecConfig; | |
37 | |
38 // Starts stream activity. | |
39 // When a stream is active, it can receive and process packets. | |
40 virtual void Start() = 0; | |
41 // Stops stream activity. | |
42 // When a stream is stopped, it can't receive nor process packets. | |
43 virtual void Stop() = 0; | |
44 | |
45 virtual Stats GetStats() const = 0; | |
46 | |
47 protected: | |
48 virtual ~FlexfecReceiveStream() = default; | |
49 }; | |
50 | |
51 } // namespace webrtc | |
52 | |
53 #endif // WEBRTC_API_CALL_FLEXFEC_RECEIVE_STREAM_H_ | |
OLD | NEW |