【发布时间】:2014-10-30 09:33:59
【问题描述】:
我需要通过分享按钮在 facebook 上发布来自 RED5 服务器的流。我为此使用 JW 播放器和 AddThis 共享插件,但它不起作用。
我使用 facebook og 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>
感谢您的宝贵时间!
【问题讨论】:
标签: php stream share jwplayer facebook-sharer