2015-01-24 5 views
0

때 두 번째 비디오 프로그램 정지 작업에 첫 번째 비디오 종료 스위치 :C#을 VLC 재생 목록 정지 작업을 자동 재생시 다음 비디오

private void axVLCPlugin21_MediaPlayerEndReached(object sender, EventArgs e) 
{ 
    if (listBox1.SelectedIndex < (listBox1.Items.Count - 1)) 
    { 
     axVLCPlugin21.playlist.next(); 
     listBox1.SelectedIndex += 1; 
     listBox1.Update(); 
    } 

    else 
    { 
     axVLCPlugin21.playlist.playItem(0); 
     listBox1.SelectedIndex = 0; 
     listBox1.Update(); 
    } 
} 
+0

당신이 뭘 하려는지 설명 할 수 있습니까? – gudthing

+0

https://www.youtube.com/watch?v=xJkie6OgwkE에서 재생 목록 자동 재생을 만듭니다 –

+0

* "프로그램 작동 중지"*가 정확히 무엇을 의미하는지 설명해야합니다. 오류나 예외가 있습니까? 디버깅을 시도 했습니까? – Filburt

답변

0
private void axVLCPlugin21_MediaPlayerEndReached(object sender, EventArgs e) 
    { 
     if (listBox1.SelectedIndex < (listBox1.Items.Count - 1)) 
     { 
      axVLCPlugin21.playlist.stop(); 
      axVLCPlugin21.playlist.next(); 
      listBox1.SelectedIndex += 1; 
      listBox1.Update(); 
     } 
     else 
     { 
      axVLCPlugin21.playlist.stop(); 
      axVLCPlugin21.playlist.playItem(0); 
      listBox1.SelectedIndex = 0; 
      listBox1.Update(); 
     } 
    } 
+0

"axVLCPlugin21.playlist.stop();" 파일을 변경할 때마다 중지 –