Stream IP Cam (RTSP) on facebook through WCS

Discussion in 'Web Call Server 5' started by a.bonassi, Oct 15, 2019.

  1. a.bonassi

    a.bonassi New Member

    Hello to everyone,
    we allready use WCS to play IP Cam on a web site through the player.
    we are looking for a way to send this RTSP to facebook with WCS.
    i've looked in documentation but i've found only the method to publish the webcam on it, not a rtsp stream.
    We are very new in this area.

    Anyone can help us?
    Thanks
  2. Max

    Max Administrator Staff Member

    Good day.
    We will check your case and let you know in this topic.
  3. Max

    Max Administrator Staff Member

    Good day.
    1. Please, in the WCS settings file, flashphoner.properties, add the following lines:
    Code:
    wcs_agent_ssl=true
    rtmp_transponder_stream_name_prefix=
    rtmp_transponder_full_url=true
    
    and restart service:
    Code:
    service webcallserver restart
    2. Start RTSP stream to WCS using REST API:
    Code:
    /rest-api/rtsp/startup
    {
      "uri":"rtsp://<RTSP URL>"
    }
    
    3. Rebroadcast stream from RTSP to WebRTC:
    Code:
    /rest-api/pull/pull
    {
       "uri":"wss://localhost:8443",
       "localStreamName":"stream",
       "remoteStreamName":"rtsp://<RTSP URL>"
    }
    
    4. Publishing of WebRTC stream to Facebook (RTMPS):
    Code:
    /rest-api/push/startup
    {
       "streamName":"stream",
       "rtmpUrl":"rtmps://live-api-s.facebook.com:443/rtmp/"
    }
    
  4. Max

    Max Administrator Staff Member

    Good day.
    The issue with push RTSP stream to RTMP URL has been fixed in WCS 5.2.393 and later versions. Please update your WCS.

    For push RTSP stream to RTMP:

    1. Follow step in the previous post.
    2. You can capture RTSP by REST:
    Code:
    /rest-api/rtsp/startup
    {
       "uri":"rtsp://<your RTSP stream>"
    }
    
    or by WebSDK (for example Player, Media Devices).
    3. Republish your stream to Facebook (RTMPS):
    Code:
    /rest-api/push/startup
    {
       "streamName":"rtsp://<your RTSP stream>",
       "rtmpUrl":"rtmps://live-api-s.facebook.com:443/rtmp/"
    }
    
    Last edited: Nov 7, 2019 at 6:48 PM
  5. a.bonassi

    a.bonassi New Member

    Hi Max, i've just tried now after updating WCS. It works great.
    Thank you very much!!!!!! :)

Share This Page