OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 11 #ifndef WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
12 #define WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 12 #define WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
13 | 13 |
14 #include <limits> | 14 #include <limits> |
15 #include <map> | 15 #include <map> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
| 19 #include "webrtc/base/platform_file.h" |
19 #include "webrtc/common_types.h" | 20 #include "webrtc/common_types.h" |
20 #include "webrtc/common_video/include/frame_callback.h" | 21 #include "webrtc/common_video/include/frame_callback.h" |
21 #include "webrtc/config.h" | 22 #include "webrtc/config.h" |
22 #include "webrtc/media/base/videosinkinterface.h" | 23 #include "webrtc/media/base/videosinkinterface.h" |
23 #include "webrtc/transport.h" | 24 #include "webrtc/transport.h" |
24 | 25 |
25 namespace webrtc { | 26 namespace webrtc { |
26 | 27 |
27 class VideoDecoder; | 28 class VideoDecoder; |
28 | 29 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Starts stream activity. | 202 // Starts stream activity. |
202 // When a stream is active, it can receive, process and deliver packets. | 203 // When a stream is active, it can receive, process and deliver packets. |
203 virtual void Start() = 0; | 204 virtual void Start() = 0; |
204 // Stops stream activity. | 205 // Stops stream activity. |
205 // When a stream is stopped, it can't receive, process or deliver packets. | 206 // When a stream is stopped, it can't receive, process or deliver packets. |
206 virtual void Stop() = 0; | 207 virtual void Stop() = 0; |
207 | 208 |
208 // TODO(pbos): Add info on currently-received codec to Stats. | 209 // TODO(pbos): Add info on currently-received codec to Stats. |
209 virtual Stats GetStats() const = 0; | 210 virtual Stats GetStats() const = 0; |
210 | 211 |
| 212 // Takes ownership of the file, is responsible for closing it later. |
| 213 // Calling this method will close and finalize any current log. |
| 214 // Giving rtc::kInvalidPlatformFileValue disables logging. |
| 215 virtual void SetLogFile( |
| 216 rtc::PlatformFile file = rtc::kInvalidPlatformFileValue) = 0; |
| 217 |
211 protected: | 218 protected: |
212 virtual ~VideoReceiveStream() {} | 219 virtual ~VideoReceiveStream() {} |
213 }; | 220 }; |
214 | 221 |
215 } // namespace webrtc | 222 } // namespace webrtc |
216 | 223 |
217 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 224 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
OLD | NEW |