如何在 Simplecast 中嵌入音频播放器

I’m really confused why this isn’t embedding an audio player:

They support oembed, as can be seen here: https://oembed.com (search on the page for simplecast).

My first thought is that I need to whitelist it, and it’s just not whitelisted here. However, I turned on “enable inline onebox on all domains” and that didn’t help on my site. Then I tried whitelisting simplecast.com. That didn’t help either. Any thoughts?

edited to add: appears to work properly on iframely

Their OpenGraph data has a type = website

Ok… interesting. So, what should it be? I might be able to get them to fix it.

And why does it appear to work properly in iframely?

Because they use the data from the Twitter Card.

I think we should properly support Twitter Cards with a type of player.

@nbianca, can you add that to your list? We should update our WhitelistedGenericOnebox to properly detect embeds in Twitter Cards

I let them know about the issue. I guess it’s a race to see who can fix it first. :wink:

:slight_smile:

Looking forward to trying this!

Does this work?

Should the above work @nbianca?

Simplecast are not providing twitter cards info anymore, so I had to implement an oembed onebox for them.

FWIW, Simplecast recently went through a big change to a new 2.0 codebase. Lots changed. I did tell them recently that their stuff isn’t auto-embedding like they claim.

They say “Use this link to share via social media. It will automatically embed a player in WordPress, Medium, and many other popular sites.” with a link such as this:
https://tgd.simplecast.com/episodes/dan-blackman-and-robyn-kanner-the-power-7fe152f4

It doesn’t work on Wordpress.com or self-hosted Wordpress. Let’s test it again now here on Meta:

Edit: Looks like it’s working!

在此跨帖转发自关于此问题的稍后讨论

看起来 Simplecast 的 Onebox 功能之前运行良好,但现在又无法正常工作了。有什么想法吗?谢谢。

让我们看看上面发布的旧链接是否仍然能实现一键展开

https://tgd.simplecast.com/episodes/dan-blackman-and-robyn-kanner-the-power-7fe152f4

是的,该链接可以正常使用 @Seth_Godin

该链接与您发布的链接有很大不同,后者是

https://simplecast.com/s/19cdf3ea

对比一下

https://tgd.simplecast.com/episodes/dan-blackman-and-robyn-kanner-the-power-7fe152f4

我又深入调查了一下。以下是 Simplecast 现在提供链接分享的方式:

如您所见,旧模型已不再支持。

不确定这是否在 onebox 路线图内,但这显然是他们做出的一项变更。谢谢。

编辑!等等,这可能行得通……我在 URL 中添加“embed”一词,得到以下内容:

也许我们需要在这里放宽我们要查找的 URL 模式,以包含这个域名 @nbianca

我来插一句!我迁移到了“新版”Simplecast,以获取更新的 URL,就像你从 TGD 发布的那个一样,@codinghorror,但它仍然显示为普通链接,而不是一键预览卡片。

正在检查这个 @codinghorror!!

当然,@nbianca 可以查看一下是否可以放宽 URL 模式以提高兼容性。

谢谢 @nbianca!告诉我我能怎么帮忙。