summary refs log tree commit diff
path: root/src/ActiveCallBar.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-26 10:59:50 -0400
committertrilene <trilene@runbox.com>2020-07-26 10:59:50 -0400
commit43ec0c062467c05a66eac7a3fb992bc093315c89 (patch)
treed90f85eb42e4d07d31c2aa46906ebb9c21179c86 /src/ActiveCallBar.cpp
parentImprove debug messages (diff)
downloadnheko-43ec0c062467c05a66eac7a3fb992bc093315c89.tar.xz
Handle ICE failure
Diffstat (limited to 'src/ActiveCallBar.cpp')
-rw-r--r--src/ActiveCallBar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ActiveCallBar.cpp b/src/ActiveCallBar.cpp

index 564842da..e55b2e86 100644 --- a/src/ActiveCallBar.cpp +++ b/src/ActiveCallBar.cpp
@@ -123,25 +123,32 @@ ActiveCallBar::update(WebRTCSession::State state) { switch (state) { case WebRTCSession::State::INITIATING: + show(); stateLabel_->setText("Initiating call..."); break; case WebRTCSession::State::INITIATED: + show(); stateLabel_->setText("Call initiated..."); break; case WebRTCSession::State::OFFERSENT: + show(); stateLabel_->setText("Calling..."); break; case WebRTCSession::State::CONNECTING: + show(); stateLabel_->setText("Connecting..."); break; case WebRTCSession::State::CONNECTED: + show(); callStartTime_ = QDateTime::currentSecsSinceEpoch(); timer_->start(1000); stateLabel_->setText("Voice call:"); durationLabel_->setText("00:00"); durationLabel_->show(); break; + case WebRTCSession::State::ICEFAILED: case WebRTCSession::State::DISCONNECTED: + hide(); timer_->stop(); callPartyLabel_->setText(QString()); stateLabel_->setText(QString());