Wowza Community

IOS 15 WebRTC problem

We have a problem that our WebRTC application is not supported in Safari on iOS 15. It works fine on iOS 14.x.
Both on our production and test environment we get the same error in Safari developer console:
“WebSocket connection to ‘wss://[our servers ip address]:443/webrtc-session.json’ failed. The operation could not be completed. Socket is not connected.”

Anyone else have this problem? anyone found a solution?

Support case is submitted to wowza support and wowza support has reproduced and confirmed the problem but not yet provided us with any workaround or solutions

We are also having this problem. It would be great to know how to fix this?

1 Like

Hey there @Mark_Malmros I see you are waiting on an update for this in your ticket and I sent a mesage to technical support letting them know you are eager for a solution.

What I can suggest is you hop over to our public WebRTC slack channel where we have over 3000 developers and engineers from around the world discussing what they have built and obstacles they have overcome with their own WebRTC applications. Might be worth asking in there. They do discuss mobile a lot and webrtc can be a bit tricky depending on the OS as you are finding out.

You can join here:

we dont get email’s when signing up for / slack - it does provide us after entering email with a message " to check mail" but nothing ever arrives in my inbox ? - any suggestion ?

So I have an update for you on the WebRTC iOS 15 issue:

Apple has posted about this bug in their forums:

Wowza will do what we can in the meantime of course. I can share a possible workaround as well at the bottom of this post. NOTE: THIS IS NOT A SOLUTION RECOMMENDED BY WOWZA OR TECHNICAL SUPPORT.

(Thank you to our Community Member, Viesturs, for providing this suggestion for many of you to try out!!)


https://developer.apple.com/forums/thread/689293


The issue is basically that iOS 15 is using fragmented websockets which will not work with Engine WebRTC setup. What you can try is this and some developers have reported this solved it for them- is convert it to single frames.


Putting middleware which converts all fragmented to single-frames between clients and WSE engine for both-directions eliminates the issue

By putting in-front of WSE a WSS middleware which never fragments messages sent to WSE (https://datatracker.ietf.org/doc/html/rfc6455#section-5.7) issue is resolved.

datatracker.ietf.orgdatatracker.ietf.org

The WebSocket Protocol (RFC )

So, iOS 15 sends fragmented, but middleware receives and sends further single-frame, WSE happy, iOS 15 happy.

we have the same ISSUE.

Hi Alex sorry your post was caught up in the queue awaiting approval. It does that for a first post that is short. I hope the option provided works for you, If you need help setting that up, please send a support ticket.

Hey! How are you?
Are there any news - do you plan fix this problem on WSE backend? Or we should create Middlware for fixing this problem, We believe that you can solve problem in 1-2 weeks on your side or its unreal?

Hi Alex, no that suggestion for middleware is not supported by Wowza and we have not tested it. That was just a suggestion from a comumunity developer. I was just sharing that in case it helps some of you.

Wowza is investigating this issue with Apple’s bug and I have not yet been given a timeline for a solution.

Hi,

Any update here from Wowza side? Or did anybody managed to solve it using the middleware implementation and can share his solution?
The link mentioned in this thread, didn’t help me to understand the solution (https://datatracker.ietf.org/doc/html/rfc6455#section-5.7)
And I couldn’t find any other mentions of this middleware to convert fragmented to single-frames, over the net.

Thanks.