Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/renderer/media/media_stream_video_capture_device_source.h

Issue 131763002: Adds MediaStreamSource, MediaStreamAudioSource and MediaStreamVideoCaptureDeviceSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added MediaStreamAudioSource. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
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>
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
Alpha Left Google 2014/01/15 01:57:47 It looks like we need an implementation of MediaSt
perkj_chrome 2014/01/16 15:48:08 What do you mean by pepper in this case? The exten
23 : public MediaStreamVideoSource,
24 NON_EXPORTED_BASE(public webrtc::ObserverInterface),
25 NON_EXPORTED_BASE(public base::NonThreadSafe) {
26 public:
27 MediaStreamVideoCaptureDeviceSource(const StreamDeviceInfo& device_info,
28 const SourceStopCallback& stop_callback,
29 MediaStreamDependencyFactory* factory);
30 virtual ~MediaStreamVideoCaptureDeviceSource();
31
32 virtual void ApplyConstraints(const blink::WebMediaStreamTrack& track,
33 const blink::WebMediaConstraints& constraints,
34 const ConstraintsCallback& callback) OVERRIDE;
35 protected:
36 // Implements webrtc::Notifier.
37 virtual void OnChanged() OVERRIDE;
38
39 private:
40 void CheckIfWebRtcSourceIsLive();
41
42 bool initializing_;
43 blink::WebMediaConstraints current_constraints_;
44 std::vector<ConstraintsCallback> constraints_callbacks_;
45 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCaptureDeviceSource);
46 };
47
48 } // namespace content
49
50 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698