VLC and Visual Basic

This forum is about all development around libVLC.
thuemmy
New Cone
New Cone
Posts: 3
Joined: 06 May 2012 15:52
Operating System: Windows
Location: Leipzig/Germany

VLC and Visual Basic

Postby thuemmy » 06 May 2012 16:22

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

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: VLC and Visual Basic

Postby RSATom » 06 May 2012 16:54

use "file:///d:/file0024.mov"

thuemmy
New Cone
New Cone
Posts: 3
Joined: 06 May 2012 15:52
Operating System: Windows
Location: Leipzig/Germany

Re: VLC and Visual Basic

Postby thuemmy » 06 May 2012 17:01

It works! Thanks a lot for this excelent answer.

Greets thuemmy

DURDUR
New Cone
New Cone
Posts: 4
Joined: 31 Oct 2012 11:52

Re: VLC and Visual Basic

Postby DURDUR » 31 Oct 2012 11:59

Good morning,

Sorry for my language, my english is so bad.

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

Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC and Visual Basic

Postby Rémi Denis-Courmont » 31 Oct 2012 13:19

Because Microsoft says so.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DURDUR
New Cone
New Cone
Posts: 4
Joined: 31 Oct 2012 11:52

Re: VLC and Visual Basic

Postby DURDUR » 31 Oct 2012 13:24

Yes, but this replace any things ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC and Visual Basic

Postby Rémi Denis-Courmont » 31 Oct 2012 13:36

Can't parse question.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DURDUR
New Cone
New Cone
Posts: 4
Joined: 31 Oct 2012 11:52

Re: VLC and Visual Basic

Postby DURDUR » 31 Oct 2012 19:22

Sorry,

is that they replace an instruction or something else?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC and Visual Basic

Postby Rémi Denis-Courmont » 31 Oct 2012 20:24

Microsoft specified the file URI syntax for its (family of) operating systems. That is all there is to it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DURDUR
New Cone
New Cone
Posts: 4
Joined: 31 Oct 2012 11:52

Re: VLC and Visual Basic

Postby DURDUR » 31 Oct 2012 21:23

Thanh you very much.

Another question:

any command closing vlc after video playback?

Thank.

Alfie
New Cone
New Cone
Posts: 3
Joined: 18 Nov 2013 15:32

Re: VLC and Visual Basic

Postby Alfie » 18 Nov 2013 16:16

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 17 guests