WebRTC trial - Missing file webrtc-session.json

I am trying to get the webRTC trial to work but in get the following error in the browser when I try to publish the stream:

webrtc.js:129 WebSocket connection to ‘wss://585ad138d5b60.streamlock.net:9443/webrtc-session.json’ failed: Error during WebSocket handshake: Unexpected response code: 404

wsConnect @ webrtc.js:129

startPublisher @ webrtc.js:237

start @ webrtc.js:260

onclick @ index.html:20

I also get the following error in the server logs:

2017-01-05

15:30:07 (EST)

comment

server (500)

HTTPProviderSimpleWebServer.onHTTPRequest: File missing: /Library/WowzaStreamingEngine/htdocs/webrtc-session.json

I noticed some else was experiencing this issue and the solution seem to be inserting the following line into the webrtc.js file:

var postURL = “https://585ad138d5b60.streamlock.net/webrtc-session.json”;

This did not solve the issue for me. I do not have the file webrtc-session.json everywhere on the system as far as I can tell. Any help with this issue would be greatly appreciated.

Thanks,

Tim McClure

Hello,

The correct variable in webrtc.js for the new WebRTC Preview is: var wsURL = “https://585ad138d5b60.streamlock.net/webrtc-session.json”;

If this is changed it will cause issues.

The correct path for the Simple Web Server html files is: [install-dir]/htdocs/webrtc then you empty the contents of the html folder in the WebRTC download package into the webrtc folder(chat, img, js, play, publish).

The webrtc-session.json is loaded with this step(it does not need to be installed since it’s part of the install):

Configure HTTPProvider for SDP exchange: Add the following XML snippet as the second to last entry in the list of HTTPProviders for HostPort entry 443 (SSL port). It is important that it is the second to last entry:

com.wowza.wms.webrtc.http.HTTPWebRTCExchangeSessionInfo

*webrtc-session.json

none

Please restart your Wowza Server when making changes.

If this does not help please open a support case with the below info:

[install-dir]/conf

[install-dir]/logs

[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