blob: 7267b286be6bb3eca8f0d4066d0c28f0dbee2565 [file] [log] [blame]
Mirko Bonadei79eb4dd2018-07-19 08:39:301/*
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 17:11:0011#include "api/rtp_transceiver_interface.h"
Mirko Bonadei79eb4dd2018-07-19 08:39:3012
Yves Gerey988cc082018-10-23 10:03:0113#include "rtc_base/checks.h"
14
Mirko Bonadei79eb4dd2018-07-19 08:39:3015namespace webrtc {
16
17RtpTransceiverInit::RtpTransceiverInit() = default;
18
Mirko Bonadei2ffed6d2018-07-20 09:09:3219RtpTransceiverInit::RtpTransceiverInit(const RtpTransceiverInit& rhs) = default;
20
Mirko Bonadei79eb4dd2018-07-19 08:39:3021RtpTransceiverInit::~RtpTransceiverInit() = default;
22
23absl::optional<RtpTransceiverDirection>
24RtpTransceiverInterface::fired_direction() const {
25 return absl::nullopt;
26}
27
Harald Alvestrand6060df52020-08-11 07:54:0228bool RtpTransceiverInterface::stopping() const {
29 return false;
30}
31
32void RtpTransceiverInterface::Stop() {
33 StopInternal();
34}
35
36RTCError RtpTransceiverInterface::StopStandard() {
Artem Titovd3251962021-11-15 15:57:0737 RTC_DCHECK_NOTREACHED()
38 << "DEBUG: RtpTransceiverInterface::StopStandard called";
Harald Alvestrand6060df52020-08-11 07:54:0239 return RTCError::OK();
40}
41
42void RtpTransceiverInterface::StopInternal() {
Artem Titovd3251962021-11-15 15:57:0743 RTC_DCHECK_NOTREACHED()
44 << "DEBUG: RtpTransceiverInterface::StopInternal called";
Harald Alvestrand6060df52020-08-11 07:54:0245}
46
Harald Alvestrand6060df52020-08-11 07:54:0247// TODO(bugs.webrtc.org/11839) Remove default implementations when clients
48// are updated.
49void RtpTransceiverInterface::SetDirection(
50 RtpTransceiverDirection new_direction) {
51 SetDirectionWithError(new_direction);
52}
53
54RTCError RtpTransceiverInterface::SetDirectionWithError(
55 RtpTransceiverDirection new_direction) {
Artem Titovd3251962021-11-15 15:57:0756 RTC_DCHECK_NOTREACHED() << "Default implementation called";
Harald Alvestrand6060df52020-08-11 07:54:0257 return RTCError::OK();
58}
59
Mirko Bonadei79eb4dd2018-07-19 08:39:3060} // namespace webrtc