Page 1 of 1

activex plugin2 CDDA

Posted: 13 Oct 2021 10:41
by Xlab25
Hello
I use vlc activex plugin2 with vb6. No pb to open mp3 or mp4 :

ex:
Dim vlcControl As Object
Dim WithEvents vlcPlayer As AXVLC.VLCPlugin2

Private Sub Form_Load()

Set vlcControl = Controls.Add("VideoLAN.VLCPlugin.2", "vlcControl")
vlcControl.Visible = True
Set vlcPlayer = vlcControl.object
vlcPlayer.playlist.Add ("file:///C:/test.mp3")
or
vlcPlayer.playlist.Add ("file:///C:/test.mp4")
vlcPlayer.playlist.play
end sub

if i want to read cd audio, vlcPlayer.playlist.Add ("cdda:///D:/") work, but i cant read a track
vlcPlayer.playlist.Add ("cdda:///D:/#2") or r=vlcPlayer.playlist.Add ("cdda:///D:/","",":cdda-track=2") don't work
i want also knows the count of tracks

Thanks