could not able to live stream to facebook from EMS with Puhstream method

could not able to live stream to facebook from EMS with Puhstream method

Support ForumCategory: Integration and Customizationcould not able to live stream to facebook from EMS with Puhstream method
chanakya.pivot asked 4 years ago
We are getting rtsp data to the EMS and i am trying to send it to the facebook live. $base64 = base64_encode(“pushstream uri=rtmp://rtmp-api.facebook.com:80/rtmp/121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du localStreamName=$code keepAlive=1”);
$url = “http://127.0.0.1:7777/pushstream?params=” . $base64; this is the way i am trying to do and getting the reponse as {“data”:{“configId”:79,”emulateUserAgent”:”EvoStream Media Server (www.evostream.com)”,”forceTcp”:false,”httpProxy”:””,”keepAlive”:true,”localStreamName”:”I2KDlCfnvrObIboYlxoH88XH46uj48″,”operationType”:2,”pageUrl”:””,”rtmpAbsoluteTimestamps”:false,”sendChunkSizeRequest”:true,”swfUrl”:””,”targetStreamName”:”I2KDlCfnvrObIboYlxoH88XH46uj48″,”targetStreamType”:”live”,”targetUri”:{“document”:”121485768419442″,”documentPath”:”\/rtmp\/”,”documentWithFullParameters”:”121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du”,”fullDocumentPath”:”\/rtmp\/121485768419442″,”fullDocumentPathWithParameters”:”\/rtmp\/121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du”,”fullParameters”:”ds=1&s_l=1&a=ATi-bK_K0n8pK7Du”,”fullUri”:”rtmp:\/\/rtmp-api.facebook.com:80\/rtmp\/121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du”,”fullUriWithAuth”:”rtmp:\/\/rtmp-api.facebook.com:80\/rtmp\/121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du”,”host”:”rtmp-api.facebook.com”,”ip”:”31.13.77.23″,”originalUri”:”rtmp:\/\/rtmp-api.facebook.com:80\/rtmp\/121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du”,”parameters”:{“a”:”ATi-bK_K0n8pK7Du”,”ds”:”1″,”s_l”:”1″},”password”:””,”port”:80,”portSpecified”:true,”scheme”:”rtmp”,”userName”:””},”tcUrl”:””,”tos”:256,”ttl”:256,”useSourcePts”:false},”description”:”Local stream I2KDlCfnvrObIboYlxoH88XH46uj48 enqueued for pushing to rtmp:\/\/rtmp-api.facebook.com:80\/rtmp\/121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du as I2KDlCfnvrObIboYlxoH88XH46uj48″,”status”:”SUCCESS”}   But the video is not streaming in the Facebook, can you please let me know what i am missing over here, In order to stream it successfully to facebook   ? 



1 Answers
toni answered 4 years ago
Hi! Based on the response you posted, the uri and targetStreamName parameters are incorrect. uri should only be rtmp://rtmp-api.facebook.com:80/rtmp/ and the targetStreamName should be the Facebook Stream Key. In this case it should have been 121485768419442?ds=1&s_l=1&a=ATi-bK_K0n8pK7Du   Hope this helps.

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.