Automatic republishing to a specified RTMP server, issue

Hi

we´r following the documentation here
https://docs.flashphoner.com/display/WCS5EN/To+another+RTMP+server#ToanotherRTMPserver-JavaScriptAPI

And have the following in our flashphoner.properties file
rtmp_push_auto_start=true
rtmp_push_auto_start_url=rtmp://our.domain.com:1935/app-name

We can see the connection being made on the rtmp server to the right application but there´s no video being transmitted (we have disabeled audio)

If we use the rest API like below it works
{
"streamName": "2a029a340e",
"rtmpUrl": "rtmp://our.domain.com:1935/app-name",
"options": {}
}

Is there something we´r missing ? We need to republish all incoming streams to another rtmp server
 

Max

Administrator
Staff member
Hello

Auto-republishing is experimental functions not tested in production use.
If you want to implement auto-republishing properly, please use REST API.
1. Use
Code:
/rest-api/stream/find
{"status":"PUBLISHING"}
to find actual publishing streams
2. Use
Code:
/rest-api/push/startup
to re-publish stream over RTMP
3. Use
Code:
/rest-api/push/find_all
to find all streams being republished

Therefore you need a custom script utilizing REST API to implement auto-republishing on your end.
https://docs.flashphoner.com/display/WCS52EN/REST+API

The built-in auto-republishing is experimental feature and it can be removed in future releases.
 
Top