VLprojects / mediasoup-client-swift

Swift wrapper for libmediasoupclient
MIT License
42 stars 17 forks source link

Mobile Network Streaming Issue #19

Open lets-swapcode opened 1 year ago

lets-swapcode commented 1 year ago

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 commented 1 year ago

Unable to figure this out. Did you got the chance to look this out?