[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using VLC in Visual Basic 2008

Posted on 2009-05-06
2
Medium Priority
?
3,435 Views
Last Modified: 2013-11-26
I want to use the VLC player to play mpeg2 files in my vb.net program.  I'm new to VB.NET and when I tried using the VLC ActiveX control, I get "Reference to a non-shared member requires an object reference".  Also, is there a better way to use VLC instead of the ActiveX control or is it ok to still use that in .NET.  Thank you, Ron
AXVLC.VLCPlugin.addTarget(edOutput.Text, , VLCPlaylistMode.VLCPlayListReplace, 0)
AXVLC.VLCPlugin.Play

Open in new window

0
Comment
Question by:rmocogni
2 Comments
 
LVL 15

Accepted Solution

by:
oobayly earned 2000 total points
ID: 24320508
It looks like you have to create an instance of the VLCPlugin object rather than using Shared methods. Try something like this:
Dim vlc As New AXVLC.VLCPlugin()
vlc.addTarget(edOutput.Text, , VLCPlaylistMode.VLCPlayListReplace, 0)
vlc.Play()

Open in new window

0
 

Author Closing Comment

by:rmocogni
ID: 31578768
Thank you!!  That is exactly what I needed.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question