Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add oEmbedUrl as changeable prop #1333

Merged
merged 2 commits into from
Oct 26, 2021
Merged

Add oEmbedUrl as changeable prop #1333

merged 2 commits into from
Oct 26, 2021

Conversation

luwes
Copy link
Collaborator

@luwes luwes commented Oct 17, 2021

This change makes it possible to use another service for retrieving the preview image.

I tested the code by adding this property to ReactPlayer in App.js:

oEmbedUrl='https://api.playerx.io/oembed'

Noembed doesn't seem to be maintained anymore and there is no purge cache support and the default cache is set to expire after 100 days.

I started a new oEmbed service with purge support over at https://github.com/playerxo/oembed
It's hosted on Cloudflare workers which offers a generous free tier and it's written in Javascript.
Feel free to use it or host your own with the pubic code.

@cookpete
Copy link
Owner

Tweaked it a bit so you’ll have to do oEmbedUrl='https://api.playerx.io/oembed?url={url}'.

Nice work!

@cookpete cookpete merged commit 818bf3e into cookpete:master Oct 26, 2021
@cookpete
Copy link
Owner

Published in 2.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants