var current_time; var current_song_id = 0; var play_list = new jPlayerPlaylist({ jPlayer: "#jquery_jplayer_1", cssSelectorAncestor: "#jp_container_1" }, [ { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2002.mp3", id:9338, title:"启示录福气2", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2003.mp3", id:9339, title:"启示录福气3", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2006.mp3", id:9342, title:"启示录福气6", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2008.mp3", id:9344, title:"启示录福气8", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2009.mp3", id:9345, title:"启示录福气9", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2010.mp3", id:9346, title:"启示录福气10", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2013.mp3", id:9349, title:"启示录福气13", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2014.mp3", id:9350, title:"启示录福气14", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2015.mp3", id:9351, title:"启示录福气15", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2016.mp3", id:9352, title:"启示录福气16", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2017.mp3", id:9353, title:"启示录福气17", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2018.mp3", id:9354, title:"启示录福气18", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2019.mp3", id:9355, title:"启示录福气19", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2020.mp3", id:9356, title:"启示录福气20", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2021.mp3", id:9357, title:"启示录福气21", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2022.mp3", id:9358, title:"启示录福气22", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2023.mp3", id:9359, title:"启示录福气23", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2024.mp3", id:9360, title:"启示录福气24", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2025.mp3", id:9361, title:"启示录福气25", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2026.mp3", id:9362, title:"启示录福气26", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2027.mp3", id:9363, title:"启示录福气27", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2028.mp3", id:9364, title:"启示录福气28", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%9429.mp3", id:9365, title:"启示录福气29", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%9430.mp3", id:9366, title:"启示录福气30", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, { mp3:"http://jd.wzxx.org:13322/8%E7%A0%94%E7%BB%8F%E6%9F%A5%E7%BB%8F/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94-%E9%99%88%E5%B8%8C%E6%9B%BE/%E5%90%AF%E7%A4%BA%E5%BD%95%E7%A6%8F%E6%B0%94%2031.mp3", id:9367, title:"启示录福气31", artist_id:0, artist:"", album_id:0, album:"陈希曾", cover:"" }, ],{ play: function(obj){ init_lrc(obj.jPlayer.status.media.id); }, timeupdate : function (obj){ current_time = obj.jPlayer.status.currentTime; } }); function init_lrc(song_id){ var url = "/api/music/lrc/"; var data = "id=" + song_id; $.getJSON(url,data,function(response){ if(response.result == "SUCCESS"){ $.lrc.start(response.message,function(){ return current_time; }); } }); } function start_play(url_data){ var url = "/music/player/?"; window.location.href=url+url_data; } function play(ids){ var url_data = "&ids=" + ids; start_play(url_data); } function play_album(album_id){ var url_data = "&album_id=" + album_id; start_play(url_data); } function play_box(box_id){ var url_data = "&box_id=" + box_id; start_play(url_data); } function play_book(book_id){ var url_data = "&book_id=" + book_id; start_play(url_data); } function play_favor(){ var url_data = "&favor=1"; start_play(url_data); } function play_callback(media_list){ var media_arr = []; for(var i = 0; i < media_list.length; i++){ var media = { mp3:"http://www.jiangdaowang.com:12421/" + media_list[i].url, id:media_list[i].id, title:media_list[i].title, artist_id:media_list[i].artist_id, artist:media_list[i].artist, album_id:media_list[i].album_id, album:media_list[i].album, cover:media_list[i].cover }; media_arr.push(media); } play_list.addList(media_arr,true); } function add(ids){ var data = "ids=" + ids; get_media_list(data,add_callback); } function add_album(album_id){ var data = "album_id=" + album_id; get_media_list(data,add_callback); } function add_callback(media_list){ var media_arr = []; for(var i = 0; i < media_list.length; i++){ var media = { mp3:"http://www.jiangdaowang.com:12421/" + media_list[i].url, id:media_list[i].id, title:media_list[i].title, artist_id:media_list[i].artist_id, artist:media_list[i].artist, album_id:media_list[i].album_id, album:media_list[i].album, cover:media_list[i].cover }; media_arr.push(media); } play_list.addList(media_arr,false); } function get_media_list(data,callback){ var url = "/api/music/song/"; $.getJSON(url,data,function(response){ if(response.result == "SUCCESS"){ callback(eval(response.message)); } }); }