?
Solved

Using VLC in Visual Basic 2008

Posted on 2009-05-06
2
Medium Priority
?
3,347 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

765 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