| OLD | NEW |
| (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 |
| OLD | NEW |