Comment intégrer un lecteur Simplecast audio via oembed

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

https://simplecast.com/s/7fe152f4

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:

https://github.com/discourse/onebox/pull/390/files

Looking forward to trying this!

Does this work?

https://simplecast.com/s/7fe152f4

Should the above work @nbianca?

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

https://github.com/discourse/onebox/pull/403

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!

Je reposts ici depuis un fil ultérieur concernant ce problème

Il semble qu’après avoir très bien fonctionné, Onebox ne fonctionne plus sur Simplecast. Des idées ? Merci.

Voyons si l’ancien lien publié ci-dessus génère toujours un onebox.

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

Oui, ce lien fonctionne parfaitement @Seth_Godin.

Le lien est sensiblement différent de celui que vous avez publié, qui est :

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

comparez avec

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

J’ai creusé un peu plus. Voici comment Simplecast propose désormais aux gens de partager un lien :

Comme vous pouvez le constater, l’ancien modèle n’est plus pris en charge.

Je ne sais pas si cela figure sur la feuille de route de onebox, mais c’est clairement un changement de leur part. Merci.

EDIT ! Attendez, cela pourrait fonctionner… J’ajoute le mot « embed » à l’URL et j’obtiens ceci :

Peut-être devons-nous élargir les motifs d’URL que nous recherchons ici à partir de ce domaine @nbianca ?

Je me lance ! J’ai migré vers le « nouveau » simplecast pour obtenir l’URL mise à jour, comme celle que vous avez partagée depuis TGD, @codinghorror, mais elle s’affiche toujours sous forme de lien plutôt que de onebox

Je vérifie cela @codinghorror !!

Bien sûr, @nbianca peut jeter un coup d’œil et vérifier si les motifs d’URL peuvent être élargis pour une meilleure compatibilité.

Merci @nbianca ! Fais-moi savoir comment je peux aider.