Solved

Playing audio and video files in vb.net 2008

Posted on 2010-08-27
6
367 Views
Last Modified: 2012-05-10
Hello,

I have vb.net 2008 and I want to play all types of audio files like wav, mp3 etc and video files like avi, flv etc.
But I do not want to use COM components of .net. Is there any other way? Also for small applications third-party controls prove to be costly.

Regards,
MI
0
Comment
Question by:vj_mi
6 Comments
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 33548122
I think you only have option to use Windows Media Player control or as third party You can use JavaSonic control.

Other way is to use Silverlight in your project.
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33548147
Check out the following  link. I think you can use the first approach in there:

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/44f84924-636b-4f6a-a551-64e5ad1eef13

0
 
LVL 16

Expert Comment

by:Vikram Singh Saini
ID: 33548402
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:vj_mi
ID: 33553477
Each of this can potentially impact the client's PC where my software will get installed.

For example, in case of DirectX, what if the user has latest version of DirectX? Also I will need to ship direct x with my setup.
And I do not want to use COm components since they make us go crazy as the user has to install the com compoenet. Any simpler versions? Or any freeware tools?

Regards,
MI
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33553493
With DirectX, you do not need to ship entire DirectX. All you need is to incude Microsoft.DirectX.AudioVideoPlayback.dll in your setup/deployment. It does not affect your stuff, even if your users have previous/newer version of DirectX.
0
 
LVL 16

Accepted Solution

by:
Vikram Singh Saini earned 500 total points
ID: 33553500
Hi,

And for the link I provided you I have used Windows Media Player component & if it is .net application it would run on Windows System. And all Windows System comes with Windows Media Player. So I don't think there is some issue in using that.

Regards,
VSS
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

772 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