Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function() {
- // AUDIO PLAYER //
- $("#audio_jplayer_1").jPlayer({
- ready: function (event) {
- $(this).jPlayer("setMedia", {
- mp3:"media/audio.mp3",
- ogg:"media/audio.ogg"
- });
- },
- play: function() { // To avoid multiple jPlayers playing together.
- $(this).jPlayer("pauseOthers");
- },
- swfPath: "/media",
- supplied: "mp3, ogg",
- wmode: "window"
- });
- $("#audio_jplayer_2").jPlayer({
- ready: function (event) {
- $(this).jPlayer("setMedia", {
- 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");
- },
- supplied: "m4a, oga",
- cssSelectorAncestor: "#jp_container_2",
- wmode: "window"
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement