4
Contributors
12
Replies
16
Views
4 Years
Discussion Span
Last Post by swathi sajja
0

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 by tinstaafl

0

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.

0

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.

0

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.

0
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

0

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 by tinstaafl

0
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 by swathi sajja

0

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

0

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 by Teme64: Syntax coloring

0

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

Edited by swathi sajja

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.