get embeded flash to autoPlay

一个人想着一个人 提交于 2019-12-20 06:27:32

问题


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>

回答1:


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 =)




回答2:


;?>&auto=TR" (not autoPlay only AUTO!)>



来源:https://stackoverflow.com/questions/14426747/get-embeded-flash-to-autoplay

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!