OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static rtc::scoped_refptr<VideoSource> Create( | 67 static rtc::scoped_refptr<VideoSource> Create( |
68 cricket::ChannelManager* channel_manager, | 68 cricket::ChannelManager* channel_manager, |
69 cricket::VideoCapturer* capturer, | 69 cricket::VideoCapturer* capturer, |
70 const webrtc::MediaConstraintsInterface* constraints, | 70 const webrtc::MediaConstraintsInterface* constraints, |
71 bool remote); | 71 bool remote); |
72 | 72 |
73 SourceState state() const override { return state_; } | 73 SourceState state() const override { return state_; } |
74 bool remote() const override { return remote_; } | 74 bool remote() const override { return remote_; } |
75 | 75 |
76 virtual const cricket::VideoOptions* options() const { return &options_; } | 76 virtual const cricket::VideoOptions* options() const { return &options_; } |
77 virtual cricket::VideoRenderer* FrameInput(); | |
78 | 77 |
79 virtual cricket::VideoCapturer* GetVideoCapturer() { | 78 virtual cricket::VideoCapturer* GetVideoCapturer() { |
80 return video_capturer_.get(); | 79 return video_capturer_.get(); |
81 } | 80 } |
82 | 81 |
83 void Stop() override; | 82 void Stop() override; |
84 void Restart() override; | 83 void Restart() override; |
85 | 84 |
86 // |output| will be served video frames as long as the underlying capturer | 85 // |output| will be served video frames as long as the underlying capturer |
87 // is running video frames. | 86 // is running video frames. |
(...skipping 20 matching lines...) Expand all Loading... |
108 | 107 |
109 cricket::VideoFormat format_; | 108 cricket::VideoFormat format_; |
110 cricket::VideoOptions options_; | 109 cricket::VideoOptions options_; |
111 SourceState state_; | 110 SourceState state_; |
112 const bool remote_; | 111 const bool remote_; |
113 }; | 112 }; |
114 | 113 |
115 } // namespace webrtc | 114 } // namespace webrtc |
116 | 115 |
117 #endif // TALK_APP_WEBRTC_VIDEOSOURCE_H_ | 116 #endif // TALK_APP_WEBRTC_VIDEOSOURCE_H_ |
OLD | NEW |