本文介绍了获取嵌入式闪光灯自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我真的很困惑这是不是工作,但视频不会自动启动,出于某种原因,我做错了什么?嵌入式代码用于闪存回放尝试将 autoPlay =在 flashvars param中将发送给swf文件:
我已经测试过了,这是工作。
请记住更改< embed> 标签中的 flashvars 属性=)
I'm really puzzled how this is not working, but the video just wont auto start for some reason, am I doing something wrong? the embedded code is for flash playback
<object width="600" height="409"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param> <param name="flashvars" value="src=http%3A%2F%2Fwww.domain.com%2Fvideo%2Ftest%2F<?php echo $video;?>"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <param name="autoPlay" value="true"></param> <embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" autoPlay="true" width="600" height="409" flashvars="src=http%3A%2F%2Fwww.domain.com%2Fvideo%2Ftest%2F<?php echo $video;?>"> </embed> </object>解决方案Try to put autoPlay=true in the flashvars param to send this param to swf file:
<param name="flashvars" value="src=http%3A%2F%2Fwww.domain.com%2Fvideo%2Ftest%2F<?php echo $video;?>&autoPlay=true"></param>I have tested, it's work.
Remember to change the flashvars attribute in <embed> tag, too =)
这篇关于获取嵌入式闪光灯自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!