Search code examples
javascriptinternet-explorer-9swfobject

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>

Solution

  • 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.