Results 1 to 2 of 2

Thread: WebRTC trial - Missing file webrtc-session.json

  1. #1

    Default 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

  2. #2
    Join Date
    Mar 2016
    Posts
    150

    Default

    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:
    <HTTPProvider>
    <BaseClass>com.wowza.wms.webrtc.http.HTTPWebRTCExchangeSessionInfo</BaseClass>
    <RequestFilters>*webrtc-session.json</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>

    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.
    http://www.wowza.com/forums/content....c-OS-and-Linux

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

    Regards,
    JasonT

Similar Threads

  1. WebRTC using WowzaStreamingEngine trial
    By OlegLem in forum General Forum
    Replies: 1
    Last Post: 01-03-2017, 11:34 AM
  2. WebRTC preview add on for the webrtc-session.json File
    By kelvinshee in forum General Forum
    Replies: 3
    Last Post: 12-20-2016, 10:09 AM
  3. Replies: 1
    Last Post: 11-23-2016, 10:59 AM
  4. webrtc-session.json File missing
    By Vanderhoffer in forum General Forum
    Replies: 1
    Last Post: 09-22-2016, 03:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •