简体   繁体   中英

Local path to JavaScript file are not working under loaded to WebBrowser control local HTML page

So I am loading local HTML file without any problem but JavaScripts are not working at all.

This html & JS has index.html that is loading to WebBrowser control.

<video width="640" height="360" style=" margin: 0 !important; padding: 0 !important;  overflow:hidden;"    id="player1" src="http://archive.bogi.ru/files/S2J4NW1xUVVqb2NKLWZINnE4bFFKb3VxY25TU1FsZWo5aTZpVlltWUk5R3lxSk5vCmllYWJiLVZ3LUZ0cTZ1UjRCYV9nUy1fbVMzMjQyblRhVHYxa2lB" type="video/mp4" > </video>


<script>
    MediaElement('player1', {
        success: function (me) {
            me.play();
        }
    }); </script>

Any clue how it could be fixed?

在此处输入图片说明

PS I have enabled this option: Internet Options > Advanced > Security > Allow active content to run in files on My Computer.

I already had this problem(when you link to jquery file)

Instead of link to src to your jquery file copy jquery file content between this tag:

<script type="text/css">
//Copy First jquery content here
</script>
<script type="text/css">
//Copy secound jquery content here
</script>
.
.
.

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