Buffering media content while playing another in Windows Media Player using C #

I am developing an application in C # that has a form with built-in Windows Media Player. My app has several links to some online stuff. and I want the user to change content one by one using a button. Since WMP has spent some time buffering for the next content, I want to continue playing the current content. The class AXWindowsMediaPlayer

has an event called buffering that signals when the media player has finished buffering content. But I couldn't achieve this with a single AXWindowsMediaPlayer object. No matter what I did, I couldn't keep playing the first content while buffering the second. :(

Any ideas?

Thanks in advance.

+1


source to share


1 answer


I suggest two instances of the player control that you change as needed.



Alternatively, if the connection is fast enough, it will cache each item on the local system and replay from there.

+1


source







All Articles