How to play video one by one, if i play (press button) only the end of file is playing. If i use playlist its work, my code :
Code:
Dim path As String = System.AppDomain.CurrentDomain.BaseDirectory() & "Video\"
AxWindowsMediaPlayer1.uiMode = "none"
AxWindowsMediaPlayer1.settings.setMode("loop", True)
If Not Directory.Exists(path) Then
Else
Dim dInfo As DirectoryInfo = New DirectoryInfo(path)
For Each File As FileInfo In dInfo.GetFiles("*.mp4")
'' ''AxWindowsMediaPlayer1.newMedia(path & File.Name)
''Playlist.appendItem(AxWindowsMediaPlayer1.newMedia(path & File.Name))
AxWindowsMediaPlayer1.URL = path & File.Name
''Application.DoEvents()
Next
' '' ''AxWindowsMediaPlayer1.Ctlcontrols.play()
End If
Comment