jPlayer

jQuery audio player plugin

Investigating a bug:
- when pausing/playing near the end of a sound.

Test variant: {oggSupport:false}

This page demostrates a bug where the play and pause commands used near the end of a sound can corrupt the operation of jPlayer. The sound is preloaded using {preload:"auto"}.

Using only play and pause, try and click pause as the sound ends. If you get it right, when you click play again, the sound will not play.

If you always use the following command to initiate the playback, then the problem never occurs:
$("#jquery_jplayer").jPlayer("playHeadTime",0);
This command usually corrects the problem too, unless you have been playing about with the progress bar while jPlayer is malfunctioning. The progress bars are able to completely kill jPlayer and this command fails too. It appears that the HTML audio element is corrupted at that point. The seeking property remains high and never completes.

diag.isPlaying
<100ms to end
onSoundComplete *
html ended event *
html ended property
html readyState property:
html seeking property
html error event *
Reset Test to allow events (*) to be recaptured. audio.currentTime =

Tracks courtesy of Miaow MiaowMusic.com

Help us improve jPlayer

Developing and supporting jPlayer is almost a full-time job and we are really just beginning. Help us continue to help you.

Hire Us!

Need an audio based solution realized or just need some help. Hire Happyworm! Contact: [email protected].

Also by Happyworm

Qwiiz

Massively multiplayer real-time quiz game. Cross platform and tuned for the iPad.

Collaborate

ActionScript 2 Compiler