- var stream = {
- title: "ABC Jazz",
- mp3: "http://listen.radionomy.com/abc-jazz"
- },
- ready = false;
- $("#jquery_jplayer_1").jPlayer({
- ready: function (event) {
- ready = true;
- $(this).jPlayer("setMedia", stream);
- },
- pause: function() {
- $(this).jPlayer("clearMedia");
- },
- error: function(event) {
- if(ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) {
- // Setup the media stream again and play it.
- $(this).jPlayer("setMedia", stream).jPlayer("play");
- }
- },
- swfPath: "js",
- supplied: "mp3",
- preload: "none",
- wmode: "window"
- });