Wowza Community

Issue Trying to Get WebRTC Example Working _ SDP URL seems incorrect

I am running Wowza locally on my MAC. I have a valid license. I download the WebRTC trial. I created a StreamLock certificate and made the necessary changes to the various configuration files. I also enabled the local Wowza http server. I am using the following SDP URL:

wss://10.0.0.36:1935/webrtc-session.json

The browser is not able to connect. When I try to publish I get the following error:

WebSocket connection to ‘wss://10.0.0.36:1935/webrtc-session.json’ failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR

10.0.0.36 is the IP address of the machine and the IP address I used in creating the certificate. i tried using the certificate name as well. I tried without port also and got the following error:

WebSocket connection to ‘wss://10.0.0.36/webrtc-session.json’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED. Definitely need to use a port - look at what was listening on my machine and 1935 seems to be the only port I would use.

What should the SDP URL be? Also do I need to configure a stream through the Wowza interface?

Thanks,

Tim McClure

Hello,

You will not be adding port 1935 as that is for RTP streaming for WebRTC.

Your SDP URL needs to look something like this:

wss://5555555555.streamlock.net/webrtc-session.json

If you use the “publish” example you will not need to create a stream.

If you are having further issues, please open a support case, along with the below folders for review:

[install-dir]/conf

[install-dir]/logs (only latest logs showing connection attempts is needed)

[install-dir]/htdocs

If you are not sure how to get this information please see the following tutorial.

https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux

If files are too big for email transport, please send a link to the files.

Regards,

JasonT

Do I need to use wss://***.streamlock.net/webrtc-session.json only? can I use my custom…?

If you mean custom SSL certificate, yes you can:
https://www.wowza.com/docs/how-to-request-an-ssl-certificate-from-a-certificate-authority

If you mean custom Websocket server, you’ll need to use Wowza’s version that can be overrided:
https://www.wowza.com/docs/control-access-to-webrtc-publishing-and-playback#enhance-webrtc-publishing-and-playback-security-with-a-custom-http-provider7

1 Like