Solved

Using VLC in Visual Basic 2008

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

763 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