BBC EMP(嵌入式媒体播放器)“内容似乎无法正常工作......”

时间:2014-10-28 17:10:16

标签: javascript streaming

背景

我们已经成功地将EMP(http://news.bbc.co.uk/1/hi/help/7277283.stm)嵌入我们定制的MI墙板的象限中几个月。该代码使用div来托管iframe:

   <div id="emp1" class="player" style="float: left; width: 100%; height: 100%;">
    <p>In order to see this content you need to have both <a href="http://www.bbc.co.uk/webwise/askbruce/articles/browse/java_1.shtml" title="BBC Webwise article about enabling javascript">Javascript</a> enabled and <a href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a href="http://www.bbc.co.uk/webwise/">BBC&nbsp;Webwise</a> for full instructions</p>
</div>

然后用一堆javascript来填充它:

function updateEmp(widthEmp, heightEmp) {
    width = widthEmp;
    height = heightEmp;
    $('bbc_emp_embed_emp1').morph({ width: widthEmp + 'px', height: heightEmp + 'px' });
}

function reload(url, title) {
    var emp = new embeddedMedia.Player();
    emp.setWidth("100%");
    emp.setHeight("100%");
    emp.setDomId("emp1");
    emp.quality = "low";
    emp.set("config_settings_autoPlay", "true");
    emp.setPlaylist('http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml');
    emp.setConfig('http://www.bbc.co.uk/emp/simulcast/config_bbc_news24.xml');
    emp.write();
}

问题

上周,环境管理计划要么已经退休,要么已经破产。查看以下链接,了解我们在尝试访问EMP时获得的内容(只是文本“此内容似乎无法正常运行。请稍后再试。”:

http://www.bbc.co.uk/emp/player.swf

我已联系过beeb,但尚未得到回应。有没有另一种方法来嵌入英国广播公司,而不是一个令人讨厌的iframe包围一个隐藏溢出的div?

0 个答案:

没有答案