Play while download, Pause on streaming

This forum is about all development around libVLC.
morz
New Cone
New Cone
Posts: 4
Joined: 22 Mar 2010 04:46

Play while download, Pause on streaming

Postby morz » 22 Mar 2010 05:06

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.

moti.lahiani
Blank Cone
Blank Cone
Posts: 10
Joined: 07 Feb 2010 08:37

Re: Play while download, Pause on streaming

Postby moti.lahiani » 06 May 2010 17:07

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

AlphaBetaNick
New Cone
New Cone
Posts: 2
Joined: 20 Oct 2010 10:18

Re: Play while download, Pause on streaming

Postby AlphaBetaNick » 29 Oct 2010 10:38

I also have same problem. Maybe we need to write new input plugin or not?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 38 guests