Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 1 | /* |
| 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 Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #include "api/rtp_receiver_interface.h" |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 12 | |
| 13 | namespace webrtc { |
| 14 | |
| 15 | RtpSource::RtpSource(int64_t timestamp_ms, |
| 16 | uint32_t source_id, |
Johannes Kron | b5d9183 | 2019-05-21 13:19:22 +0200 | [diff] [blame] | 17 | 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 | |
| 26 | RtpSource::RtpSource(int64_t timestamp_ms, |
| 27 | uint32_t source_id, |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 28 | RtpSourceType source_type) |
| 29 | : timestamp_ms_(timestamp_ms), |
| 30 | source_id_(source_id), |
Johannes Kron | b5d9183 | 2019-05-21 13:19:22 +0200 | [diff] [blame] | 31 | source_type_(source_type), |
| 32 | rtp_timestamp_(0) {} |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 33 | |
| 34 | RtpSource::RtpSource(int64_t timestamp_ms, |
| 35 | uint32_t source_id, |
| 36 | RtpSourceType source_type, |
| 37 | uint8_t audio_level) |
| 38 | : timestamp_ms_(timestamp_ms), |
| 39 | source_id_(source_id), |
| 40 | source_type_(source_type), |
Johannes Kron | b5d9183 | 2019-05-21 13:19:22 +0200 | [diff] [blame] | 41 | audio_level_(audio_level), |
| 42 | rtp_timestamp_(0) {} |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 43 | |
| 44 | RtpSource::RtpSource(const RtpSource&) = default; |
| 45 | RtpSource& RtpSource::operator=(const RtpSource&) = default; |
| 46 | RtpSource::~RtpSource() = default; |
| 47 | |
Henrik Boström | 199e27b | 2018-07-04 20:51:53 +0200 | [diff] [blame] | 48 | std::vector<std::string> RtpReceiverInterface::stream_ids() const { |
| 49 | return {}; |
| 50 | } |
| 51 | |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 52 | std::vector<rtc::scoped_refptr<MediaStreamInterface>> |
| 53 | RtpReceiverInterface::streams() const { |
| 54 | return {}; |
| 55 | } |
| 56 | |
| 57 | std::vector<RtpSource> RtpReceiverInterface::GetSources() const { |
| 58 | return {}; |
| 59 | } |
| 60 | |
Benjamin Wright | d81ac95 | 2018-08-29 17:02:10 -0700 | [diff] [blame] | 61 | void RtpReceiverInterface::SetFrameDecryptor( |
| 62 | rtc::scoped_refptr<FrameDecryptorInterface> frame_decryptor) {} |
| 63 | |
| 64 | rtc::scoped_refptr<FrameDecryptorInterface> |
| 65 | RtpReceiverInterface::GetFrameDecryptor() const { |
| 66 | return nullptr; |
| 67 | } |
| 68 | |
Harald Alvestrand | 4a7b3ac | 2019-01-17 10:39:40 +0100 | [diff] [blame] | 69 | rtc::scoped_refptr<DtlsTransportInterface> |
| 70 | RtpReceiverInterface::dtls_transport() const { |
| 71 | return nullptr; |
| 72 | } |
| 73 | |
Danil Chapovalov | 2a5ce2b | 2018-02-07 09:38:31 +0100 | [diff] [blame] | 74 | } // namespace webrtc |