How to play the play list in vlc player by using vb.net code

hmmmm, not sure what you're after. if your looking to call vlc istelf and pass the playlist, this is a simple shellexecute using the windows api, look at my answer in this post. It has a very nice sample in doing just that.

Thanq for the quick reply.
i Know how to open the file,i want to play the playlist (.XSPF) files in vlc player by using vb.net code.

I think just click on the options button of the playlist not so sure name but quite sure that was a 2nd last tab click on the tab there opio0n avaialable of playlist, click and past songs there which you want to play.

As long as the file is associated with VLC opening the file will use VLC to open it. Depending on the setting in VLC it should start playing.

With AxVLCPlugin21
            .CtlVisible = True
            .playlist.items.clear()
             .playlist.add(OpenFileDialog1.FileName)
            .playlist.play()
            .Toolbar = True
            .Show()
        End With

in the above code playing single song possible but i wont to play playlist by using the vb.net code.pls give suggestion how to play

According to members that show up in intellisense you should be able to do something like this:

For I= 0 to axvlcplugin21.playlist.items.count-1
    axvclplugin21.playlist.playitem(I)
next
With AxVLCPlugin21
.CtlVisible = True
.playlist.items.clear()
.playlist.add(OpenFileDialog1.FileName)
.playlist.play()
.Toolbar = True
.Show()
End With

.playlist.add(OpenFileDialog1.FileName)

in the above line adding only single file how to add multiple files

It looks to me that you just need to insert another .playlist.add() statement

How to play the play list that is .xspf formate its possible or not pls give a suggestion how to play

Use a loop to add multiple files:

    With AxVLCPlugin21
    .CtlVisible = True
    .playlist.items.clear()

    ' Loop until user presses Cancel button and
    ' add files to the playlist. The code _does not_ check the type of the file!
    Do Until OpenFileDialog1.ShowDialog() <> Windows.Forms.DialogResult.OK
       .playlist.add(OpenFileDialog1.FileName)
    Loop

    .playlist.play()
    .Toolbar = True
    .Show()
    End With

(Sorry about missing syntax coloring. I still haven't found how to do it!!!)
(Never mind :) It seems to come by itself...)

In above code also not working to play playlist(.xspf) file.

If its possible to play the play list(.xspf formate)in vlc by using vb.net code.If Yes, how?

you can try

 Dim strFilename As String
strFilename = Movies.PC_adresTextBox.Text
 AxVLCPlugin21.playlist.add("file:///" & strFilename)
 AxVLCPlugin21.playlist.play()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.