Solved

Using VLC in Visual Basic 2008

Posted on 2009-05-06
2
3,305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: 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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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