2014-10-30 50 views
1

我需要通过分享按钮在Facebook上发布来自RED5服务器的流。我使用JW播放器和AddThis共享插件,但它不起作用。如何在Facebook上发布red5(任何服务器)实时流?

我使用的是Facebook或者metas。

<?php $this->headMeta()->setProperty('og:type','video');?> 
    <?php $this->headMeta()->setProperty('og:video:height','260');?> 
    <?php $this->headMeta()->setProperty('og:video:width','420');?> 
    <?php $this->headMeta()->setProperty('og:video:type','application/x-shockwave-flash');?> 
    <?php $this->headMeta()->setProperty('og:description','stream-test-exaple');?> 
    <?php $this->headMeta()->setProperty('og:title','stream-test');?> 
    <?php $this->headMeta()->setProperty('og:image', 'http://example.com/img/jabba.gif'); ?> 
    <?php $this->headMeta()->setProperty('og:video', 'http://example.com/js/plugins/jwplayer/player.sfw?file=rtmpt://example.com:5080/live/teststream');?> 

有什么我做错了吗?如果您知道在Facebook上分享流的另一种方式,请告诉我关于它们或任何建议。

资源,我用: http://www.jwplayer.com/blog/publish-your-videos-to-facebook-with-a-jw-player/

出版现在的作品,但是当我按下播放的播放器我这个错误显示:

jwplayer任务队列在第5步中的播放列表失败无法加载由于跨域限制

,这里是我的crossdomain.xml

<?xml version="1.0" encoding="utf-8" ?> 
<!DOCTYPE cross-domain-policy SYSTEM 
     "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> 


    <cross-domain-policy> 
     <site-control permitted-cross-domain-policies="all" /> 
     <allow-access-from domain="*" /> 
     <allow-http-request-headers-from domain="*" headers="*" /> 
    </cross-domain-policy> 

谢谢你的时间!

回答

1

不能使用:

它必须是:

<?php $this->headMeta()->setProperty('og:video', 'http://example.com/js/plugins/jwplayer/player.swf?streamer=rtmpt://example.com:5080/live/&file=teststream');?> 

请记住,这是JW5,不JW6,正如你所引用的博客文章中指出。

+0

Ups,这是愚蠢的错误!但现在我有另一个问题jwplayer任务队列在第5步失败播放列表无法加载由于跨域限制 – user1418998 2014-10-30 16:11:21

+0

你有链接? – emaxsaun 2014-10-30 18:05:53

+0

这是[链接](http://jabba.yopeso.com/stream/)。感谢您的回应! – user1418998 2014-10-31 08:33:41

相关问题