Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to play mp3 through c# codeing ??
Posted
Comments
RaviRanjanKr 28-Nov-11 14:19pm    
did you try Google to get your answer or any other effort you have done.

As an alternative to the solution by Prasad (actually, by the author of the referenced article):

You can use Windows Media Player control. Basically, you will need to add COM reference to your project. See:
http://msdn.microsoft.com/en-us/library/bb383953%28v=vs.90%29.aspx[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/dd562851%28v=vs.85%29.aspx[^],
http://diptimayapatra.wordpress.com/2010/04/05/using-windows-media-player-com-in-wpf/[^].

Alternatively, you can find some wrappers or ports of third-party players, such as VLC:
http://en.wikipedia.org/wiki/VLC_media_player[^],
http://www.videolan.org/vlc[^].

See this CodeProject article: nVLC[^].

—SA
 
Share this answer
 
v2
Comments
RaviRanjanKr 28-Nov-11 14:30pm    
My 5+
Sergey Alexandrovich Kryukov 28-Nov-11 14:57pm    
Thank you, Ravi.
--SA
Try
MP3 Player for Windows 7[^]
Play MP3 Files Using C#[^]
and Its a common question to ask about how to play .Mp3 files using C# languages. Have a look there-CP Search-[playing mp3 and C#][^] for getting more similar question with solution.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Nov-11 14:58pm    
Some more alternative approaches to help, my 5.
--SA
RaviRanjanKr 28-Nov-11 15:31pm    
Thanks SA :)
code project has a good article, check link Audio player in C#[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Nov-11 1:51am    
My 5. There are other references -- please see my solution.
--SA
RaviRanjanKr 28-Nov-11 14:19pm    
My 5+
This is the updated useful information on the VLC component binding for.NET:
http://sourceforge.net/projects/libvlcnet/[^],
https://wiki.videolan.org/C_Sharp/[^],
https://wiki.videolan.org/.Net_Interface_to_VLC/[^].

Notably, you can find material for using the component for both WPF and System.Windows.Forms.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900