我想在我的网站中嵌入一个抽搐流,但我想要它,所以当你去那个页面时它不会自动播放。我如何在iFrame中执行此操作?我无法在互联网上找到任何地方。
<iframe src="http://www.twitch.tv/civilgamersstream/embed" frameborder="0" scrolling="no" height="378" width="620"></iframe><a href="http://www.twitch.tv/civilgamersstream?tt_medium=live_embed&tt_content=text_link" style="padding:2px 0px 4px; display:block; width:345px; font-weight:normal; font-size:10px;text-decoration:underline;">Watch live video from CivilGamersStream on www.twitch.tv</a>
答案 0 :(得分:2)
我将以http://www.twitch.tv/twitch/c/5894318为例。 去那里获取共享嵌入代码。看起来应该是这样的:
<object bgcolor="#000000" data="http://www.twitch.tv/swflibs/TwitchPlayer.swf" height="378" id="clip_embed_player_flash" type="application/x-shockwave-flash" width="620">
<param name="movie" value="http://www.twitch.tv/swflibs/TwitchPlayer.swf" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowFullScreen" value="true" />
<param name="flashvars" value="channel=twitch&auto_play=false&start_volume=25&videoId=c5894318&device_id=SLJemBs" />
</object>
接下来并将http://www.twitch.tv/swflibs/TwitchPlayer.swf
更新为http://www.twitch.tv/widgets/archive_embed_player.swf
,您应该知道:
<object bgcolor="#000000" data="http://www.twitch.tv/widgets/archive_embed_player.swf" height="378" id="clip_embed_player_flash" type="application/x-shockwave-flash" width="620">
<param name="movie" value="http://www.twitch.tv/widgets/archive_embed_player.swf" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowFullScreen" value="true" />
<param name="flashvars" value="channel=twitch&auto_play=false&start_volume=25&videoId=c5894318&device_id=SLJemBs" />
</object>
我不知道Twitch为什么不让你在两者之间做出选择,但这就是我发现的,它对我有用。