SHARE
TWEET

Untitled

a guest Feb 15th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     let tracks = [];
  2.                     for (let i = 0; i < result.tracks.length ; i++) {
  3.                         tracks.push({
  4.                             title: result.tracks[i].title,
  5.                             artist: "RidePal",
  6.                             mp3: result.tracks[i].preview,
  7.                             poster: 'data:image/png;base64,' + result.cover,
  8.                             duration:sec2mins(result.tracks[i].duration)
  9.                         });
  10.                       // tracks.push(result.tracks[i].preview);
  11.                     }
  12.  
  13.                     new jPlayerPlaylist({
  14.                         jPlayer: "#player-seven",
  15.                         cssSelectorAncestor: ".player-layout-seven"
  16.                     }, tracks, {
  17.                         swfPath: "../../dist/jplayer",
  18.                         supplied: "webmv, ogv, m4v, oga, mp3",
  19.                         useStateClassSkin: true,
  20.                         autoBlur: false,
  21.                         smoothPlayBar: true,
  22.                         keyEnabled: true,
  23.                         loop: true,
  24.                         audioFullScreen: true
  25.                     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top