blob: 2b27b7489c227e44d2d469d6bbd1f2cb51c56b1c [file] [log] [blame]
/*
* Copyright 2018 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/rtp_sender_interface.h"
namespace webrtc {
void RtpSenderInterface::SetFrameEncryptor(
rtc::scoped_refptr<FrameEncryptorInterface> frame_encryptor) {}
rtc::scoped_refptr<FrameEncryptorInterface>
RtpSenderInterface::GetFrameEncryptor() const {
return nullptr;
}
std::vector<RtpEncodingParameters> RtpSenderInterface::init_send_encodings()
const {
return {};
}
rtc::scoped_refptr<DtlsTransportInterface> RtpSenderInterface::dtls_transport()
const {
return nullptr;
}
// TODO(amithi): Fix downstream dependencies and make GetParameters pure
// virtual.
RtpParameters RtpSenderInterface::GetParameters() {
const RtpSenderInterface* interface = this;
return interface->GetParameters();
}
RtpParameters RtpSenderInterface::GetParameters() const {
RtpSenderInterface* interface = const_cast<RtpSenderInterface*>(this);
return interface->GetParameters();
}
} // namespace webrtc