Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » General Visual Basic » Embedding VLC player in Vb form


Embedding VLC player in Vb formExpand / Collapse
Author
Message
Posted 7/20/2008 9:29:59 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/21/2008 7:27:37 AM
Posts: 1, Visits: 4
Hi,

      Im new to Vb programming.

      Im using VLC plugin axvlc.dll in my project, Please help me with the code to play a video file,It would be even helpfull if  you tell me the code for creating a playlist.

     And help will be greatly appreciated.

     Thanks,Naveen

Post #25428
Posted 11/15/2008 5:07:18 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/13/2010 4:36:30 PM
Posts: 14, Visits: 18
Hi.

Download the latest version of VLC, i'm sure it will work anyway, but just to have the same setup as me.

Add the VLC ActiveX as a component to the VB5 /6 project, it will put 2 traffic cones into the toolbox, called VLCPLugin and VLCPlugin2.

Place a new VLCPlugin control on your form and size it suitably, and add the following code to a button or the form load:

VLCPlugin1.addTarget "c:\winvideo\sample.avi", Null, VLCPlayListInsert, -666
VLCPlugin1.play

If you turn on autoplay, or use a vlc play list option with the word "go" in it, it will play the clip automatically.

You can use the fullscreen option to put it into fullscreen mode.

Hope this helps.

Regards

~Wilksey~
Post #26254
Posted 5/7/2009 3:16:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/7/2009 3:15:47 AM
Posts: 1, Visits: 2
Hi,

I've got a question regarding the VLC player and VB6.

I want a form with multiple buttons which contains a link to a film. The film is on my HD in a subdir video_TS in VOB format.

VLC player plays the film i click first. Then i hit Stop. The second button points to a different film, but again the first clicked film starts. I tried to empty the playlist, but that doesn't work.

I used vlcplugin1.addtarget "C:\Films\Film1\", "dvd://", vlcplaylistReplace, 1 to add a film.

And vlcplugin1.stop and vlcplugin1.playlistclear to stop a film.

Anybody ideas what i should do the get this work?

Post #27640
Posted 5/18/2009 7:20:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/18/2009 7:16:13 AM
Posts: 1, Visits: 1
Hi

I try this code but it will not work

if u have any other Sample Code Of VLC In Vb then please me

my email Address is : dhol.gaurav@yahoo.com

thanks
------------
Post #27683
Posted 11/26/2009 8:05:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/21/2013 6:51:48 AM
Posts: 8, Visits: 17
Hello
Solution For your problem....

VLCPlugin21.playlist.Add ("D:\Songs\Britney Spears\04-britney_spears-break_the_ice.avi")
VLCplugin21.playlist.play

.avi or .mp3 or .mpg: this sholud important....
Check it out. Then reply, my ID is
whitewinter_alone@yahoo.co.in
Byeeee




With Regards,
Pasupathi,
(whitewinter_alone@yahoo.co.in)
Post #28441
Posted 6/5/2012 11:35:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/11/2012 8:41:38 AM
Posts: 2, Visits: 19
what about the latest version of VLC???????

thanks in advance for your help
Post #31457
Posted 6/6/2012 8:57:21 AM


Forum God

Forum God

Group: Moderators
Last Login: Today @ 11:42:27 AM
Posts: 1,908, Visits: 5,512
Welcome to A1vbcode.

nourtamer85 (6/5/2012)
what about the latest version of VLC???????

VLC Media Player 2.0.1

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #31460
Posted 6/6/2012 10:45:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/11/2012 8:41:38 AM
Posts: 2, Visits: 19
[quote]Keithuk (6/6/2012)
Welcome to A1vbcode.

nourtamer85 (6/5/2012)
what about the latest version of VLC???????


VLC Media Player 2.0.1[/quote]

thanks my friend , but I am not asking about the vlc version itself .

what I am asking about is that i had a program that use vlc 0.86 and everything is perfect
when i tried to install the latest version of vlc this vb6 program woudn.t work not any more , what i mean the axvlc.dll didn.t work . I tried to add the dll file again but it still show me this lovely message
Name conflicts with existing module, project, or object library

what should i do???????
thanks for your previous help and for your advanced help

Post #31461
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 3:57pm