Advertisement
deliciousthemes

Sympathique - Audio

May 28th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.88 KB | None | 0 0
  1. jQuery(document).ready(function() {
  2.  
  3.     // AUDIO PLAYER //
  4.     $("#audio_jplayer_1").jPlayer({
  5.         ready: function (event) {
  6.             $(this).jPlayer("setMedia", {
  7.                 mp3:"media/audio.mp3",
  8.                 ogg:"media/audio.ogg"
  9.             });
  10.         },
  11.         play: function() { // To avoid multiple jPlayers playing together.
  12.             $(this).jPlayer("pauseOthers");
  13.         },     
  14.         swfPath: "/media",
  15.         supplied: "mp3, ogg",
  16.         wmode: "window"    
  17.     });
  18.  
  19.  
  20.     $("#audio_jplayer_2").jPlayer({
  21.         ready: function (event) {
  22.             $(this).jPlayer("setMedia", {
  23.                 m4a: "http://www.jplayer.org/audio/m4a/Miaow-08-Stirring-of-a-fool.m4a",
  24.                 oga: "http://www.jplayer.org/audio/ogg/Miaow-08-Stirring-of-a-fool.ogg"
  25.             });
  26.         },
  27.         play: function() { // To avoid multiple jPlayers playing together.
  28.             $(this).jPlayer("pauseOthers");
  29.         },
  30.         supplied: "m4a, oga",
  31.         cssSelectorAncestor: "#jp_container_2",
  32.         wmode: "window"
  33.     });
  34.  
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement