Forward stream to RTMP not working

James Bailey

New Member
I'm trying to follow the instructions here:

https://flashphoner.com/broadcast-video-stream-from-web-page-to-facebook-and-youtube-simultaneously/

I call the /push/startup API and it returns me some JSON but the stream doesn't start to Facebook:
Code:
curl -v -X POST -d "{\"streamName\":\"ba72\",\"rtmpUrl\":\"rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA\"}" -H Content-Type: 'application/json' http://localhost:9091/rest-api/push/startup --insecure

*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 9091 (#0)
> POST /rest-api/push/startup HTTP/1.1
> Host: localhost:9091
> User-Agent: curl/7.53.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 132
>
* upload completely sent off: 132 out of 132 bytes
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 20 Aug 2018 22:48:28 GMT
<
* Connection #0 to host localhost left intact
{"mediaSessionId":"g5bi6bap68v3hb891idmli92gn","streamName":"rtmp_ba72","rtmpUrl":"rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA","width":320,"height":240,"muted":false,"soundEnabled":false,"options":{}}
Logs:

Code:
22:48:28,183 INFO  agerRemoteRmiService - RMI TCP Connection(17)-127.0.0.1 RECEIVED REST OBJECT <==
URL:http://localhost:9091/EchoApp/StreamStatusEvent
OBJECT:
{
  "nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
  "appKey" : "defaultApp",
  "sessionId" : "/172.250.196.209:53452/172.32.0.36:8443",
  "mediaSessionId" : "g5bi6bap68v3hb891idmli92gn",
  "name" : "rtmp_ba72",
  "published" : false,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "PLAYING",
  "audioCodec" : "mpeg4-generic",
  "videoCodec" : "H264",
  "info" : "Unknown",
  "record" : false,
  "width" : 320,
  "height" : 240,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "rtmpUrl" : "rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA",
  "timeShift" : 0,
  "createDate" : 1534805308095,
  "mediaProvider" : "WebRTC",
  "history" : false
}
22:48:28,189 INFO  agerRemoteRmiService - RMI TCP Connection(18)-127.0.0.1 SEND REST OBJECT ==>
URL:http://localhost:9091/EchoApp/playStream
OBJECT:
{
  "nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
  "appKey" : "defaultApp",
  "sessionId" : "/172.250.196.209:53452/172.32.0.36:8443",
  "mediaSessionId" : "g5bi6bap68v3hb891idmli92gn",
  "name" : "rtmp_ba72",
  "published" : false,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "PLAYING",
  "audioCodec" : "mpeg4-generic",
  "videoCodec" : "H264",
  "info" : "Unknown",
  "record" : false,
  "width" : 320,
  "height" : 240,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "rtmpUrl" : "rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA",
  "timeShift" : 0,
  "createDate" : 1534805308095,
  "mediaProvider" : "WebRTC",
  "history" : false
}
22:48:28,203 INFO  agerRemoteRmiService - RMI TCP Connection(18)-127.0.0.1 RECEIVED REST OBJECT <==
URL:http://localhost:9091/EchoApp/playStream
OBJECT:
{
  "nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
  "appKey" : "defaultApp",
  "sessionId" : "/172.250.196.209:53452/172.32.0.36:8443",
  "mediaSessionId" : "g5bi6bap68v3hb891idmli92gn",
  "name" : "rtmp_ba72",
  "published" : false,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "PLAYING",
  "audioCodec" : "mpeg4-generic",
  "videoCodec" : "H264",
  "info" : "Unknown",
  "record" : false,
  "width" : 320,
  "height" : 240,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "rtmpUrl" : "rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA",
  "timeShift" : 0,
  "createDate" : 1534805308095,
  "mediaProvider" : "WebRTC",
  "history" : false
}
22:48:28,327 INFO  agerRemoteRmiService - RMI TCP Connection(18)-127.0.0.1 SEND REST OBJECT ==>
URL:http://localhost:9091/EchoApp/StreamStatusEvent
OBJECT:
{
  "nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
  "appKey" : "defaultApp",
  "sessionId" : "/172.250.196.209:53452/172.32.0.36:8443",
  "mediaSessionId" : "g5bi6bap68v3hb891idmli92gn",
  "name" : "rtmp_ba72",
  "published" : false,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "STOPPED",
  "audioCodec" : "mpeg4-generic",
  "videoCodec" : "H264",
  "info" : "Unknown",
  "record" : false,
  "width" : 320,
  "height" : 240,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "rtmpUrl" : "rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA",
  "timeShift" : 0,
  "createDate" : 1534805308095,
  "mediaProvider" : "WebRTC",
  "history" : false
}
22:48:28,333 INFO  agerRemoteRmiService - RMI TCP Connection(18)-127.0.0.1 RECEIVED REST OBJECT <==
URL:http://localhost:9091/EchoApp/StreamStatusEvent
OBJECT:
{
  "nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
  "appKey" : "defaultApp",
  "sessionId" : "/172.250.196.209:53452/172.32.0.36:8443",
  "mediaSessionId" : "g5bi6bap68v3hb891idmli92gn",
  "name" : "rtmp_ba72",
  "published" : false,
  "hasVideo" : true,
  "hasAudio" : true,
  "status" : "STOPPED",
  "audioCodec" : "mpeg4-generic",
  "videoCodec" : "H264",
  "info" : "Unknown",
  "record" : false,
  "width" : 320,
  "height" : 240,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "rtmpUrl" : "rtmp://live-api-s.facebook.com:80/rtmp/10216828130559405?ds=1&s_sw=0&s_vt=api-s&a=AThKBk5PSQBA9XmA",
  "timeShift" : 0,
  "createDate" : 1534805308095,
  "mediaProvider" : "WebRTC",
  "history" : false
}
Is it that Facebook is not accepting the connection?
 
Top