VB6, VLCPlugin2 and Play list
Posted: 20 Jan 2010 15:12
Hi,
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 to validate the playlist size it give me 0. Again I am adding a another mp4(say 2.mp4) file to the empty play list. Here is the problem, when I play(*.plalist.play), it is playing the 1.mp4 instead of 2.mp4. I AM NOT SURE WHERE I AM GOING WRONG. Please, please help!!!
this is my code
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