Vb.NET and VLC

This forum is about all development around libVLC.
Sentio
New Cone
New Cone
Posts: 5
Joined: 25 Jul 2009 18:43

Vb.NET and VLC

Postby Sentio » 25 Jul 2009 18:46

Hi,

I need to add VLC to my project (vb.net or vb6) and record DVB-S stream.

is that possible?

Im beginner and cant Add vlc.dll to project .

it say's it cant be self register ..etc

Thank you for help

BenShoan
Blank Cone
Blank Cone
Posts: 10
Joined: 22 Jul 2009 01:34

Re: Vb.NET and VLC

Postby BenShoan » 28 Jul 2009 05:30

Install vlc on your PC
In VB-6 go to project references and browes to C:\Program Files\VideoLAN\VLC\axvlc.dll and add it to your list.

In your Form header add:
Private WithEvents Myvlc As AXVLC.VLCPlugin
Private Myvlc2 As AXVLC.VLCPlugin2

To play files

Dim VlcStartOptions As String
Set Myvlc = Nothing
Set Myvlc2 = Nothing
Set Myvlc = New AXVLC.VLCPlugin

VlcPlayerOptions = "no-quiet file-logging language=en osd video-title-show" _
+ " video-title-timeout=10000 disable-screensaver video-on-top " _
+ " directx-audio-device=2 " _
+ " directx-device=\\.\DISPLAY1"

'// this is to play video, you can find more options to start with on vlc-help.txt

MyVlc_1.addTarget "Filename.wmk, mp3..." , VlcStartOptions, VLCPlayListAppendAndGo, -666
MyVlc_1.Volume = 50
MyVlc_1.Play

.
.
.

Myvlc.pause


To close vlc:

MyVlc_1.Stop
MyVlc = Nothing
Myvlc2 = Nothing


to get extra functions:
Set Myvlc2 = Myvlc
Myvlc2.input.Rate

go for it

Sentio
New Cone
New Cone
Posts: 5
Joined: 25 Jul 2009 18:43

Re: Vb.NET and VLC

Postby Sentio » 28 Jul 2009 20:10

Hello,

Thank you, for information

Can we record Channels on DVB-S device with this DLL

Thanks


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 67 guests