I'm looking for detailed information on what decides the formats of media that MediaElement
can play, I can't seem to find any definitive source. I've read somewhere that if it can be played in WMP then MediaElement
can play it. Is this true? If it is, then my next question is where can I find the capabilities and limitations of WMP? And where does the association lie between WPF's MediaElement
and WMP? I'm looking for a better understanding of these components and video playback in WPF and have so far struggled to find anything online.
MediaElement internally uses the WMP ActiveX. In theory, MediaElement could/should be able to play anything WMP can, but it's not always the case, for example .vob files.
When you play a file in MediaElement, the Windows Media Player ActiveX is loaded. WMP will then decide to use DirectShow or MediaFoundation paths for playing the media. The types of media it can play depends largely on what kind of codecs (DirectShow or MF) are installed on your computer. Once a media path is chosen, WPF will provide a custom presenter for the Enhanced Video Renderer so each video frame will be rendered to a D3D surface, primed for presentation within the WPF composition engine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With