Unity web socket error

130 views
Skip to first unread message

Vinicius Ribeiro

unread,
Aug 10, 2021, 9:41:51 AM8/10/21
to Ant Media Server
Hello, hope this email finds you well.

Our company is trying to use Sora Unity SDK with Ant Media for Web RTC streams. We are facing a problem with this release. We can't connect to the web socket.

We see this error on server side (with our app and the sample provided):

2021-08-09 15:04:45,200 [http-nio2-0.0.0.0-5080-exec-14] ERROR i.a.e.w.WebSocketEnterpriseHandler - Received message does not contain any command for session id: 14f4, message:{"type":"connect","role":"recvonly","multistream":false,"spotlight":false,"simulcast":false,"channel_id":"816736623406692027287689","sora_client":"Sora Unity SDK 2021.3 (78524c53)","libwebrtc":"Shiguredo-build M92.4515@{#9} (92.4515.9.1 2d3ba085)","environment":"Unity 2020.3.8f1 for Windows","video":{"codec_type":"VP8","bit_rate":1500},"audio":{"codec_type":"OPUS"}}

I tried some changes on sora.cpp but with no luck.

Any ideas/thoughts on what we are missing?

Thank you in advance!

With best regards,
Vinicius Ribeiro.

Tahir Gölge

unread,
Aug 16, 2021, 2:51:37 PM8/16/21
to Ant Media Server
Hi,

We have a Unity SDK that is developed specifically for Ant Media Server. This library needs quite a bit changes to work with Ant Media. If you don't have access to our Unity SDK you can ask for it sending an e-mail to sup...@antmedia.io 

Cheers

Vinicius Ribeiro

unread,
Aug 17, 2021, 7:36:44 AM8/17/21
to Ant Media Server
Hi, thanks for the reply.

We already used this specifically Unity SDK. We faced several crashes when stopping the stream and exiting the application. The problems include the Unity SDK dll memory access violation and Microsoft Visual C++ crashes:

SoraUnitySdk.dll caused an Access Violation (0xc0000005)
  in module SoraUnitySdk.dll at 0033:e6c356c4.

Than we tried to used a new version of Sora SDK and faced the problem mentioned above.

We managed to solve the Visual C++ crashes, but the problem at closing the application still occurs occasionally.

Tahir Gölge

unread,
Aug 19, 2021, 4:06:40 AM8/19/21
to Ant Media Server
Hi Vinicius,

Thank you for your explanation.

Can you create an issue about your problem from github ( https://github.com/ant-media/Ant-Media-Server/issues/new?assignees=&labels=&template=bug_report.md&title= ) so that we can plan the issue in the sprints.

Cheers

Tiago Morais

unread,
Sep 17, 2021, 9:52:46 AM9/17/21
to Ant Media Server
Hi, we are still experiencing crashes as reported above. I created a github issue https://github.com/ant-media/Ant-Media-Server/issues/3627
Can you please take a look?

Thank you,
Tiago Morais.
Reply all
Reply to author
Forward
0 new messages