Click here to Skip to main content
15,879,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why shall i install Windows Media Player To my app can play the audio files ?

i created an audio player with C# in WPF and i used Media Element but i changed it with WMP.dll because i want it work without needed to Windows media player is installed or any other codecs, but now if i uninstalled Windows media player from my pc.

i get error that Visual C# can`t find

C#
WMPLib.WindowsMediaPlayer


also i added the WMP.dll to the project before i uninstall the Windows media player from my pc .

dose there anyway to fix this ?

i want my app to play music files without require to windows media player in installed , i wanna use only .DLL files.

any advice tho ?

sorry for my bad English ....
Posted
Comments
Kenneth Haugland 15-Jul-12 9:22am    
Cant you search for any player on the local machine, and use whatever you find. I would think a media player would need to be registered in regedit, but I dont know that for sure....
Ali Al-Masry 15-Jul-12 11:37am    
i think you didn't get what i am asking for...

1 solution

Because WPF uses mediaplayer and media players uses codecs. If you remove them you cannot play anything. Codecs can be huge in size as there are, literally, a lot of them. I think that's the reason WPF does not includes a player on its own.
 
Share this answer
 
Comments
Ali Al-Masry 15-Jul-12 11:31am    
so there is noway to make my audio player app play songs without Windows media player ?
Ali Al-Masry 16-Jul-12 3:57am    
Hello guys ? any advice ?

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