我有一个不寻常的要求。客户希望从un.org网络广播页面播放视频。我的朋友直接复制了渲染并将其发布到页面上。令我惊讶的是,但它仅在IE中不起作用。任何建议或意见(其他的,那么实施这项任务的明显不好的选择将不胜感激)
以下是代码:http://pastebin.com/Db01RL1M(仅此一项适用于firefox,safari和Chrome。)
答案 0 :(得分:1)
我不是原生Flash查看器的忠实粉丝。所以,如果是我,我会将Flowplayer嵌入我的网站,因为它提供了超过标准浏览器的巨大优势和额外功能。然后,从您在代码中提供的网址中输入视频流。 (http://www.unmultimedia.org/tv/webcast/swfs/player.swf)
我的猜测是,这将直接解决问题。祝你好运。
答案 1 :(得分:0)
你需要一个“电影”参数。
<param name="movie" value="http://www.unmultimedia.org/tv/webcast/swfs/player.swf">
最终代码:
<object width="640" height="360" align="middle" type="application/x-shockwave-flash" id="main_player" name="media" class="video" data="http://www.unmultimedia.org/tv/webcast/swfs/player.swf" style="visibility: visible;">
<param name="movie" value="http://www.unmultimedia.org/tv/webcast/swfs/player.swf">
<param name="play" value="false">
<param name="quality" value="high">
<param name="scale" value="noborder">
<param name="bgcolor" value="000000">
<param name="seamlesstabbing" value="true">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="sameDomain">
<param name="flashvars" value="file=specialevents/2010/se100923pm1.flv&image=http://www.unmultimedia.org/tv/webcast/2010/09/full/se100923pm1.jpg&autostart=false&dock=true&streamer=rtmp://cp8784.edgefcs.net/ondemand&plugins=http://www.unmultimedia.org/tv/webcast/swfs/sharing.swf, http://www.unmultimedia.org/tv/webcast/swfs/captions-1.swf&captions.file=http://www.unmultimedia.org/tv/webcast/2010/09/full/se100923pm1.srt&sharing.link=2010/09/heads-of-state-and-government-luncheon-toast-at-the-beginning&sharing.code=%3Cobject%20width%3D%22480%22%20height%3D%22270%22%3E%3Cparam%20name%3D%22movie%22%20value%3D%22http%3A//www.unmultimedia.org/tv/webcast/swfs/player.swf%22%20/%3E%3Cparam%20name%3D%22allowFullScreen%22%20value%3D%22true%22%20/%3E%3Cparam%20name%3D%22bgcolor%22%20value%3D%22000000%22%20/%3E%3Cparam%20name%3D%22allowscriptaccess%22%20value%3D%22always%22%3E%3C/param%3E%3Cparam%20name%3D%22flashvars%22%20value%3D%22file%3Dspecialevents/2010/se100923pm1.flv%26image%3Dhttp%3A//www.unmultimedia.org/tv/webcast/2010/09/full/se100923pm1.jpg%26autostart%3Dfalse%26controlbar%3Dover%26dock%3Dtrue%26plugins%3Dhttp%3A//www.unmultimedia.org/tv/webcast/swfs/captions-1.swf%26captions.file%3Dhttp%3A//www.unmultimedia.org/tv/webcast/2010/09/full/se100923pm1.srt%26stretching%3Duniform%26streamer%3Drtmp%3A//cp8784.edgefcs.net/ondemand%22%20/%3E%3Cembed%20src%3D%22http%3A//www.unmultimedia.org/tv/webcast/swfs/player.swf%3Ffile%3Dspecialevents/2010/se100923pm1.flv%26image%3Dhttp%3A//www.unmultimedia.org/tv/webcast/2010/09/full/se100923pm1.jpg%26autostart%3Dfalse%26%26controlbar%3Dover%26dock%3Dtrue%26plugins%3Dhttp%3A//www.unmultimedia.org/tv/webcast/swfs/captions-1.swf%26captions.file%3Dhttp%3A//www.unmultimedia.org/tv/webcast/2010/09/full/se100923pm1.srt%26stretching%3Duniform%26streamer%3Drtmp%3A//cp8784.edgefcs.net/ondemand%22%20width%3D%22480%22%20height%3D%22270%22%20type%3D%22application/x-shockwave-flash%22%20allowfullscreen%3D%22true%22%20allowscriptaccess%3D%22always%22/%3E%3C/object%3E&stretching=uniform&controlbar=over&skin=http://www.unmultimedia.org/tv/webcast/swfs/webcast-skin.swf"></object>