获取嵌入式闪光灯自动播放 [英] get embeded flash to autoPlay
本文介绍了获取嵌入式闪光灯自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< object width =600height =409>
< param name =movievalue =http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf>< / param>
< param name =flashvarsvalue =src = http%3A%2F%2Fwww.domain.com%2Fvideo%2Ftest%2F< php echo $ video;>>< / PARAM>
< param name =allowscriptaccessvalue =always>< / param>
< embed src =http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf
type =application / x-shockwave-flashallowscriptaccess =always allowfullscreen =trueautoPlay =true
width =600height =409flashvars =src = http%3A%2F%2Fwww.domain.com%2Fvideo%2Ftest%2F<?php echo $视频;>中>
< / embed>
< / object>
解决方案
尝试将 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 =)
这篇关于获取嵌入式闪光灯自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文