| 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/rtp_transceiver_interface.h" |
| 12 |
| 13 | #include "rtc_base/checks.h" |
| 14 |
| 15 | namespace webrtc { |
| 16 |
| 17 | RtpTransceiverInit::RtpTransceiverInit() = default; |
| 18 |
| 19 | RtpTransceiverInit::RtpTransceiverInit(const RtpTransceiverInit& rhs) = default; |
| 20 |
| 21 | RtpTransceiverInit::~RtpTransceiverInit() = default; |
| 22 |
| 23 | absl::optional<RtpTransceiverDirection> |
| 24 | RtpTransceiverInterface::fired_direction() const { |
| 25 | return absl::nullopt; |
| 26 | } |
| 27 |
| 28 | bool RtpTransceiverInterface::stopping() const { |
| 29 | return false; |
| 30 | } |
| 31 |
| 32 | void RtpTransceiverInterface::Stop() { |
| 33 | StopInternal(); |
| 34 | } |
| 35 |
| 36 | RTCError RtpTransceiverInterface::StopStandard() { |
| 37 | RTC_NOTREACHED() << "DEBUG: RtpTransceiverInterface::StopStandard called"; |
| 38 | return RTCError::OK(); |
| 39 | } |
| 40 |
| 41 | void RtpTransceiverInterface::StopInternal() { |
| 42 | RTC_NOTREACHED() << "DEBUG: RtpTransceiverInterface::StopInternal called"; |
| 43 | } |
| 44 |
| 45 | RTCError RtpTransceiverInterface::SetCodecPreferences( |
| 46 | rtc::ArrayView<RtpCodecCapability>) { |
| 47 | RTC_NOTREACHED() << "Not implemented"; |
| 48 | return {}; |
| 49 | } |
| 50 |
| 51 | std::vector<RtpCodecCapability> RtpTransceiverInterface::codec_preferences() |
| 52 | const { |
| 53 | return {}; |
| 54 | } |
| 55 |
| 56 | std::vector<RtpHeaderExtensionCapability> |
| 57 | RtpTransceiverInterface::HeaderExtensionsToOffer() const { |
| 58 | return {}; |
| 59 | } |
| 60 |
| 61 | webrtc::RTCError RtpTransceiverInterface::SetOfferedRtpHeaderExtensions( |
| 62 | rtc::ArrayView<const RtpHeaderExtensionCapability> |
| 63 | header_extensions_to_offer) { |
| 64 | return webrtc::RTCError(webrtc::RTCErrorType::UNSUPPORTED_OPERATION); |
| 65 | } |
| 66 |
| 67 | // TODO(bugs.webrtc.org/11839) Remove default implementations when clients |
| 68 | // are updated. |
| 69 | void RtpTransceiverInterface::SetDirection( |
| 70 | RtpTransceiverDirection new_direction) { |
| 71 | SetDirectionWithError(new_direction); |
| 72 | } |
| 73 |
| 74 | RTCError RtpTransceiverInterface::SetDirectionWithError( |
| 75 | RtpTransceiverDirection new_direction) { |
| 76 | RTC_NOTREACHED() << "Default implementation called"; |
| 77 | return RTCError::OK(); |
| 78 | } |
| 79 |
| 80 | } // namespace webrtc |
| 81 |