how to play flash in WPF application

a 夏天 提交于 2019-12-20 04:52:53

问题


I have a WPF application and I want to play flash movies in it.

I used the WInforms active X control as described in this link

It worked partially, but now whenever I run the application it crashes saying "InvalidActiveXStateException"

does anyone have an idea how to solve this?


回答1:


I would recommend adding a WebBrowser control to your WPF application and allow IE to load the URL of the Flash Movie directly; which in turn would load the Flash Plugin. You will need to build your WPF application as x86 only for this to work on x64 Windows.




回答2:


I found a solution. You can use a AxShockwaveFlash. see this link



来源:https://stackoverflow.com/questions/1439056/how-to-play-flash-in-wpf-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!