OpenVidu/WebRTC and iOS background processes

120 views
Skip to first unread message

carter...@nexxtgenit.com

unread,
Dec 30, 2019, 7:33:03 PM12/30/19
to OpenVidu
The details:

OpenVidu: 2.11.0
iOS: 13.3 / Xcode: 11.3
Android 10
Web:Chromium 79.0.3945.88

I am using the official OpenVidu Ionic tutorial. https://openvidu.io/docs/tutorials/openvidu-ionic/. I have not modified the source code.

The tutorial works wonderfully on all three platforms. 

But here is the problem, whenever my iOS app goes in the the background the webRTC communication is terminated. Not only that but when I monitor the server webhooks I am able to see a "webrtcConnectionDestroyed" event followed by a "participantLeft" event.
On Android the connection is maintained even when the app is in the background or the screen is locked. Obviously the video goes away but the audio persists (which is the behavior i desire).

So I have a few questions:

1) Is this the intended behavior?
2) If not is there anyway to maintain the webRTC connection when the app goes into the background?


Cheers,

Carter

Micael Gallego

unread,
Jan 2, 2020, 5:42:15 AM1/2/20
to carter...@nexxtgenit.com, OpenVidu
Hello Carter, 

We have no control on what iOS and Android is doing with the app when it goes to background. The behavior you describe seems to be the standard behavior in both platforms. 

Maybe you can force to iOS to avoid "stopping" the application when it goes to background... but I don't know if it is possible at all. You know... Apple ;)

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead


--
You received this message because you are subscribed to the Google Groups "OpenVidu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/090ea59a-ab59-4162-845e-cab1a85afe3b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages