FLV 视频无法在 Cooliris 嵌入墙中播放
我有一个 PHP 文件,可以为嵌入式墙生成媒体 RSS 文件。它从我们的 Amazon S3 存储桶读取图像和视频,并在创建 RSS 源之前对 URL 进行签名。
当墙加载时,图像会完美显示。应该有视频的地方只有一个空的黑色方块,当单击视频时 - 仍然只是一个空的方块。但是,当我单击“开始幻灯片放映”时,视频播放正常。视频完成后,它将加载另一个图像/视频,并且显示正常。我假设当我单击视频缩略图时视频应该开始?
除非我使用 此解决方案,否则也无法播放 Youtube 视频 在 Cooliris 开发者论坛上发现
还有其他人注意到此行为并有任何建议/解决方案吗?
谢谢
------------------------------------------ 更新 ----------------- ----------------------------------
我现在添加了应该显示的视频缩略图,这显示了播放图标但不显示缩略图 jpeg。我使用 PHP 生成 rss feed,如下 -
echo
'
<item>
<title>'.urldecode($subject).'</title>
<media:content type="video/x-flv" url="'.$file_name.'"/>
<media:thumbnail url="'.$file_name_thumb.'"/>
<cooliris:data><![CDATA[
{
"mediatype" : "'.$row['file_type'].'",
}
]]></cooliris:data>
</item>
';
对于图像也使用类似的方法。图像缩略图和全尺寸图像都可以正常显示。当我在浏览器地址栏中输入视频缩略图的链接时,图像返回正常。
图像和视频是从 S3 存储中的不同存储桶加载的,我已经检查了跨域策略文件,它们对我来说看起来不错,但这可能是一个问题吗?正如我所说,当 Cooliris 处于幻灯片模式时,视频可以正常播放。
这是一个链接,指向显示问题的测试页面。
I have a PHP file that generates a Media RSS file for the embedded wall. It reads images and video from our Amazon S3 bucket and signs the URLs before creating the RSS feed.
When the wall loads, images display perfectly. Where there should be video there is only an empty black square, when the video is clicked - still only an empty square. However when I click on 'Start Slideshow' the video plays ok. When the video finishes it will load another image/video and this displays fine. I assume when i click a video thumbnail the video should start?
Also cannot get Youtube videos to play unless I use this solution found on the cooliris developer forum
Anyone else notice this behaviour and have any advice / solution?
thanks
------------------------------- UPDATE ---------------------------------------------------
I have now added video thumbnails that should be showing and this shows the play icon but does not display the thumbnail jpeg. I use PHP to generate the rss feed as follows -
echo
'
<item>
<title>'.urldecode($subject).'</title>
<media:content type="video/x-flv" url="'.$file_name.'"/>
<media:thumbnail url="'.$file_name_thumb.'"/>
<cooliris:data><![CDATA[
{
"mediatype" : "'.$row['file_type'].'",
}
]]></cooliris:data>
</item>
';
And a similar way for images. Both image thumbnails and fullsize images display without problem. When I enter the link to the video thumbnail into a browser address bar the image is returned OK.
Images and video are loaded from different buckets in S3 storage and I have checked cross domain policy files and they look ok to me, but could this be a problem? Like I say though the video plays ok when cooliris is in slideshow mode.
Heres a link to a test page that shows the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嵌入式墙壁应支持 FLV。如果您有测试页可以与我们分享,我们可以帮助您调试。
编辑:
该视频不会以 3D 形式呈现,因为您的视频网站上没有托管 crossdomain.xml 文件。也就是说,transcodedvideo.s3.amazonaws.com/crossdomain.xml/... 需要允许 *.cooliris.com 访问。这是我们使用的 3D 库 (PaperVision 3D) 的限制。它在幻灯片模式下工作,因为我们只是将 2D 视频添加到 Flash 舞台,而不将其渲染为 3D。我们将来可能会重新讨论这个问题,所以感谢您提出这个问题。
叶罗恩
Cooliris 开发人员
The embedded wall should support FLV. If you have a test page you can share with us, we can help you debug.
EDIT:
The video does not render in 3D because there isn't a crossdomain.xml file hosted at your video site. That is, transcodedvideo.s3.amazonaws.com/crossdomain.xml/… needs to allow *.cooliris.com access. This is a limitation with the 3D library we use (PaperVision 3D). It works in slideshow mode because we simply add the 2D video to the Flash stage, without rendering it in 3D. We may revisit this in the future, so thanks for bringing up this issue.
Ron Yeh
Cooliris Developer