AxVLCPlugin21 fails to open multiple files at the same time

This forum is about all development around libVLC.
aalmoraa
New Cone
New Cone
Posts: 8
Joined: 24 Sep 2008 16:01

AxVLCPlugin21 fails to open multiple files at the same time

Postby aalmoraa » 04 Nov 2011 11:00

Hi all!

I'm using VB.net 2008 Express and trying to play multiple files in a form with AxVLCPlugin21, but I can't.
The program does not display any error message but only closes. Isn't it possible to play two or more files with
AxVLCPlugin21 or is there a specific way of managing it?

Thanks in advance...

Lodda
New Cone
New Cone
Posts: 2
Joined: 07 Nov 2011 23:03

Re: AxVLCPlugin21 fails to open multiple files at the same t

Postby Lodda » 07 Nov 2011 23:18

hi aalmoraa,

try this with an IMPORTDIALOG instead of OpenFileDialog1. Maybe you find ImportDialog in the Toolbox if you choose first the OpenFileDialog
sample is with ListBox1 & a Button I renamed it to btnOpenMedia

Private Sub btnOpenMedia_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpenMedia.Click
ImportDialog.FileName = Nothing ' "*.*"
ImportDialog.Filter = "Filme (*asf;*.avi;*.flv;*.mpg;*.mp4;*.mov;*.mkv;*.ts;*.wmv;*.vob)" & _
"|*asf;*.avi;*.flv;*.mpg;*.mp4;*.mov;*.mkv;*.ts;*.wmv;*.vob|" & _
"Musik (*.mp3;*wma;*.wav;*.mid;*.midi)|*.mp3;*wma;*.wav;*.mid;*.midi"
' without all files |All Files (*.*)|*.*"
ImportDialog.ShowDialog()
End Sub


Private Sub ImportDialog_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) _
Handles ImportDialog.FileOk
ImportDialogFileOk(ListBox1, ImportDialog, AxVLCPlugin21)
End Sub

Public Sub ImportDialogFileOk(ByVal playlist As ListBox, ByVal myDialog As OpenFileDialog, _
ByVal myPlayer As Object)
Dim Count As Int32

With Me 'or Name from your Form if you put this Sub in a Modul
Select Case .ImportDialog.FilterIndex
Case 1
'.....
Case 2
'.....
End Select
End With
For Each track As String In myDialog.FileNames()
playlist.Items.Add(track)
myPlayer.playlist.add(track)
Next
Count = Abspielliste.Items.Count
End Sub

Lodda
New Cone
New Cone
Posts: 2
Joined: 07 Nov 2011 23:03

Re: AxVLCPlugin21 fails to open multiple files at the same t

Postby Lodda » 07 Nov 2011 23:20

it's me again

change the line
"Count = Abspielliste.Items.Count" to Count = playllist.Items.Count


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests