I am a newbie to this forum and libVLC. I have came across a problem, which is driving me crazy . This is the problem
On the form load app adding a MP4 video (say 1.mp4) to the Play list. Then I am clearing the play list. I used the
Code: Select all
*.playlist.items.count
this is my code
Code: Select all
'Clear the List
Private Sub cmdClear_Click()
Dim i As Integer
If (vlcp.playlist.items.Count > 0) Then
If vlcp.playlist.isPlaying Then
vlcp.playlist.stop
End If
vlcp.playlist.items.Clear
End If
End Sub
'Add new Item to the List
Private Sub cmdNew_Click()
vlcp.playlist.Add (App.Path & "/2.mp4")
If (vlcp.playlist.isPlaying = False) Then
vlcp.playlist.play
End If
End Sub
'Play Next Item
Private Sub cmdNext_Click()
If (vlcp.playlist.isPlaying) Then
vlcp.playlist.Next
End If
End Sub
Private Sub Command1_Click()
End Sub
Private Sub cmdPlay_Click()
vlcp.playlist.play
End Sub
Private Sub Form_Load()
vlcp.playlist.Add (App.Path & "/1.mp4")
vlcp.playlist.play
End Sub