Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Types of Video Can MediaElement Play?

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.

like image 524
Sio Avatar asked Aug 05 '10 17:08

Sio


1 Answers

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.

like image 85
Jeremiah Morrill Avatar answered Nov 15 '22 10:11

Jeremiah Morrill