blob: adc832ba3865e5999e29a83b9e49581293b836dc [file] [log] [blame]
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +01001/*
2 * Copyright 2018 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Steve Anton10542f22019-01-11 09:11:00 -080011#include "api/rtp_receiver_interface.h"
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010012
13namespace webrtc {
14
15RtpSource::RtpSource(int64_t timestamp_ms,
16 uint32_t source_id,
Johannes Kronb5d91832019-05-21 13:19:22 +020017 RtpSourceType source_type,
18 absl::optional<uint8_t> audio_level,
19 uint32_t rtp_timestamp)
20 : timestamp_ms_(timestamp_ms),
21 source_id_(source_id),
22 source_type_(source_type),
23 audio_level_(audio_level),
24 rtp_timestamp_(rtp_timestamp) {}
25
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010026RtpSource::RtpSource(const RtpSource&) = default;
27RtpSource& RtpSource::operator=(const RtpSource&) = default;
28RtpSource::~RtpSource() = default;
29
Henrik Boström199e27b2018-07-04 20:51:53 +020030std::vector<std::string> RtpReceiverInterface::stream_ids() const {
31 return {};
32}
33
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010034std::vector<rtc::scoped_refptr<MediaStreamInterface>>
35RtpReceiverInterface::streams() const {
36 return {};
37}
38
39std::vector<RtpSource> RtpReceiverInterface::GetSources() const {
40 return {};
41}
42
Benjamin Wrightd81ac952018-08-29 17:02:10 -070043void RtpReceiverInterface::SetFrameDecryptor(
44 rtc::scoped_refptr<FrameDecryptorInterface> frame_decryptor) {}
45
46rtc::scoped_refptr<FrameDecryptorInterface>
47RtpReceiverInterface::GetFrameDecryptor() const {
48 return nullptr;
49}
50
Harald Alvestrand4a7b3ac2019-01-17 10:39:40 +010051rtc::scoped_refptr<DtlsTransportInterface>
52RtpReceiverInterface::dtls_transport() const {
53 return nullptr;
54}
55
Danil Chapovalov2a5ce2b2018-02-07 09:38:31 +010056} // namespace webrtc