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

Side by Side Diff: content/renderer/media/media_stream_audio_source.cc

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 2014 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 #include "content/renderer/media/media_stream_audio_source.h"
6
7 namespace content {
8
9 MediaStreamAudioSource::MediaStreamAudioSource(
10 const StreamDeviceInfo& device_info,
11 const SourceStopCallback& stop_callback) {
12 SetDeviceInfo(device_info);
13 SetStopCallback(stop_callback);
14 }
15
16 MediaStreamAudioSource::MediaStreamAudioSource() {}
17
18 MediaStreamAudioSource::~MediaStreamAudioSource() {}
19
20 void MediaStreamAudioSource::DoStopSource() {
21 if (GetAudioCapturer())
22 GetAudioCapturer()->Stop();
23 }
24
25 void MediaStreamAudioSource::ApplyConstraints(
26 const blink::WebMediaStreamTrack& track,
27 const blink::WebMediaConstraints& constraints,
28 const ConstraintsCallback& callback) {
29 // TODO(xians): Implement for audio sources.
30 NOTIMPLEMENTED();
31 callback.Run(this, true);
32 }
33
34 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698