Php 如何在facebook上发布red5(任何服务器)实时流?
我需要通过共享按钮从facebook上的RED5服务器发布流。我使用jwplayer来实现这一点,并添加了这个共享插件,但它不起作用 我使用facebook og metasPhp 如何在facebook上发布red5(任何服务器)实时流?,php,stream,share,jwplayer,facebook-sharer,Php,Stream,Share,Jwplayer,Facebook Sharer,我需要通过共享按钮从facebook上的RED5服务器发布流。我使用jwplayer来实现这一点,并添加了这个共享插件,但它不起作用 我使用facebook og metas <?php $this->headMeta()->setProperty('og:type','video');?> <?php $this->headMeta()->setProperty('og:video:height','260');?> &l
<?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上共享流的另一种方式,请告诉我,或者任何建议
我使用的资源:
现在可以发布,但当我按play 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>
谢谢你抽出时间 您不能使用:
<?php $this->headMeta()->setProperty('og:video', 'http://example.com/js/plugins/jwplayer/jwplayer.js?file=rtmpt://example.com:5080/live/teststream');?>
它必须是:
<?php $this->headMeta()->setProperty('og:video', 'http://example.com/js/plugins/jwplayer/player.swf?streamer=rtmpt://example.com:5080/live/&file=teststream');?>
请记住,这是针对JW5的,而不是针对JW6的,正如您引用的博客文章所指出的 Ups,这是愚蠢的错误!但现在我有另一个问题,jwplayer任务队列在第5步失败。由于跨域限制,无法加载播放列表。JW5必须是这样,以文件和拖缆的形式出现-