2012-10-03 5 views
0

jplayer's playlist의 위치를 ​​바꿀 수 있을지 궁금합니다. 나는 그 addo가 알고 있지만, 플레이어의 오른쪽이나 같은 페이지에 나타나기는하지만 선수와 거의 같은 위치를 바꾸는 것에 대한 언급은 발견하지 못했습니다. Dirty mock of what i need with JPlayerPlaylist
나는 내 목록을 쓸 수 있다는 것을 알고 있습니다. "playlist"기능을 구현하지만, 기본 playlist addon의 기능으로는 그렇게 할 수 없다는 것을 알아야합니다.JPlayer 재생 목록의 위치 지정

답변

0

예를 들어, 재생 목록의 일부 DIV를 사용하여 제작하고 사업부의 항목에 JPlayer의 기능을 구현 :

Response.Write(i + " <a href='javascript:play(" + song.ID + ")' >" + song.ArtistName + " " + song.Title + " (" + song.AlbumTitle + ", " + song.Year + ")" + 
          "</a><br>"); 

play()은 여기서

function play(songId) { 
      $.ajax({ 
       cache: false, 
       url: "poligon.aspx", 
       data: "songId=" + songId, 
       success: function (result) { 
        $(".jp-title").html(result.Text); 
        $("#jquery_jplayer_1").jPlayer("setMedia", { 
         mp3: result.MP3 
        }); 

        SetNextSong(result.NextSongID); 
        SetPreviousSong(result.PreviousSongID); 

        $("#jquery_jplayer_1").jPlayer("play", 0); 
       }, 
       error: function (error) { 
        alert(error); 
       } 
      }); 
     } 
관련 문제