开发者

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

开发者 https://www.devze.com 2022-12-20 10:35 出处:网络
I am hosting a MediaElement in a WinForms application, which I would like to play bo开发者_运维百科th images and video through.My images and video are set as embedded resources to the application.

I am hosting a MediaElement in a WinForms application, which I would like to play bo开发者_运维百科th 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消