The problem is that when video's get bigger than a minute or two I have to buffer the entire video before I can actually play it. When playing very small video's this isn't the case, and I can skip ahead within the buffered part.
I'm playing the video's inside chrome, and the video's are of .mp4 type.
How would I fix this?
Edit:
It turns out that a subset of H.264 files have the index at the end, which means that you cannot skip ahead until the full file is downloaded. I would have to swap the index according to:
MediaElement.js - Flash Video Wont Play Until Fully Loaded
However, I'm allowing my users to upload movies themselves so I cannot ask them to use this program. How would I convert it myself using php code?
Edit 2:
I found a library that enables me to change position of the moov atom. For anyone struggling with the same problem use the following library:
http://code.google.com/p/moovrelocator/
Edit 3:
I can confirm the library works great. Definitely recommend it.