[Unified Plan] Implement FiredDirection for RtpTransceiver

Bug: webrtc:9236
Change-Id: Ib5a8215f3762f35b68d2a285c7d676f93f1212c5
Reviewed-on: https://webrtc-review.googlesource.com/88921
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24010}
This commit is contained in:
Steve Anton
2018-07-17 14:25:36 -07:00
parent dbdb3a0079
commit 0f5400acfa
7 changed files with 146 additions and 59 deletions

View File

@ -184,6 +184,10 @@ void RtpTransceiver::set_current_direction(RtpTransceiverDirection direction) {
}
}
void RtpTransceiver::set_fired_direction(RtpTransceiverDirection direction) {
fired_direction_ = direction;
}
bool RtpTransceiver::stopped() const {
return stopped_;
}
@ -208,6 +212,11 @@ absl::optional<RtpTransceiverDirection> RtpTransceiver::current_direction()
return current_direction_;
}
absl::optional<RtpTransceiverDirection> RtpTransceiver::fired_direction()
const {
return fired_direction_;
}
void RtpTransceiver::Stop() {
for (auto sender : senders_) {
sender->internal()->Stop();