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.

Edited 3 Years Ago by tinstaafl

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

Edited 3 Years Ago by tinstaafl

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

Edited 3 Years Ago by swathi sajja

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...)

Edited 3 Years Ago by Teme64: Syntax coloring

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

Edited 3 Years Ago by swathi sajja

This article has been dead for over six months. Start a new discussion instead.