ActiveX detect end of stream
Posted: 28 Oct 2006 08:51
Hello,
I'm making an audio player with VB 2005 and I was thinking of using VLC ActiveX.
This is how I open an audio file and start playing it:
But how can I detect the end of the audio track??
The pauseEvent, playEvent and stopEvent did not seem to work. And I could not find an event for end of stream!
Or should I use another component, since I do not need to use the built in playlist functions included in the ActiveX plugin?
PS: I have AutoLoop and AutoPlay disabled.[/code]
I'm making an audio player with VB 2005 and I was thinking of using VLC ActiveX.
This is how I open an audio file and start playing it:
Code: Select all
VLC.playlistClear()
VLC.addTarget("D:\Track03.MP3", Nothing, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0)
VLC.play()
The pauseEvent, playEvent and stopEvent did not seem to work. And I could not find an event for end of stream!
Or should I use another component, since I do not need to use the built in playlist functions included in the ActiveX plugin?
PS: I have AutoLoop and AutoPlay disabled.[/code]