mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 22:00:47 +01:00

So far the code assumed that there is only one implementation of AudioSourceInterface: LocalAudioSource. That is not true. This change allows custom implementations to still set options (such as audio network adaptation) on the source. Long term solution should include refactoring options so that they are passed to peer connection or call object, and not be defined on audio source. Bug: webrtc:9719 Change-Id: Ic3b92219502bc73a964adbbb9c5cd7156aa382e1 Reviewed-on: https://webrtc-review.googlesource.com/c/110681 Commit-Queue: Peter Slatala <psla@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25626}
37 lines
1 KiB
C++
37 lines
1 KiB
C++
/*
|
|
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "api/mediastreaminterface.h"
|
|
#include "rtc_base/checks.h"
|
|
#include "rtc_base/logging.h"
|
|
|
|
namespace webrtc {
|
|
|
|
const char MediaStreamTrackInterface::kVideoKind[] = "video";
|
|
const char MediaStreamTrackInterface::kAudioKind[] = "audio";
|
|
|
|
VideoTrackInterface::ContentHint VideoTrackInterface::content_hint() const {
|
|
return ContentHint::kNone;
|
|
}
|
|
|
|
bool AudioTrackInterface::GetSignalLevel(int* level) {
|
|
return false;
|
|
}
|
|
|
|
rtc::scoped_refptr<AudioProcessorInterface>
|
|
AudioTrackInterface::GetAudioProcessor() {
|
|
return nullptr;
|
|
}
|
|
|
|
const cricket::AudioOptions AudioSourceInterface::options() const {
|
|
return {};
|
|
}
|
|
|
|
} // namespace webrtc
|