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
Streaming issue
Moderator: General Moderators
Re: Streaming issue
When you click on the 2 minute mark, has the browser downloaded enough of the file to give video at the 2 minute mark? Generally, when you are raw feeding a file, it will mainly just play from the start until the player has the entire file buffered so it can know where in the file to go.
There is something I was looking at a few months ago, for a project coming up next year. It was at http://xmoov.com/xmoov-php/ (the bookmark I had), but currently the site isn't responding (I hope just a temporary thing since I will need it in a few months). This when I played with it streamed media files that allowed me to click around while playing it. Definitely not as simple as just flat out feeding out the raw file, but has potential.
So give it a day and try that link to see if works again.
-Greg
There is something I was looking at a few months ago, for a project coming up next year. It was at http://xmoov.com/xmoov-php/ (the bookmark I had), but currently the site isn't responding (I hope just a temporary thing since I will need it in a few months). This when I played with it streamed media files that allowed me to click around while playing it. Definitely not as simple as just flat out feeding out the raw file, but has potential.
So give it a day and try that link to see if works again.
-Greg