EricssonResearch / EricssonResearch/openwebrtc-examples

Peer terminate call event by WebRTC on iOS

Open
#81 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
336
Forks
209
PR merge metrics
No merged PRs in 30d

Description

I have run ios/NativeDemo project on my iPhone, and it worked perfectly.
However, I find that when my WebRTC peer taps 'Hangup' button to terminate the call, I will be noticed this thing by EventSource, not WebRTC itself.
In Javascript, we have WebRTC disconnect event to know when the peer disconnects like below.

```
pc.oniceconnectionstatechange = function() {
if(pc.iceConnectionState == 'disconnected') {
console.log('Disconnected');
}
}
```

So, I think there should be a way to implement it like Javascript.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.