fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.49k stars 1.08k forks source link

Can i stream video from an android phone to another android phone using this library? #174

Open Rishi16 opened 8 years ago

Rishi16 commented 8 years ago

I am trying to establish multimedia streaming among multiple android devices. Where all of them play a synchronized video. An good example of my idea is Samsung video group play. Thanx in advance.

Locnath commented 8 years ago

Yes you can do that. One way is to write a RTSP client which connects to the other phone acting as RTSP server using videoview widget and enter the server URL. Although this is the simplest approach,  it is not real time as videoview widget has inderent buffering by default (since it's originally meant for streaming kind of applications). I have seen this buffering causing lags upto 3-10 seconds on the client side depending on the resolution. The other option is to implement your own RTSP client which connects to the RTSP server, sets up the session, receives the encoded NAL units from the server, depacketizes them and sends them to video decoder for decode and render(on the surface provided). With this you could bring down the latency drastically. Thanks Kiran On 15-Feb-2016 6:55 pm, Rishi16 notifications@github.com wrote:

—Reply to this email directly or view it on GitHub.

Rishi16 commented 8 years ago

Could you give any links to tutorial helping me understand the making of this rtspclient? Cause whatever you said is too technical considering i am a noob to android .

Programmerpk commented 6 years ago

@Rishi16 yes you can do it by using vlc