Index: webrtc/video_send_stream.h |
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h |
index afdec43c745cc2cc877b416ef5150f6d27c0cecb..982946331d06d3bab494c20c7cf382478472e3a5 100644 |
--- a/webrtc/video_send_stream.h |
+++ b/webrtc/video_send_stream.h |
@@ -13,8 +13,10 @@ |
#include <map> |
#include <string> |
+#include <utility> |
#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" |
@@ -204,6 +206,22 @@ class VideoSendStream { |
virtual Stats GetStats() = 0; |
+ // Takes ownership of each file, is responsible for closing them later. |
+ // Calling this method will close and finalize any current logs. |
+ // Some codecs produce multiple streams (VP8 only at present), each of these |
+ // streams will log to a separate file. kMaxSimulcastStreams in common_types.h |
+ // gives the max number of such streams. If there is no file for a stream, or |
+ // the file is rtc::kInvalidPlatformFileValue, frames from that stream will |
+ // not be logged. |
+ // 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( |
+ const std::vector<rtc::PlatformFile>& files, |
+ size_t byte_limit) = 0; |
+ inline void DisableEncodedFrameRecording() { |
+ EnableEncodedFrameRecording(std::vector<rtc::PlatformFile>(), 0); |
+ } |
+ |
protected: |
virtual ~VideoSendStream() {} |
}; |