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

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

Issue 1514143003: Add support for unmixed audio from remote WebRTC remote tracks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix other include Created 5 years 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
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_track.h"
6
7 #include "base/logging.h"
8 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h"
10
11 namespace content {
12
13 MediaStreamAudioTrack::MediaStreamAudioTrack(bool is_local_track)
14 : MediaStreamTrack(is_local_track) {
15 }
16
17 MediaStreamAudioTrack::~MediaStreamAudioTrack() {
18 }
19
20 // static
21 MediaStreamAudioTrack* MediaStreamAudioTrack::GetTrack(
22 const blink::WebMediaStreamTrack& track) {
23 if (track.isNull() ||
24 track.source().type() != blink::WebMediaStreamSource::TypeAudio) {
25 return nullptr;
26 }
27 return static_cast<MediaStreamAudioTrack*>(track.extraData());
28 }
29
30 webrtc::AudioTrackInterface* MediaStreamAudioTrack::GetAudioAdapter() {
31 NOTREACHED();
32 return nullptr;
33 }
34
35 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_track.h ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698