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

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: Addressed review comments from xians. 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 SourceStoppedCallback& 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 audio_capturer_->Stop();
22 }
23
24 void MediaStreamAudioSource::AddTrack(
25 const blink::WebMediaStreamTrack& track,
26 const blink::WebMediaConstraints& constraints,
27 const ConstraintsCallback& callback) {
28 // TODO(xians): Implement for audio sources.
29 NOTIMPLEMENTED();
30 callback.Run(this, true);
31 }
32
33 void MediaStreamAudioSource::RemoveTrack(
34 const blink::WebMediaStreamTrack& track) {
35 NOTIMPLEMENTED();
36 }
37
38 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698