mediasoup-client-swift icon indicating copy to clipboard operation
mediasoup-client-swift copied to clipboard

Mobile Network Streaming Issue

Open lets-swapcode opened this issue 1 year ago • 1 comments

This observation has been present since day 1 of integrating the library, but our focus was primarily on the integration itself, and therefore, we used Wi-Fi to ensure functionality. However, now that we have our product ready, we need to ensure mobile network support as well.

I find it intriguing that everything works smoothly on Wi-Fi, including streaming capabilities. On mobile, I can successfully join and retrieve user information via the socket, but I encounter issues when attempting to stream or receive the feed.

The 'Transport onConnectionState' consistently returns a failed status, and even the socket struggles to reconnect.

According to the Mediasoup forum, it's suggested that using a TURN server might resolve this. It's worth mentioning that we do have a TURN server in place, and it's effectively working for Android and web platforms.

Here are the relevant forum threads for reference:

iOS iPhone can't connect under 4g/5g network Mediasoup not working on mobile data or hotspot and not connecting to the client, especially on IPv6 address, connecting to another peer at IPv4

Do you have any insights or suggestions regarding this matter? Your input would be greatly appreciated.

lets-swapcode avatar Aug 24 '23 12:08 lets-swapcode