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

wordpress implementation: option to disable cdn.jsdelivr.net and load from local #2915

Open
gessel opened this issue Feb 3, 2023 · 2 comments

Comments

@gessel
Copy link

gessel commented Feb 3, 2023

Mediaelement is awesome but we should all be attempting to clean up external calls to simplify GDPR compliance, minimize privacy leaks, and reduce external serial dependencies where possible.

I apologize for my limited understanding of the code, but it appears that only flv.js@latest and hls.js@latest would be loaded from jsdelivr.net, all else being sameDomain. While I'd gather from the conditionals that this code would only be pulled to play an flv or hls video, not an every time condition, is there any way to add a "privacy paranoid" option to sameDomain these scripts as well?

Thanks!

@jaapmarcus
Copy link
Contributor

settings.options.path = typeof settings.options.path === 'string' ? settings.options.path : 'https://cdn.jsdelivr.net/npm/flv.js@latest';

Allows you set a local path

@gessel
Copy link
Author

gessel commented Aug 1, 2023

Awesome! Thanks!

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

No branches or pull requests

2 participants