Right…I’ve downloaded jPlayer now locally and I’m loading the scripts locally. Now the errors are gone but it looks like I’ve made a mistake before when loading them online.
Anyway, the errors are now gone but there is still no sound output. As mentioned initially I am quite new to developing a module so I’m really sorry if things seem obvious for you…but belive me, they’re not so obvious for me. But I’m very keen to learn!
The jPlayer script I’ve wrote myself looks like this:
$(document).ready(function() {
var stream = { mp3: "http://media-ice.musicradio.com/CapitalSouthCoastMP3" },
ready = false;
$("#jquery_jplayer_1").jPlayer({
ready: function(event) {
ready = true;
$(this).jPlayer("setMedia", stream);
$(this).jPlayer("play", 1);
},
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: "http://jplayer.org/latest/dist/jplayer",
supplied: "mp3",
preload: "none",
volume: 1,
wmode: "window",
useStateClassSkin: true,
autoBlur: false,
keyEnabled: true,
});
});