Stream IP Cam (RTSP) on facebook through WCS

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
 

Max

Administrator
Staff member
Good day.
We will check your case and let you know in this topic.
 

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/"
}
 

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:
Top