Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to play a song?

Status
Not open for further replies.

hede

Programmer
Sep 8, 2001
2
0
0
US
Hello,

I am new to programming C# so please be patient with me.

I am trying to use Media Player to play a song from my harddrive. But I do not know which classes and such to use from the MediaPlayer dll.

Please someone help me getting along. A code example will also be much appreciated.

thnks
hede
 

IMLTHO, the WMP9 API sucks... Last I checked, there was no native .NET/managed API; you have to make do with the auto-generated AxInterop wrapper. Also, WMP9 has become so web-centric (and, consequently, state-free) as to make it relatively unreliable as an embedded component.

The download is bigger, but DirectX9 provides a much simpler (and more robust) audio-visual playback component, along with a native managed assembly, unlike Media Player.

Carter Wickstrom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top