| Index: webrtc/video_receive_stream.h
|
| diff --git a/webrtc/video_receive_stream.h b/webrtc/video_receive_stream.h
|
| index 0adcf3fc0d4cd3f499ae562dbd91ffbcfb03a21b..def103f195ca0216f218f9b1d973d8bbbdc12be9 100644
|
| --- a/webrtc/video_receive_stream.h
|
| +++ b/webrtc/video_receive_stream.h
|
| @@ -16,6 +16,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "webrtc/base/platform_file.h"
|
| #include "webrtc/common_types.h"
|
| #include "webrtc/common_video/include/frame_callback.h"
|
| #include "webrtc/config.h"
|
| @@ -208,6 +209,17 @@ class VideoReceiveStream {
|
| // TODO(pbos): Add info on currently-received codec to Stats.
|
| virtual Stats GetStats() const = 0;
|
|
|
| + // Takes ownership of the file, is responsible for closing it later.
|
| + // Calling this method will close and finalize any current log.
|
| + // Giving rtc::kInvalidPlatformFileValue disables logging.
|
| + // If a frame to be written would make the log too large the write fails and
|
| + // the log is closed and finalized. A |byte_limit| of 0 means no limit.
|
| + virtual void EnableEncodedFrameRecording(rtc::PlatformFile file,
|
| + size_t byte_limit) = 0;
|
| + inline void DisableEncodedFrameRecording() {
|
| + EnableEncodedFrameRecording(rtc::kInvalidPlatformFileValue, 0);
|
| + }
|
| +
|
| protected:
|
| virtual ~VideoReceiveStream() {}
|
| };
|
|
|