嵌入视频未显示 [英] Embed Video Not Displayed

查看:73
本文介绍了嵌入视频未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试嵌入Flash音频播放器,我已经设置了OG meta标签,因此它们看起来很像SoundCloud或YouTube.

I'm trying to embed a flash audio player, I've setup the OG meta tags so they look pretty much like those of SoundCloud or YouTube.

我遇到的问题是:

  • 使用"Feed"对话框时,从不渲染播放器(如指向共享页面的og:image链接中所述,并且不会像YouTube和SoundCloud一样在播放器中进行交换).
  • 将URL粘贴到Facebook上的状态"框中时,会呈现播放器 ;但是,有时有时仅在禁用安全浏览"的情况下才会呈现.
  • The player is never rendered when using the Feed Dialog (as in the og:image links to the shared page, and doesn't swap in the player as it does for YouTube and SoundCloud).
  • The player is rendered when just pasting the URL into the 'status' box on Facebook; however, sometimes it only renderes if 'secure browsing' is disabled.

我对第二个安全浏览问题的猜测是,在尝试修复第一个安全浏览器问题时,我刚刚设法打破了OG标签.

My guess as to the second secure browsing issue, is I've just managed to break an OG tag while trying to fix the first.

<meta property="fb:app_id" content="132849513527946" />
<meta property="og:type" content="video" />
<meta property="og:url" content="http://beta.mybabytales.com/memories/6780fd71d0be818657df2cbe379ffdb5" />
<meta property="og:title" content="MyBabyTales Memory: July 28, 2012" />
<meta property="og:description" content="MyBabyTales" />
<meta property="og:image" content="http://beta.mybabytales.com/video.gif" />
<meta property="og:site_name" content="MyBabyTales" />
<meta property="og:video:secure_url" content="https://beta.mybabytales.com/player/dewplayer/dewplayer-vol.swf?showtime=true&amp;autostart=true&amp;mp3=http%3A%2F%2Fapi.twilio.com%2F2010-04-01%2FAccounts%2FACd883111c969a8582d86869ee98ea326f%2FRecordings%2FRE03bc1a2935e00f7ef466a1848ac9d00b.mp3" />
<meta property="og:video" content="http://beta.mybabytales.com/player/dewplayer/dewplayer-vol.swf?showtime=true&amp;autostart=true&amp;mp3=http%3A%2F%2Fapi.twilio.com%2F2010-04-01%2FAccounts%2FACd883111c969a8582d86869ee98ea326f%2FRecordings%2FRE03bc1a2935e00f7ef466a1848ac9d00b.mp3" />
<meta property="og:video:height" content="200" />
<meta property="og:video:width" content="460" />
<meta property="og:video:type" content="application/x-shockwave-flash" /> 

我尝试过的事情:

  • 添加/删除安全URL
  • 仅使用HTTPS(用于主视频网址)
  • 添加高度/宽度(我相信这些是可选的)
  • 使用自定义OG类型
  • 使用内置的OG视频类型

有人以前有这个问题吗?还是我明显缺少OG标签?

Anyone have this issue before? Or is there something obvious I'm missing with the OG tags?

更新:发布的在此处报告,将会更新如果在那里解决了.

Update: Posted report here, will update if it's resolved there.

推荐答案

我遇到了两件事,导致了类似的问题.

I've run into two things that have caused similar issues.

  1. https/og标签配置错误. (不受信任的证书,未提供secure_url,无法解析OG标签,等等)
  2. crossdomain.xml配置不正确.

您可以使用

You can debug any issues with your OG tags by using the Facebook OG tag debugger. However, it doesn't look like there are any issues with https or your OG tags.

因此,我要检查的下一件事情是您的crossdomain.xml文件,它看起来好像尚未设置.您可以在 Adob​​e跨域规范文件上进行阅读.你想要.本质上,它为您的Flash文件设置了跨域策略.它位于您域的根目录(http://example.com/crossdomain.xml)中.这是我们的crossdomain.xml文件中的内容:

So, the next thing I would check is your crossdomain.xml file, which it looks like you don't have set. You can read up on the Adobe Cross-Domain Specification File, if you'd like. Essentially it sets the cross-domain policy for your Flash files. It lives in the root of your domain (http://example.com/crossdomain.xml). Here's what we have in our crossdomain.xml file:

<cross-domain-policy>
  <allow-access-from domain="*"/>
  <site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy>

此外,我在此secure_url文件上看到"XML错误":

In addition, I'm seeing "XML Error" on this secure_url file: https://beta.mybabytales.com/player/dewplayer/dewplayer-vol.swf?showtime=true&autostart=true&mp3=http://api.twilio.com/2010-04-01/Accounts/ACd883111c969a8582d86869ee98ea326f/Recordings/RE03bc1a2935e00f7ef466a1848ac9d00b.mp3

这篇关于嵌入视频未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆