Private myPlayer As New MediaPlayer As "myPlayer"
Public Sub Form_Open()
myPlayer.SetWindow(DrawingArea1)
myPlayer.URL = Media.URL("/home/user/first_vid.mp4")
myPlayer.Play()
' myPlayer.Seek(...) ' Use this to save time if your video is long
End
Public Sub DrawingArea1_MouseDown()
'This code to launch second video only works if the previous video was not let to reach the end.
myPlayer.URL = Media.URL("/home/user/second_vid.mp4")
myPlayer.Play()
End
Can someone please confirm this weird behaviour? Could this be a bug Benoit Minisini might be willing to fix?2) I also tried another aproach. I would expect this to second code to play two files one after the other. Unfortunately the playback stops at the end of the first video:
Private myPlayer As New MediaPlayer As "myPlayer"
Public Sub Form_Open()
myPlayer.SetWindow(DrawingArea1)
myPlayer.URL = Media.URL("/home/user/first_vid.mp4")
myPlayer.NextURL = Media.URL("/home/user/second_vid.mp4")
myPlayer.Play()
End