How can I play a wav file in Silverlight 3?
How ca开发者_Python百科n I play a wav file in Silverlight 3.File is on other web site.
You would use the MediaElement to play a sound file. To be honest, I was unable to get Silverlight to play a .WAV file and had to convert it to WMA. But it may have just been an unsupported codec.
Seems like SL2 don't support wav playback. But in SL3 wav playback is support.
I hope this can help.
http://code.msdn.microsoft.com/wavmss
http://blogs.msdn.com/gillesk/archive/2009/03/23/playing-back-wave-files-in-silverlight.aspx
Regards.
精彩评论