How can I play a wav file in Silverlight 3?

How can I play a wav file in Silverlight 3. The file is in another website.

+2


a source to share


2 answers


You have to use MediaElement to play the sound file. To be honest, I couldn't get Silverlight to play a WAV file and had to convert it to WMA. But it may have been an unsupported codec.



+1


a source


SL2 doesn't seem to support wav playback. But in SL3 wav playback is support.

Hope this helps.

http://code.msdn.microsoft.com/wavmss



http://blogs.msdn.com/gillesk/archive/2009/03/23/playing-back-wave-files-in-silverlight.aspx

Sincerely.

+1


a source







All Articles