Javascript 如何在IE上使用AC_FL_RunContent制作视频自动启动?

Javascript 如何在IE上使用AC_FL_RunContent制作视频自动启动?,javascript,flash,internet-explorer,video,html5-video,Javascript,Flash,Internet Explorer,Video,Html5 Video,我正在使用以下代码在我们的网站上运行视频。例如: 我的问题是:如何在IE上制作视频自动启动 它适用于Firefox和Chrome <video width='500' height='282' autoplay=\"autoplay\" controls=\"controls\" preload=\"none\"> <source src='$h264' type='video/mp4' /> <source src='$webm' type='

我正在使用以下代码在我们的网站上运行视频。例如:

我的问题是:如何在IE上制作视频自动启动

它适用于Firefox和Chrome

<video width='500' height='282' autoplay=\"autoplay\" controls=\"controls\" preload=\"none\">
    <source src='$h264'  type='video/mp4' />
    <source src='$webm'  type='video/webm' />
    <source src='$theora'  type='video/ogg' />  

    <script language='javascript'>
        AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '500', 'height', '281', 'src', 'player', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'allowFullScreen', 'true', 'play', 'true', 'autoplay', 'true', 'movie', '".site_url( '/wp-content/plugins/ewp-blog/ewpb-videos-files/' )."player', 'FlashVars', 'file=".urlencode($flash)."&image=".urlencode($png)."&volume=25');
    </script>

    <noscript>
        <object width='500' height='281' type='application/x-shockwave-flash' data='".site_url( '/wp-content/plugins/ewp-blog/ewpb-videos-files/' )."player.swf'>
            <embed src='".site_url( '/wp-content/plugins/ewp-blog/ewpb-videos-files/' )."player.swf?file=".urlencode($flash)."&image=".urlencode($png)."&volume=25' width='500' height='281' allowFullScreen='true' type='application/x-shockwave-flash' autostart='true' />
        </object>
    </noscript>
</video>

AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','宽度','500','高度','281','src','player','pluginspage','http://www.macromedia.com/go/getflashplayer“,”allowFullScreen“,”true“,”play“,”true“,”autoplay“,”true“,”movie“,”。网站地址(“/wp content/plugins/ewp blog/ewpb videos files/”)“player”、“FlashVars”、“file=“.urlencode($flash)。”&image=“.urlencode($png)。“&volume=25”);

谢谢!

正如Bosworth99所说,使用SWFObject

在此处下载SWFObject标记生成器:

它的使用非常简单,它将生成代码供您使用SWFObject嵌入SWF,还允许您直观地设置/编辑可能需要使用嵌入参数设置的所有属性

请注意,您需要安装Adobe AIR Runtime才能使用上述应用程序:


我使用SWFobject并在第一帧中添加一个添加到舞台监听器的监听器,以处理应用程序的启动。AC\U FL\U RunContent应该失效。