当前位置: 动力学知识库 > 问答 > 编程问答 >

winforms - How to use a windows forms embedded resource as the Source for a WPF mediaelement?

问题描述:

I am hosting a MediaElement in a WinForms application, which I would like to play both images and video through. My images and video are set as embedded resources to the application.

The MediaElement.Source property only accepts a URI.

Any ideas on how to get the MediaElement to play the embedded resourece files without writing them to disk?

Thanks.

网友答案:

MediaElement cannot play from embedded resources files. It would be possible by writing your own DirectShow source filter, but that might be a lot of work for little benefit.

分享给朋友:
您可能感兴趣的文章:
随机阅读: