MediaElement 可以播放哪些类型的视频?
我正在寻找有关决定 MediaElement
可以播放的媒体格式的详细信息,我似乎找不到任何明确的来源。我在某处读到,如果它可以在 WMP 中播放,那么 MediaElement
就可以播放它。这是真的吗?如果是,那么我的下一个问题是在哪里可以找到理财产品的功能和局限性? WPF 的 MediaElement
和 WMP 之间的关联在哪里?我正在寻求更好地了解 WPF 中的这些组件和视频播放,并且到目前为止一直在努力在网上找到任何内容。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MediaElement 内部使用 WMP ActiveX。理论上,MediaElement 可以/应该能够播放 WMP 可以播放的任何内容,但情况并非总是如此,例如 .vob 文件。
当您在 MediaElement 中播放文件时,将加载 Windows Media Player ActiveX。然后,WMP 将决定使用 DirectShow 或 MediaFoundation 路径来播放媒体。它可以播放的媒体类型很大程度上取决于您的计算机上安装的编解码器类型(DirectShow 或 MF)。选择媒体路径后,WPF 将为增强视频渲染器提供自定义演示器,以便将每个视频帧渲染到 D3D 表面,准备在 WPF 合成引擎中进行演示。
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.