Page 1 of 1

Play while download, Pause on streaming

Posted: 22 Mar 2010 05:06
by morz
Yes, I know libvlc support http streaming.

But my scenario is different.Ok here is the scenario :

I want to play a file (local file) while downloading it. If next frames are not available, pause it. Keep trying until next frame available, and continue to play it.

The download source maybe torrent, http, etc. And please assuming the download source, downloads the data by sequence, not randomly.

Actually I want to control the download process.

-------------------------------------------------
What I do now are like this (http):
1) connect using http. Get file size.
2) create a temporary file (e.g : test.avi) same size as source data (padding with null).
3) start download and at the same time play it (test.avi) using my application (libvlc).
4) my application work properly but it continue to play while downloading in process.

I want it pause if the video incomplete and continue to play as soon as data available.

Thanks.

Re: Play while download, Pause on streaming

Posted: 06 May 2010 17:07
by moti.lahiani
Hi morz
i try to do the same thing with my application.
can you please help me with that?
how can i stream the file? what command line i should give the vlc ?
if you can publish some code it will help me
thanks alot

Re: Play while download, Pause on streaming

Posted: 29 Oct 2010 10:38
by AlphaBetaNick
I also have same problem. Maybe we need to write new input plugin or not?