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! |
| 21 // This class is under development and it is not yet intended for use outside |
| 22 // of WebRTC. |
| 23 // |
| 24 // TODO(brandtr): Remove this comment when FlexFEC is ready for public use. |
| 25 |
| 26 class FlexfecReceiveStream { |
| 27 public: |
| 28 struct Stats { |
| 29 std::string ToString(int64_t time_ms) const; |
| 30 |
| 31 // TODO(brandtr): Add appropriate stats here. |
| 32 int flexfec_bitrate_bps; |
| 33 }; |
| 34 |
| 35 // TODO(brandtr): When we add multistream protection, and thus add a |
| 36 // FlexfecSendStream class, remove FlexfecConfig from config.h and add |
| 37 // the appropriate configs here and in FlexfecSendStream. |
| 38 using Config = FlexfecConfig; |
| 39 |
| 40 // Starts stream activity. |
| 41 // When a stream is active, it can receive and process packets. |
| 42 virtual void Start() = 0; |
| 43 // Stops stream activity. |
| 44 // When a stream is stopped, it can't receive nor process packets. |
| 45 virtual void Stop() = 0; |
| 46 |
| 47 virtual Stats GetStats() const = 0; |
| 48 |
| 49 protected: |
| 50 virtual ~FlexfecReceiveStream() = default; |
| 51 }; |
| 52 |
| 53 } // namespace webrtc |
| 54 |
| 55 #endif // WEBRTC_API_CALL_FLEXFEC_RECEIVE_STREAM_H_ |
OLD | NEW |