Simplecast オーディオのプレイヤーを oEmbed する方法

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 さん?

ここに参加します!TGD の投稿にあるような更新された URL を得るために、「新しい」Simplecast に移行しましたが、それでもリンクとして表示され、ワンボックスにはなっていません

@codinghorror さん、確認しています!!

もちろん、@nbianca が確認して、URL パターンをより広い互換性のために拡張できるか検討できます。

@nbianca さん、ありがとうございます!どのようにお手伝いできるか教えてください。