如何在 IE 上使用 AC_FL_RunContent 使视频自动启动?
我正在使用以下代码在我们的网站上运行视频。示例:http://www.ipsofacto。 net/4078/how-to-backup-a-mac-os-x-server/
我的问题是:如何使视频在 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>
谢谢你!
I'm using the following code to run a video on our website. Example: http://www.ipsofacto.net/4078/how-to-backup-a-mac-os-x-server/
My question is: how to make the video autostart on IE?
It works on Firefox and 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>
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 Bosworth99 所说,使用 SWFObject。
http://code.google.com/p/swfobject/
在此处下载 SWFObject 标记生成器:
http://code.google .com/p/swfobject/downloads/detail?name=swfobject_generator_1_2_air.zip&can=2&q=
使用起来非常简单,它会生成代码,供您使用 SWFObject 嵌入 SWF,并且还允许您直观地设置/编辑您可能需要使用嵌入参数设置的每个可能的属性。
请注意,您需要安装 Adobe AIR Runtime 才能使用上述应用程序:
http://get.adobe.com/空气/
As Bosworth99 said, use SWFObject.
http://code.google.com/p/swfobject/
Download the SWFObject tag generator here:
http://code.google.com/p/swfobject/downloads/detail?name=swfobject_generator_1_2_air.zip&can=2&q=
It's very straight forward to use, it will generate code for you to embed your SWF using SWFObject and also allows you to visually set/edit every possible property you could need to set with embed params.
Please note you will need the Adobe AIR Runtime installed to use the above application:
http://get.adobe.com/air/