Solved

Using VLC in Visual Basic 2008

Posted on 2009-05-06
2
3,180 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 500 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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 …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now