jplayer와 관련된 한 가지 문제가 있습니다. 나는 지금 jplayer를 사용하여 노래를 가져 와서 jplayer 재생 목록에 추가하고 현재는 잘 작동합니다.현재 노래 끝 이전에 다음 노래 미리로드
제 질문은 현재 노래가 끝나기 전에 다음 노래를 준비 할 수있는 옵션입니다 왜냐하면 내가 노래를 적게 시도하면 1 분 노래가 잘 작동하지만, 각 노래의 재생 시간이 4 분보다 길면 3 분에서 4 초가 걸립니다.
이것은 jpalyer 재생 목록의로드 코드에 대한 코드입니다.
// for create jplayer and add song in playlist
function play_music(songobj) {
is_play = 1;
// $("#jquery_jplayer_1").jPlayer("destroy");
var playlist_length = songobj.length;
myPlaylist = new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_N"
},songobj, {
playlistOptions: {
enableRemoveControls: true,
autoPlay: true
},
supplied: "oga, mp3",
wmode: "window",
useStateClassSkin: true,
autoBlur: false,
smoothPlayBar: true,
keyEnabled: true,
ended : function(){
if(playlist_length == currlength){
// alert('end playlist');
is_play = 0
location.reload();
}
else{
/*if(==){
console.log('yesssssss');
}*/
// console.log(play_index[index_key]);
// console.log(playlist_obj[currlength]);
loop = 1;
currlength += 1;
var songindex = song_index[currlength - 1];
var listindex = playlist_obj[index_key];
if(song_index[currlength - 1] == playlist_obj[index_key]){
index_key += 1;
$("#jquery_jplayer_1").jPlayer("pause", 0);
console.log('playlist over start next');
setTimeout(function() {
$("#jquery_jplayer_1").jPlayer("play", 0);
}, $('#timeout').val()*1000);
}
}
},
});
}
는 프리로드에 대한 모든 옵션을 플레이하기 전에 모든 노래가 또한 경우에, 나를 인도 해주십시오도 재생 목록 하나의 오디오 소스가 있습니다 덕분에 뒤에서
사용중인 .mp3 및 .ogg URL과 어떤 브라우저를 게시 할 수 있습니까? –