VB6 and VLC

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

VB6 and VLC

Postby chris2000 » 14 Feb 2012 15:53

Hi,
I want to view DVB-T with VLC

i try to use VLC 1.0.6 and newer with VB and when i go to select componets vlc i take that error "Name conflicts with existing module, project, or object library".
That mean i cant user VLC 1.0.6 and newer with componets? With 1.0.5 and lower work the activex.

With that code i can view a channel
VLC2.playlist.Add "dvb-t://frequency=674000000", Null, "program=1"
VLC2.playlist.play

I try to use VLC 1.0.6. and newer as References.
and with code i can see
Dim VLC2 As New AXVLC.VLCPlugin2
VLC2.playlist.Add "dvb-t://frequency=674000000", "", "program=1"
VLC2.playlist.play

BUT i see to a new window not inside to from. How can move that window inside to a picturebox?
(i try SetParent, MoveWindow but when select a new channel make a new window)

There are code how to take the "Program Now, Next" or EPG with componets or References?

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

Re: VB6 and VLC

Postby RSATom » 15 Feb 2012 05:13

When did "Name conflicts with existing module, project, or object library" error occur? when you try put VLC ActiveX on form?

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 15 Feb 2012 12:20

yes when i try to put VLC ActiveX on form i take that message.
with vlc 1.0.5 and older work OK but with newer version i take that message.

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

Re: VB6 and VLC

Postby RSATom » 15 Feb 2012 13:36

I think you need somehow remove references to old version of VLC ActiveX from your project, and readd new version.

btw, you can try this:
http://code.google.com/p/vc-axnp-vlc/do ... .02.15.zip

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 15 Feb 2012 14:10

that message i take with vlc 1.0.5 and newer with componets.
http://imageshack.us/photo/my-images/442/18942334.jpg/
When i put at Reference work.

With new Dll (send me) i can componet at VB but when i try to put control to form i take thar error
http://imageshack.us/photo/my-images/408/tv2t.jpg/

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 15 Feb 2012 14:14

http://imageshack.us/photo/my-images/832/tv3u.jpg/
with References work with all version but when i play a file or DVB open a new window and not inside to my form or picturebox.

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

Re: VB6 and VLC

Postby RSATom » 15 Feb 2012 14:50

try uninstall your current VLC version, and install latest nightly build from http://nightlies.videolan.org/build/win32/?C=M;O=D (I have some doubts that my version is compatable with something other).

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 15 Feb 2012 15:08

unistall everything and i try that
http://nightlies.videolan.org/build/win ... -win32.exe

same
(i can checked with References but i cant checked with componets)

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 15 Feb 2012 15:15

try download VB6 portable from here
http://s000.tinyupload.com/index.php?fi ... 05&gk=hyip
to check it if you can

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

Re: VB6 and VLC

Postby RSATom » 15 Feb 2012 16:44

what about VB 2008 or 2010 Express? did you try it?

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 15 Feb 2012 17:07

I dont know very well vb2008 or vb2010
i know good vb6.

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

Re: VB6 and VLC

Postby RSATom » 16 Feb 2012 08:11

I tried it with vb6 (full, not portable) - it works. try create new empty project and add control to it, and write here if it success or not.

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 16 Feb 2012 10:20

i unistall VLC
install the last from here http://nightlies.videolan.org/build/win ... -win32.exe
make a empty VB project.
try to put componets VLC with not success.
try to put References and work.

Can you send me a test project with componets VLC to see?

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

Re: VB6 and VLC

Postby RSATom » 16 Feb 2012 11:39

I've found some problems with yesterday's version. Try new one:
http://code.google.com/p/vc-axnp-vlc/do ... .02.16.zip

Simplest VB6 project:
http://disk.tom.ru/h4nh16r/1/9b937/VB6VLCTest.zip

And one more, my axvlc.dll needs VC 2008 Redistributable:
http://www.microsoft.com/download/en/de ... LSUS007998

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 16 Feb 2012 15:00

with the last axvlc.dll work the componets.

VLCPlugin21.VersionInfo = 2.1.0-git-20120216-0009 Rincewind

I try later my code to check it.

what is diferent at VLCPlugin, VLCPlugin2?

How i can take from DVB-T what play now and Next (Epg)?

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 16 Feb 2012 15:34

For DVB-T

VLC2.playlist.Add "dvb-t://frequency=654000000:bandwidth=8", "TV", "program=1"
VLC2.playlist.play

when try to play next Program (2) play again the 1.

VLC2.playlist.stop
VLC2.playlist.items.Clear
VLC2.playlist.Add "dvb-t://frequency=654000000:bandwidth=8", "TV", "program=2"
VLC2.playlist.play


I use that code to work
VLC2.playlist.Add "dvb-t://frequency=654000000:bandwidth=8", "TV", "program=1"
VLC2.playlist.Next
and for next channel
VLC2.playlist.Add "dvb-t://frequency=654000000:bandwidth=8", "TV", "program=2"
VLC2.playlist.Next
and work OK.

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 16 Feb 2012 15:37

I try to play video file with that Code

VLC.addTarget sFile, Null, VLCPlayListAppendAndGo, 0
VLC.play

or

VLC2.playlist.Add sFile
VLC2.playlist.play

But i cant play. With older version the video work OK.

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

Re: VB6 and VLC

Postby RSATom » 17 Feb 2012 04:21

what is diferent at VLCPlugin, VLCPlugin2?
http://wiki.videolan.org/ActiveX
http://wiki.videolan.org/Documentation:WebPlugin
How i can take from DVB-T what play now and Next (Epg)?
I think Epg not supported by ActuveX (it have no corresponding functions), but I am don't sure.
Last edited by RSATom on 17 Feb 2012 04:31, edited 1 time in total.

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

Re: VB6 and VLC

Postby RSATom » 17 Feb 2012 04:23

I try to play video file with that Code

VLC.addTarget sFile, Null, VLCPlayListAppendAndGo, 0
VLC.play

or

VLC2.playlist.Add sFile
VLC2.playlist.play

But i cant play. With older version the video work OK.
newer versions of VLC needs "file:///" in beginning

jesicawolen
New Cone
New Cone
Posts: 1
Joined: 17 Feb 2012 08:09

Re: VB6 and VLC

Postby jesicawolen » 17 Feb 2012 08:25

New active X control provide better functionality.

chris2000
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Feb 2012 15:31

Re: VB6 and VLC

Postby chris2000 » 17 Feb 2012 12:16

1. yes with "file:///" play Files (thanks)
2. EPG. If i cant take the EPG there are a option to take what play Now, Next? or export the EPG to xml file and read later from that?
I bilieve when play DVB-T the VLC2.input.Position, VLC2.input.Length is from EPG (what play Now).
3. I try to put Logo and work. But how i can resize the picture? i dont now how work vlc2.video.logo.Position at VB6.
Only PNG files can see? Can i put more that one bitmap on video?
4. Try and the Overlay Text and work. But when i try to maker faster Refresh (VLC2.video.marquee.Refresh < 300) lose fps from Video.
Can i put more that one Text on video?

Thanks RSATom for your time.

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

Re: VB6 and VLC

Postby RSATom » 17 Feb 2012 15:59

sorry, I don't know answers for that questions...

6i6i
New Cone
New Cone
Posts: 9
Joined: 21 Mar 2012 11:57

Re: VB6 and VLC

Postby 6i6i » 21 Mar 2012 12:01

Hi!

Iam having the same problem as you descriped.
I want to show in my VB6 Project, where i integrated VLC nightly trough activex, what is actually be played on my DVB-T stream.

Do you made any progress on this?

Thanks

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

Re: VB6 and VLC

Postby RSATom » 22 Mar 2012 11:14

what exactly problem do you have?

6i6i
New Cone
New Cone
Posts: 9
Joined: 21 Mar 2012 11:57

Re: VB6 and VLC

Postby 6i6i » 23 Mar 2012 12:13

Thanky you for your reply.

I would like to display what is actually played (title Information) in my own Visual Basic 6 Application, where i integrated VLC with the ActiveX 2 Component.

I tought I can get it through the Media Description Object descriped here: http://wiki.videolan.org/Documentation: ... ion_Object, but this is not possible in active x.
I also don't know if I can get exactly what i want through this media description object or if it is only for getting information from normal audio and video tracks and not for dvbt streams.

I made a screenshot and marked the information that is displayed if I open VLC the normal way.:
Image


Thanks


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 1 guest