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

jsdelivr issue #1834

Closed
kah9509 opened this issue May 2, 2024 · 4 comments
Closed

jsdelivr issue #1834

kah9509 opened this issue May 2, 2024 · 4 comments

Comments

@kah9509
Copy link

kah9509 commented May 2, 2024

Be sure to search for your issue before opening a new one.

Current Behavior

HLS video does not play.

Expected Behavior

The problem seems to be occurring because the jsdelivr CDN certificate has expired.

Steps to Reproduce

Environment

Other Information

@edoko
Copy link

edoko commented May 2, 2024

#605 (comment)

I'm having the same problem.
There are ways to temporarily replace it with another CDN.
Load the hls.js script before the react-player is loaded.

// I used the same version of hls.js that ReactPlayer uses.
<script src="https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.1.4/hls.min.js" />

If possible, I'd like to see ReactPlayer change the default CDN address, or have it built in by default.
(Although I understand from the comments in the issue above that it doesn't due to bundle size)

@kah9509
Copy link
Author

kah9509 commented May 2, 2024

Thank you!!!!
I'll give it a try.

@kah9509
Copy link
Author

kah9509 commented May 2, 2024

It works very well. thank you.

@kah9509 kah9509 closed this as completed May 2, 2024
@mislavmiocevic
Copy link

If you are using Next (14) you can have:

import Script from 'next/script';

...
<Head>
    ...
    <Script src="https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.1.4/hls.min.js" strategy="beforeInteractive" />

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

3 participants