 Chromium Code Reviews
 Chromium Code Reviews Issue 131763002:
  Adds MediaStreamSource, MediaStreamAudioSource and MediaStreamVideoCaptureDeviceSource  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 131763002:
  Adds MediaStreamSource, MediaStreamAudioSource and MediaStreamVideoCaptureDeviceSource  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
2014
 
perkj_chrome
2014/01/17 13:19:45
Done.
 | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ | |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ | |
| 7 | |
| 8 #include <vector> | |
| 
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
not needed
 
perkj_chrome
2014/01/17 13:19:45
Done.
 | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "content/common/content_export.h" | |
| 12 #include "content/renderer/media/media_stream_video_source.h" | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 // MediaStreamVideoCaptureDeviceSource is an implementation of | |
| 17 // MediaStreamVideoSource for local video capture. | |
| 18 // TODO(perkj): Currently, this use RTCVideoCapturer and a libjingle | |
| 19 // implementation of webrt::MediaStreamSourceInterface. Implement this class | |
| 20 // without using cricket::VideoCapturer and webrtc::VideoSourceInterface as | |
| 21 // part of project Piranha Plant. | |
| 22 class CONTENT_EXPORT MediaStreamVideoCaptureDeviceSource | |
| 
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
Maybe CapturerMediaStreamVideoSource instead of Me
 
Jói
2014/01/17 08:57:08
+1
 
perkj_chrome
2014/01/17 13:19:45
Done.
 | |
| 23 : public MediaStreamVideoSource { | |
| 24 public: | |
| 25 MediaStreamVideoCaptureDeviceSource( | |
| 26 const StreamDeviceInfo& device_info, | |
| 27 const SourceStoppedCallback& stop_callback, | |
| 28 MediaStreamDependencyFactory* factory); | |
| 29 virtual ~MediaStreamVideoCaptureDeviceSource(); | |
| 30 | |
| 31 protected: | |
| 32 virtual void Init(const blink::WebMediaConstraints& constraints) OVERRIDE; | |
| 
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
why protected? who's going to call?
 
perkj_chrome
2014/01/17 13:19:45
See new implementation of MediaStreamSource::AddTr
 | |
| 33 }; | |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ | |
| OLD | NEW |