I was bored the other day and found someone having a problem with the MediaPlayer class. The person was trying to use a MediaTimeline to setup an infinite loop of a wave file, sounds easy right?
Well for whatever reason every time he would play the file it would skip and not play clearly. I got curious and decided to try his code out for myself. For whatever reason, in my case I could not even get any sound to play at all!
So, frustrated, i quickly created an example that wrapped the MediaPlayer class and created some custom logic to do an infinite loop (with an option to stop/play). Just for the heck of it, this simple class is now on MSDN Code Gallery.
To see the class for yourself, visit: http://code.msdn.microsoft.com/RepeatMediaPlayer
Have a working sample of a MediaTimeline looping a wave file using a MediaPlayer class? Post it in the comments, id love to see one!