Closed y4nnick closed 8 years ago
I figured it out, the code above is fine, just make sure that you set RECORD_LENGTH = 0. if desired i could publish an example application including the loggin etc.
Ok, cool :) Thanks for sharing
And a sample application project would be great. Please send your pull request here: https://github.com/bytedeco/sample-projects
I tried the RecordActivity from the examples to stream to facebook live.
I just edited the url with:
private String ffmpeg_link = "rtmp://rtmp-api.facebook.com:80/rtmp/<KEY HERE>";
and updated the settings to the facebook standarts:
` //--------------------------------------- // initialize ffmpeg_recorder //--------------------------------------- private void initRecorder() { Log.w(LOG_TAG,"init recorder");
The facebook guide can be found here: https://www.facebook.com/facebookmedia/get-started/live The facebook preview of the livestream just says that it is offline.
I summarized the settings rom facebbook into 10 points. You can see them above as a comment in the code.
I don't know how to set the settings for 6,7 and 10. I assume that they are the reason that it is not working.
Can someone please explain how i could set it them?
Has anyone ever manged to stream to facebook live here, would be nice if someone has a code sample?
PS: i am currently trying this over the android emulator. But that shouldn't be a problem since i have a active internet connection in the emulator.