Created
March 17, 2012 20:21
-
-
Save pedroteixeira/2064923 to your computer and use it in GitHub Desktop.
exemplo de uso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script type="text/javascript" | |
src="http://echo.gomus.com.br/player/mb.js?id=<##### ID DO PLAYER ######> "> | |
</script> | |
<link href="http://www.jplayer.org/css/jPlayer.css" rel="stylesheet" type="text/css" /> | |
<link rel="shortcut icon" href="/graphics/jplayer.ico" type="image/x-icon" /> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<!--[if IE 6]> | |
<link href="http://www.jplayer.org/css/ie6.css" rel="stylesheet" type="text/css" /> | |
<![endif]--> | |
<link href="http://www.jplayer.org/js/prettify/prettify-jPlayer.css" rel="stylesheet" | |
type="text/css" /> | |
<link href="http://www.jplayer.org/latest/skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> | |
<script type="text/javascript" | |
src="http://www.jplayer.org/latest/js/jquery.jplayer.min.js"></script> | |
<script type="text/javascript" | |
src="http://www.jplayer.org/latest/js/jplayer.playlist.min.js"></script> | |
<div id="player" class="jp-player"></div> | |
<div id="player-container" class="jp-audio"> | |
<div class="jp-type-playlist"> | |
<div class="jp-gui jp-interface"> | |
<ul class="jp-controls"> | |
<li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li> | |
<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li> | |
<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li> | |
<li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li> | |
<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li> | |
<li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li> | |
<li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li> | |
<li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li> | |
</ul> | |
<div class="jp-progress"> | |
<div class="jp-seek-bar"> | |
<div class="jp-play-bar"></div> | |
</div> | |
</div> | |
<div class="jp-volume-bar"> | |
<div class="jp-volume-bar-value"></div> | |
</div> | |
<div class="jp-time-holder"> | |
<div class="jp-current-time"></div> | |
<div class="jp-duration"></div> | |
</div> | |
<ul class="jp-toggles"> | |
<li><a href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle">shuffle</a></li> | |
<li><a href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off">shuffle off</a></li> | |
<li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li> | |
<li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li> | |
</ul> | |
</div> | |
<div class="jp-playlist"> | |
<ul> | |
<li></li> | |
</ul> | |
</div> | |
<div class="jp-no-solution"> | |
<span>Update Required</span> | |
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>. | |
</div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(function() { | |
if(window._gomus) { | |
new jPlayerPlaylist({ | |
jPlayer: "#player", | |
cssSelectorAncestor: "#player-container" | |
}, _gomus.songs, { | |
swfPath: "http://www.jplayer.org/latest/js", | |
supplied: "mp3", | |
wmode: "window" | |
}); | |
} else { | |
//erro | |
$("#player").remove(); | |
$("#player-container").remove(); | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment