This version has been superseded by a new release.
Please use the navigation bar above to access the latest version.
In this demo jPlayer is instanced twice on the page, demonstrating how multiple instances of jPlayer may be used on the same page.
Using a technique such as this, the 2nd instance could be hidden from view and an advertisement automatically played when the song finishes.
This instance will auto-play when ready. When finished, the play() command is sent to instance 2.
This instance is waiting for you to click play before begining the download and playing. Otherwise it will auto-play when instance 1 has finished playing. When finished, the play() command is sent to instance 1. (The play continues from from wherever the other instance was at, either from the start or where the track was paused.)
Tracks courtesy of Miaow MiaowMusic.com