Jump to content
  • 0

Using AntMediaReferenceApplication for WebRTC demo


Devin Smaldore
 Share

Question

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,
Devin
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

 Share

×
×
  • Create New...