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.