Streaming issue
Posted: Sat Dec 24, 2011 2:50 am
Hello,
i have the following issue. I use fopen to open a file and then stream it to the user with fread. The problem is that when i click on the progress bar of the player and if the video is not yet fully loaded, the progress bar continues from where i have clicked but the video starts from the beginning. So if the vid is 4min, and it is ready till 1min, if i click at 2mins, the progress bar continues from 2minutes on, but the video starts from the beginning. Is there a way to fix this? Here is what i use
$s = fopen($url,"rb");
while (!feof($s)) {
echo fread($s, 32* 1024);
flush();
}
fclose($s);
pretty standard. The player is jwplayer. Any help would be appreciated. Thank you
i have the following issue. I use fopen to open a file and then stream it to the user with fread. The problem is that when i click on the progress bar of the player and if the video is not yet fully loaded, the progress bar continues from where i have clicked but the video starts from the beginning. So if the vid is 4min, and it is ready till 1min, if i click at 2mins, the progress bar continues from 2minutes on, but the video starts from the beginning. Is there a way to fix this? Here is what i use
$s = fopen($url,"rb");
while (!feof($s)) {
echo fread($s, 32* 1024);
flush();
}
fclose($s);
pretty standard. The player is jwplayer. Any help would be appreciated. Thank you