libstreaming icon indicating copy to clipboard operation
libstreaming copied to clipboard

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

Open Rishi16 opened this issue 9 years ago • 3 comments

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.

Rishi16 avatar Feb 15 '16 13:02 Rishi16

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 [email protected] wrote:

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

Locnath avatar Feb 15 '16 14:02 Locnath

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 .

Rishi16 avatar Feb 15 '16 15:02 Rishi16

@Rishi16 yes you can do it by using vlc

Programmerpk avatar Oct 29 '18 09:10 Programmerpk