I am creating a player using the osmf v. 1.5. I am using the DefaultMediaFactory to create a VideoElement based on a video at a http address. That is using progressive download for the video. The mediaPlayer is set to autoPlay. But I have the problem that the player insists to download the whole video before it starts playing, even when I specify a bufferTime for the MediaPlayer. When I listen to the state changes of the MediaPlayer it goes from loading to playing almost immediately, but as I said, without actually starting video playback until all bytes have been downloaded.
Is there a way to set up the MediaPlayer to start playing as soon as there is enough video in the buffer?
The most common problem in this case is the encoding of the video. Please use the settings of the encoder to make it "web-optimized", or a similar term (you'll need to re-encode your asset). In simple terms, this will put the information needed by the player at the beginning of the file.
Hope this will help you!
This is probably related to the position of the moov atom in your encode. Do a google search on "moov atom progressive download" and I'll bet you'll get a ton of info related to this.