199 lines
6.6 KiB
HTML
199 lines
6.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<!-- Website Design By: www.happyworm.com -->
|
|
<title>Demo : Multi instanced jPlayer audio players</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
<link href="../../dist/skin/pink.flag/css/jplayer.pink.flag.min.css" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" src="../../lib/jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../dist/jplayer/jquery.jplayer.min.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function(){
|
|
|
|
$("#jquery_jplayer_1").jPlayer({
|
|
ready: function () {
|
|
$(this).jPlayer("setMedia", {
|
|
title: "Stirring of a fool",
|
|
m4a: "http://www.jplayer.org/audio/m4a/Miaow-08-Stirring-of-a-fool.m4a",
|
|
oga: "http://www.jplayer.org/audio/ogg/Miaow-08-Stirring-of-a-fool.ogg"
|
|
});
|
|
},
|
|
play: function() { // To avoid multiple jPlayers playing together.
|
|
$(this).jPlayer("pauseOthers");
|
|
},
|
|
swfPath: "../../js",
|
|
supplied: "m4a, oga",
|
|
wmode: "window",
|
|
globalVolume: true,
|
|
useStateClassSkin: true,
|
|
autoBlur: false,
|
|
smoothPlayBar: true,
|
|
keyEnabled: true
|
|
});
|
|
|
|
$("#jquery_jplayer_2").jPlayer({
|
|
ready: function () {
|
|
$(this).jPlayer("setMedia", {
|
|
title: "Hidden",
|
|
m4a: "http://www.jplayer.org/audio/m4a/Miaow-02-Hidden.m4a",
|
|
oga: "http://www.jplayer.org/audio/ogg/Miaow-02-Hidden.ogg"
|
|
});
|
|
},
|
|
play: function() { // To avoid multiple jPlayers playing together.
|
|
$(this).jPlayer("pauseOthers");
|
|
},
|
|
swfPath: "../../js",
|
|
supplied: "m4a, oga",
|
|
cssSelectorAncestor: "#jp_container_2",
|
|
wmode: "window",
|
|
globalVolume: true,
|
|
useStateClassSkin: true,
|
|
autoBlur: false,
|
|
smoothPlayBar: true,
|
|
keyEnabled: true
|
|
});
|
|
|
|
$("#jquery_jplayer_3").jPlayer({
|
|
ready: function () {
|
|
$(this).jPlayer("setMedia", {
|
|
title: "Bubble",
|
|
m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
|
|
oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
|
|
});
|
|
},
|
|
play: function() { // To avoid multiple jPlayers playing together.
|
|
$(this).jPlayer("pauseOthers");
|
|
},
|
|
swfPath: "../../js",
|
|
supplied: "m4a, oga",
|
|
cssSelectorAncestor: "#jp_container_3",
|
|
wmode: "window",
|
|
globalVolume: true,
|
|
useStateClassSkin: true,
|
|
autoBlur: false,
|
|
smoothPlayBar: true,
|
|
keyEnabled: true
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
|
|
<div id="jp_container_1" class="jp-audio" role="application" aria-label="media player">
|
|
<div class="jp-type-single">
|
|
<div class="jp-gui jp-interface">
|
|
<div class="jp-volume-controls">
|
|
<button class="jp-mute" role="button" tabindex="0">mute</button>
|
|
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
|
|
<div class="jp-volume-bar">
|
|
<div class="jp-volume-bar-value"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-controls-holder">
|
|
<div class="jp-controls">
|
|
<button class="jp-play" role="button" tabindex="0">play</button>
|
|
<button class="jp-stop" role="button" tabindex="0">stop</button>
|
|
</div>
|
|
<div class="jp-progress">
|
|
<div class="jp-seek-bar">
|
|
<div class="jp-play-bar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-current-time" role="timer" aria-label="time"> </div>
|
|
<div class="jp-duration" role="timer" aria-label="duration"> </div>
|
|
<div class="jp-toggles">
|
|
<button class="jp-repeat" role="button" tabindex="0">repeat</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-details">
|
|
<div class="jp-title" aria-label="title"> </div>
|
|
</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>
|
|
<div id="jquery_jplayer_2" class="jp-jplayer"></div>
|
|
<div id="jp_container_2" class="jp-audio" role="application" aria-label="media player">
|
|
<div class="jp-type-single">
|
|
<div class="jp-gui jp-interface">
|
|
<div class="jp-volume-controls">
|
|
<button class="jp-mute" role="button" tabindex="0">mute</button>
|
|
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
|
|
<div class="jp-volume-bar">
|
|
<div class="jp-volume-bar-value"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-controls-holder">
|
|
<div class="jp-controls">
|
|
<button class="jp-play" role="button" tabindex="0">play</button>
|
|
<button class="jp-stop" role="button" tabindex="0">stop</button>
|
|
</div>
|
|
<div class="jp-progress">
|
|
<div class="jp-seek-bar">
|
|
<div class="jp-play-bar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-current-time" role="timer" aria-label="time"> </div>
|
|
<div class="jp-duration" role="timer" aria-label="duration"> </div>
|
|
<div class="jp-toggles">
|
|
<button class="jp-repeat" role="button" tabindex="0">repeat</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-details">
|
|
<div class="jp-title" aria-label="title"> </div>
|
|
</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>
|
|
<div id="jquery_jplayer_3" class="jp-jplayer"></div>
|
|
<div id="jp_container_3" class="jp-audio" role="application" aria-label="media player">
|
|
<div class="jp-type-single">
|
|
<div class="jp-gui jp-interface">
|
|
<div class="jp-volume-controls">
|
|
<button class="jp-mute" role="button" tabindex="0">mute</button>
|
|
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
|
|
<div class="jp-volume-bar">
|
|
<div class="jp-volume-bar-value"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-controls-holder">
|
|
<div class="jp-controls">
|
|
<button class="jp-play" role="button" tabindex="0">play</button>
|
|
<button class="jp-stop" role="button" tabindex="0">stop</button>
|
|
</div>
|
|
<div class="jp-progress">
|
|
<div class="jp-seek-bar">
|
|
<div class="jp-play-bar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-current-time" role="timer" aria-label="time"> </div>
|
|
<div class="jp-duration" role="timer" aria-label="duration"> </div>
|
|
<div class="jp-toggles">
|
|
<button class="jp-repeat" role="button" tabindex="0">repeat</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-details">
|
|
<div class="jp-title" aria-label="title"> </div>
|
|
</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>
|
|
</body>
|
|
|
|
</html>
|
|
|