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.
In jPlayer instance 1, this demo will use OGG files instead of MP3 files if you are using an HTML5 browser that supports OGG format. (Currently only Firefox 3.5)
This instance will auto-play when ready. When finished, the playHead(0) 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 playHead(0) command is sent to instance 1.
Tracks courtesy of Miaow MiaowMusic.com