最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - get embeded flash to autoPlay - Stack Overflow

programmeradmin0浏览0评论

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=".swf"></param>
<param name="flashvars" value="src=http%3A%2F%2Fwww.domain%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=".swf"
       type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" autoPlay="true"
       width="600" height="409" flashvars="src=http%3A%2F%2Fwww.domain%2Fvideo%2Ftest%2F<?php echo $video;?>">
</embed>

</object>

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./strobe/FlashMediaPlayback.swf"></param>
<param name="flashvars" value="src=http%3A%2F%2Fwww.domain.%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./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.%2Fvideo%2Ftest%2F<?php echo $video;?>">
</embed>

</object>
Share Improve this question edited Jan 20, 2013 at 17:55 user1559811 asked Jan 20, 2013 at 16:47 user1559811user1559811 4494 gold badges12 silver badges26 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

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

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

发布评论

评论列表(0)

  1. 暂无评论