简体   繁体   中英

WebBrowser local html file, flash not working?

I am using a WinForm webbrowser, i load an local html file which contains and flash player that plays a video but the problem is that the player works but the video is not loaded.

When i open the html file in a browser it works fine.

Here is the code i am using:

        string curDir = Directory.GetCurrentDirectory();
        this.webBrowser1.Url = new Uri(String.Format("file:///{0}/Resources/streaming.html", curDir));

The file location is correct, is there anything i can do to solve the problem ?

Try explicitly disabling the following Browser Features for your WebBrowser -based app: FEATURE_LOCALMACHINE_LOCKDOWN , FEATURE_BLOCK_LMZ_OBJECT , FEATURE_BLOCK_LMZ_SCRIPT . You could reuse some code from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM