Jump to content
  • 0

Using AntMediaReferenceApplication for WebRTC demo

Devin Smaldore


Hi all,

I am trying to run the iOS version of the AntMediaReferenceApplication just to test out what WebRTC is like. I have my serveer up and running on Google Cloud using this link. I enabled SSL connection using this link. When I access antmedia login page using domain:5080, I go to WebRTCApp, new live stream > Name: devin, streamId: firststream. I then go to my domain and add an A record with my server's IP address. Next, I start up the iOS application and use the following URL "ws://domain:5080/webrtcapp/websocket". I add the stream-id (firststream) to the room textfield in the application and click connect with the Publish option selected.

Nothing happens. Upon debugging, I can see that in the VideoController's delegate, the onDisconnect function is called with message "Invalid HTTP upgrade". What does this error mean? Can anyone help me debug this issue, that would be very useful.

Thank you very much in advance,
Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

When changing URL to wss://domain:5080/webrtcapp/websocket, the message I get back in VideoViewController's clientDidDisconnect delegate callback is "

Ant Media[6984:2180609] TCP Conn 0x2816d8840 SSLHandshake failed (-9847)

"--> AntMediaSDK: WebSocketDelegate->Disconnected connected: false Optional(false)"

VideoViewController: Disconnected: The operation couldn’t be completed. (OSStatus error -9847.)

"--> AntMediaSDK: Stop is called"


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...