Danil Chapovalov | 2a5ce2b | 2018-02-07 08:38:31 | [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 | |
| 11 | #include "api/rtpreceiverinterface.h" |
| 12 | |
| 13 | namespace webrtc { |
| 14 | |
| 15 | RtpSource::RtpSource(int64_t timestamp_ms, |
| 16 | uint32_t source_id, |
| 17 | RtpSourceType source_type) |
| 18 | : timestamp_ms_(timestamp_ms), |
| 19 | source_id_(source_id), |
| 20 | source_type_(source_type) {} |
| 21 | |
| 22 | RtpSource::RtpSource(int64_t timestamp_ms, |
| 23 | uint32_t source_id, |
| 24 | RtpSourceType source_type, |
| 25 | uint8_t audio_level) |
| 26 | : timestamp_ms_(timestamp_ms), |
| 27 | source_id_(source_id), |
| 28 | source_type_(source_type), |
| 29 | audio_level_(audio_level) {} |
| 30 | |
| 31 | RtpSource::RtpSource(const RtpSource&) = default; |
| 32 | RtpSource& RtpSource::operator=(const RtpSource&) = default; |
| 33 | RtpSource::~RtpSource() = default; |
| 34 | |
Henrik Boström | 199e27b | 2018-07-04 18:51:53 | [diff] [blame] | 35 | std::vector<std::string> RtpReceiverInterface::stream_ids() const { |
| 36 | return {}; |
| 37 | } |
| 38 | |
Danil Chapovalov | 2a5ce2b | 2018-02-07 08:38:31 | [diff] [blame] | 39 | std::vector<rtc::scoped_refptr<MediaStreamInterface>> |
| 40 | RtpReceiverInterface::streams() const { |
| 41 | return {}; |
| 42 | } |
| 43 | |
| 44 | std::vector<RtpSource> RtpReceiverInterface::GetSources() const { |
| 45 | return {}; |
| 46 | } |
| 47 | |
Benjamin Wright | d81ac95 | 2018-08-30 00:02:10 | [diff] [blame] | 48 | void RtpReceiverInterface::SetFrameDecryptor( |
| 49 | rtc::scoped_refptr<FrameDecryptorInterface> frame_decryptor) {} |
| 50 | |
| 51 | rtc::scoped_refptr<FrameDecryptorInterface> |
| 52 | RtpReceiverInterface::GetFrameDecryptor() const { |
| 53 | return nullptr; |
| 54 | } |
| 55 | |
Danil Chapovalov | 2a5ce2b | 2018-02-07 08:38:31 | [diff] [blame] | 56 | } // namespace webrtc |