Page 1 of 1

VLC and Visual Basic

Posted: 06 May 2012 16:22
by thuemmy
Hello and thanks to take time for read this post. I don't know, if this is the correct area to post my question. Unfortunatly is english not my motherlanguage. If there is anybody who will answer, please try to do this so simple as possible :)

Here is my problem:
At this time, i try to create a small Visual Basic program to organize my selfmade-video-clips (*.mov). To get experience in programmin with VLC. I started a new project in Visual Basic 2010 Express and added the "VLC ActiveX Plugin and IE Web Plugin v2 (Version 1.0). The code in form_load-event is like this:

Code: Select all

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxVLCPlugin21.playlist.add("d:\file0024.mov") AxVLCPlugin21.playlist.play() End Sub
When I debug the program, the form will be shown with the VLC-object in it. But there is only a black background and the white-orange thing (i don't know the english word for it) in the middle. That's it! No error. Of course i tried to play the clip in the VLC-Player and that works.

I hope you unterstand my english.

Thank you for reading this
thuemmy

Re: VLC and Visual Basic

Posted: 06 May 2012 16:54
by RSATom
use "file:///d:/file0024.mov"

Re: VLC and Visual Basic

Posted: 06 May 2012 17:01
by thuemmy
It works! Thanks a lot for this excelent answer.

Greets thuemmy

Re: VLC and Visual Basic

Posted: 31 Oct 2012 11:59
by DURDUR
Good morning,

Sorry for my language, my english is so bad.

Why 3 x "/" in "file:/// ......." ?

Thanks

Re: VLC and Visual Basic

Posted: 31 Oct 2012 13:19
by Rémi Denis-Courmont
Because Microsoft says so.

Re: VLC and Visual Basic

Posted: 31 Oct 2012 13:24
by DURDUR
Yes, but this replace any things ?

Re: VLC and Visual Basic

Posted: 31 Oct 2012 13:36
by Rémi Denis-Courmont
Can't parse question.

Re: VLC and Visual Basic

Posted: 31 Oct 2012 19:22
by DURDUR
Sorry,

is that they replace an instruction or something else?

Re: VLC and Visual Basic

Posted: 31 Oct 2012 20:24
by Rémi Denis-Courmont
Microsoft specified the file URI syntax for its (family of) operating systems. That is all there is to it.

Re: VLC and Visual Basic

Posted: 31 Oct 2012 21:23
by DURDUR
Thanh you very much.

Another question:

any command closing vlc after video playback?

Thank.

Re: VLC and Visual Basic

Posted: 18 Nov 2013 16:16
by Alfie
NEW VB6 TESTED SUGGESTION, NOV 2013...

On forum here titled "VLC VB6 Active X plugin Issues." I posted a TESTED solution for VB6 (& probably works in VB.Net as well)..
See forum here titled "VLC VB6 Active X plugin Issues." Cheers