简体   繁体   中英

Swfobject video doesn't work in IE9

I have such swfoject that shows video in my site. It works fine at all browsers except IE 9. What can be the problem?

<script src='http://...js/swfobject.js'></script>
                    <div id='video' style='width: 640px; height: 480px;'></div>
                    <script >
                      swfobject.embedSWF('http://...js/swfobject.js', 'video', 640, 480, '10.3', 'false',
                        {file:'cam210.0', streamer:'rtmp://1111111111.../1111111111', 'rtmp.tunneling':false, autostart:true}, 
                        {allowFullScreen : 'true', allowNetworking : 'all'});
                    </script>

UPDATE

                <iframe id='video' name='iframeanimfx' src='http://xmpp.feelinhome.ru:8080/flu/js/swfobject.js'  height='600' width='900'></iframe>
                <script >

                 swfobject.embedSWF('http://...jwplayer.swf', 'video', 640, 480, '10.3', 'false',
                    {file:'cam210.0', streamer:'rtmp://.../1111111111', 'rtmp.tunneling':false, autostart:true}, 
                    {allowFullScreen : 'true', allowNetworking : 'all'});
                </script>

Try putting it in an iframe,

<iframe name="iframeanimfx" src="http://yourswfobjecturl.swf"  height="600" width="900">
</iframe>

You can set the height and width of the iframe to whatever you like.

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