VLC Player in VB.NET won't seem to detect end of playback, a
Posted: 25 Jan 2013 13:32
VLC Player in VB.NET won't seem to detect end of playback, am I doing something wrong?
My intention was to use "_MediaPlayerEndReached" to make the player move onto the next video but instead once playback of a video completes nothing happens, it just stops (as in image below).
Rather than moving onto next video it just stays like this:
FYI: Clips used for testing are free trailers.
Code:
My intention was to use "_MediaPlayerEndReached" to make the player move onto the next video but instead once playback of a video completes nothing happens, it just stops (as in image below).
Rather than moving onto next video it just stays like this:
FYI: Clips used for testing are free trailers.
Code:
Code: Select all
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
AxVLCPlugin21.playlist.items.clear()
AxVLCPlugin21.playlist.add("file:///C:/Users/Adminx/Downloads/The_Hobbit_Full_Length_Trailer_2_HD.mp4")
AxVLCPlugin21.playlist.play()
End Sub
Private Sub AxVLCPlugin21_MediaPlayerEndReached(sender As Object, e As EventArgs) Handles AxVLCPlugin21.MediaPlayerEndReached
AxVLCPlugin21.playlist.items.clear()
AxVLCPlugin21.playlist.add("file:///C:/Users/Adminx/Downloads/ShortestVid.avi")
AxVLCPlugin21.playlist.play()
End Sub
End Class