0
오디오 플레이어를 연결하려고합니다. 한 곡이 끝나면 다음 곡이 재생되기 시작합니다. 나는 끝없이 많은 선수를 갖게 될 것이므로 어떻게해야하는지 궁금하다. 이것은 꽤 간단한 코드입니다. 다음은 두 곡의 예입니다.연속 재생을 위해 여러 단일 노래 오디오 플레이어 반복하기
<div class="container">
<!-- DJ Picture -->
<img src="Pictures/Calvinharris.jpg" class="img1" />
<div class="box">
<!-- DJ Name -->
<span class="bigroom">Calvin Harris</span>
<!-- Song Title -->
<h2>We Found Love (Chuckie Mix)</h2>
<!--Song Description(179 characters with spaces)-->
<h4>Beautiful, pounding piano stabs combined with great vocals make this track a phenomenal one. Manages to powerfully fill a massive sound-space without sounding cluttered.</h4>
<!--Song file info-->
<div class="player">
<body><a id="m12" class="audio {skin:'#010101',showVolumLevel:false,showTime:false,ogg:'MP3/Rihanna feat. Calvin Harris - We Found Love (Chuckie Extended Mix).ogg'}" href="MP3/Rihanna feat. Calvin Harris - We Found Love (Chuckie Extended Mix).mp3"></a>
</div>
</div>
</div>
<div class="container">
<!-- DJ Picture -->
<img src="Pictures/dirtyharris.jpg" class="img1" />
<div class="box">
<!-- DJ Name -->
<span class="techno"> ThreeSixty & Dirty Harris</span>
<!-- Song Title -->
<h2>Louka (Funkagenda Re-Edit)</h2>
<!--Song Description(179 characters with spaces)-->
<h4>I had to include this one since it literally took over control of me while driving the other morning. I was bouncing around in my seat like a little kid who desparately needs to use the bathroom. </h4>
<!--Song file info-->
<div class="player">
<body><a id="m11" class="audio {skin:'#010101',showVolumLevel:false,showTime:false,ogg:'MP3/ThreeSixty, Funkagenda - Loudka (Funkagenda Re-Edit).ogg'}" href="MP3/ThreeSixty, Funkagenda - Loudka (Funkagenda Re-Edit).mp3"></a>
</div>
</div>
</div>
다음은 jquery입니다.하지만 작동하지 않습니다.
function playNext(idx){
var players=$(".audio");
document.playerIDX = idx+1 <= players.length-1 ? idx+1 : 0;
players.eq(document.playerIDX).mb_miniPlayer_play();
}
내 옆에
http://www.jplayer.org/latest/demo-02-jPlayerPlaylist/
작품 벌금을? – Lloyd