pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin
Apache License 2.0
2.53k stars 772 forks source link

Its can stream to facebook live? #3

Closed lordmen99 closed 7 years ago

lordmen99 commented 7 years ago

Dear pedro,

this app can make live stream to facebook timeline from our profiles?

pedroSG94 commented 7 years ago

No tested but should work. Facebook use rtmp protocol. Youtube use rtmp too and work. You can test here: (https://www.facebook.com/live/create)

lordmen99 commented 7 years ago

For youtube, how make stream?

pedroSG94 commented 7 years ago

Go creator studio in youtube, select live stream, stream now and use data in configuration. Example result: rtmp://a.rtmp.youtube.com/live2/yournamereveal

lordmen99 commented 7 years ago

ok,for facebook i try put rtmp url : rtmp://rtmp-api.facebook.com:80/rtmp/10206961474594258?ds=1&s_l=1&a=AThR6e6Lvxjjxwwi

not working stream into my timeline. can u fix it and check

pedroSG94 commented 7 years ago

ok, I will check it.

lordmen99 commented 7 years ago

i try use you tube and put format rtmp like this = rtmp://a.rtmp.youtube.com/live2/yournamereveal

but still cant stream to my youtbe

pedroSG94 commented 7 years ago

Are you sure you did well? I tested youtube after tell you and work. Remember you need verify your account. If app work will tell you connect success

lordmen99 commented 7 years ago

u have skype? add mine please = poster994. i want discuss how setup it

pedroSG94 commented 7 years ago

Facebook is now working :).

lordmen99 commented 7 years ago

realy? how the setting ?

pedroSG94 commented 7 years ago

Was a rtmp module problem. You can use defaultrtmp activity for test

lordmen99 commented 7 years ago

i mean url format rtmp facebook? how put format. Only like this = http://rtmp-api.facebook.com/rtmp/ ?

or http://rtmp-api.facebook.com/rtmp/user-id?ds=1&s_l=1&a=ATj6kVTxfnHJlMPN ?

pedroSG94 commented 7 years ago

like this: rtmp://rtmp-api.facebook.com:80/rtmp/1892213090993296?ds=1&s_l=1&a=ATj36DtGn3Xbe_9O

lordmen99 commented 7 years ago

its can stream to facebook timeline? istill not success

lordmen99 commented 7 years ago

-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:588) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:552) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.io.InputStream.read(InputStream.java:162) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:149) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.io.BufferedInputStream.read(BufferedInputStream.java:234) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at com.github.faucamp.simplertmp.packets.Handshake.readS0(Handshake.java:49) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at com.github.faucamp.simplertmp.io.RtmpConnection.handshake(RtmpConnection.java:104) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at com.github.faucamp.simplertmp.io.RtmpConnection.connect(RtmpConnection.java:147) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at com.github.faucamp.simplertmp.DefaultRtmpPublisher.connect(DefaultRtmpPublisher.java:28) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at net.ossrs.rtmp.SrsFlvMuxer.connect(SrsFlvMuxer.java:117) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at net.ossrs.rtmp.SrsFlvMuxer.access$000(SrsFlvMuxer.java:48) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at net.ossrs.rtmp.SrsFlvMuxer$1.run(SrsFlvMuxer.java:152) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at java.lang.Thread.run(Thread.java:818) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: Caused by: android.system.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at libcore.io.Posix.recvfromBytes(Native Method) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at libcore.io.Posix.recvfrom(Posix.java:189) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:549) 04-18 07:35:58.857 5812-6321/com.pedro.rtmpstreamer W/System.err: ... 14 more

pedroSG94 commented 7 years ago

http://stackoverflow.com/questions/11207394/getting-socketexception-connection-reset-by-peer-in-android

lordmen99 commented 7 years ago

please update ur code so, working on wifi with firewall..