Javascript JS音乐播放器不适用于Firefox,但适用于Chrome
我正在尝试使用音乐播放器。 但是我修改了代码,使其能够从AJAX收集数据。(苗条的PHP)喜欢 及 对这个问题不是很确定。有人能帮忙吗Javascript JS音乐播放器不适用于Firefox,但适用于Chrome,javascript,jquery,firefox,Javascript,Jquery,Firefox,我正在尝试使用音乐播放器。 但是我修改了代码,使其能够从AJAX收集数据。(苗条的PHP)喜欢 及 对这个问题不是很确定。有人能帮忙吗 myPlaylist[j] = { mp3: 'music/demo_songs/'+data.tasks[j].demo_song, //oga: 'music/5.ogg', title: data.tasks[
myPlaylist[j] = {
mp3: 'music/demo_songs/'+data.tasks[j].demo_song,
//oga: 'music/5.ogg',
title: data.tasks[0].album_name+'-'+data.tasks[j].song_name,
artist: data.tasks[0].music_director,
rating: '3',
//buy:'addtocart.php?song_id='+data.tasks[j].song_id+'&album_id='+data.tasks[j].album_id+'&base_url_al='+window.location.href,
buy:'addtocart.php?song_id='+data.tasks[j].song_id+'&album_id='+data.tasks[j].album_id,
price: data.tasks[j].price,
duration: data.tasks[j].demo_song_duration,
cover: 'images/albums/'+data.tasks[j].album_img};
jQuery(document).ready(function ($) {
$('.music-single').ttwMusicPlayer(myPlaylist, {
currencySymbol:'<del>र</del>',
buyText:'Add to Cart',
tracksToShow:3,
ratingCallback:function(index, playlistItem, rating){
//some logic to process the rating, perhaps through an ajax call
},
jPlayer:{
swfPath:'../../../www.jplayer.org/2.1.0/js'
},
autoPlay:false
});
});
TypeError: a is undefined
...},setMedia:function(a){var c=this,d=!1,e=this.status.media.poster!==a.poster;thi...
jquery.jplayer.js (line 64, col 194)