Hi
I'm trying to use japlayer to play a "background" sound in my webpage hiding the player.
i've tried in this way:
<script type="text/javascript">
$(document).ready(function(){
$("#player").jPlayer({
ready: function (event) {
$(this).jPlayer("setMedia", {
mp3:"
song.mp3",
}).jPlayer("play");
},
swfPath: "../js/jQuery.jPlayer.2.1.0/",
supplied: "mp3",
wmode: "window"
});
$("#jplayer_inspector").jPlayerInspector({jPlayer:$("#player")});
});
</script>
and i added a div like this in the body of my html page:
<div id="player" class="jp-jplayer"></div>
It works but i would know if it's the right way to do it.
thanks in advance for your kind help
Biagio