Commit a103e558 authored by Luci Stanescu's avatar Luci Stanescu

Added ICE related status messages

parent b4d1ac01
......@@ -412,6 +412,14 @@ class SessionItem(QObject):
handler = getattr(self, '_NH_%s' % notification.name, Null)
handler(notification)
def _NH_AudioStreamICENegotiationStateDidChange(self, notification):
if notification.data.state == 'ICE Candidates Gathering':
self.status = Status('Gathering ICE Candidates')
elif notification.data.state == 'ICE Session Initialized':
self.status = Status('Connecting...')
elif notification.data.state == 'ICE Negotiation In Progress':
self.status = Status('Negotiating ICE')
def _NH_AudioStreamGotDTMF(self, notification):
digit_map = {'*': 'star'}
filename = 'sounds/dtmf_%s_tone.wav' % digit_map.get(notification.data.digit, notification.data.digit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment