PDA

View Full Version : Tell mp3Player to buffer X % before playing


Dalileis
10-12-2007, 01:29 PM
(After the wobbliness problem is fixed even at segments 30).

Parameter to be able to tell mp3Player to buffer the audio for certain amount before it starts playing, in other words, wait untill certain procentage has been reached and then start playing.

Also, parameter for mp3Player, so that it starts playing AFTER the first main pano (not black&white preview) has loaded. When the first main pano has fully loaded only then should the mp3Player start to play in sync with the first pano fading in.

The way it seems to be now is:

autostart=true: makes the mp3Player start downloading audio data automatically, buffering ahead modest quantity which we cannot control (correct?). I'd like to be able to tell the mp3Player to start playing after it has loaded at least 50% of audio data, if it has finnished before the main color pano has loaded WAIT for that pano to load completely, then start audio in sync with that pano and continue buffering.

autostart=false: makes the mp3Player not download anything, not play anything, it's just graphically present.

Arbitrary play and stop parameters don't do anything.

Richer mp3Player parameters.

Thank you.

Dalileis
10-12-2007, 01:41 PM
This will probaby involve onDone & onInterrupt.

But after what has been done?

onDone loading? No. onDone=50 (%) sounds better.

Then wait for the pano. onDone loading pano = play mp3Player + continue loading the remaining 50 %.

Parameters + proper syntax.

Thank yous.

Dalileis
10-12-2007, 02:13 PM
Yes. Got it. Nice.

Not everything I asked for, but almost there...

http://www.jeroenwijering.com/extras/readme.html

Extra parameters to tie and sync the mp3Player to "onDone loading main pano" event are still needed, though.