OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 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_API_VIDEOTRACKSOURCE_H_ | 11 #ifndef WEBRTC_API_VIDEOTRACKSOURCE_H_ |
12 #define WEBRTC_API_VIDEOTRACKSOURCE_H_ | 12 #define WEBRTC_API_VIDEOTRACKSOURCE_H_ |
13 | 13 |
14 #include "webrtc/api/mediastreaminterface.h" | |
15 #include "webrtc/api/notifier.h" | 14 #include "webrtc/api/notifier.h" |
| 15 #include "webrtc/api/videosourceinterface.h" |
16 #include "webrtc/media/base/mediachannel.h" | 16 #include "webrtc/media/base/mediachannel.h" |
17 #include "webrtc/media/base/videosinkinterface.h" | 17 #include "webrtc/media/base/videosinkinterface.h" |
18 | 18 |
19 // VideoTrackSource implements VideoTrackSourceInterface. | 19 // VideoTrackSource implements VideoTrackSourceInterface. |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 class VideoTrackSource : public Notifier<VideoTrackSourceInterface> { | 22 class VideoTrackSource : public Notifier<VideoTrackSourceInterface> { |
23 public: | 23 public: |
24 VideoTrackSource(rtc::VideoSourceInterface<cricket::VideoFrame>* source, | 24 VideoTrackSource(rtc::VideoSourceInterface<cricket::VideoFrame>* source, |
25 rtc::Thread* worker_thread, | 25 rtc::Thread* worker_thread, |
(...skipping 26 matching lines...) Expand all Loading... |
52 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; | 52 rtc::VideoSourceInterface<cricket::VideoFrame>* source_; |
53 rtc::Thread* worker_thread_; | 53 rtc::Thread* worker_thread_; |
54 cricket::VideoOptions options_; | 54 cricket::VideoOptions options_; |
55 SourceState state_; | 55 SourceState state_; |
56 const bool remote_; | 56 const bool remote_; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace webrtc | 59 } // namespace webrtc |
60 | 60 |
61 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ | 61 #endif // WEBRTC_API_VIDEOTRACKSOURCE_H_ |
OLD | NEW |