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

CORS Error on Player Only using Public src URL #291

Open
Seven11HY opened this issue Aug 28, 2024 · 3 comments
Open

CORS Error on Player Only using Public src URL #291

Seven11HY opened this issue Aug 28, 2024 · 3 comments

Comments

@Seven11HY
Copy link

When I use the Player from 'next-video/player' and insert the src to my video.mp4 hosted in my S3 Bucket and delivered via Cloudfront CDN, I always get a CORS error.

Screenshot 2024-08-28 at 12 49 31

And the Player throughs the Error:
[mux-player 2.9.0] MediaError: MEDIA_ELEMENT_ERROR: Format error

If I use the same URL in the normal HTML5 video tag, it works without a problem.

@mmcc
Copy link
Contributor

mmcc commented Aug 28, 2024

Hm that's odd... I'll dig in more, but we've been talking about swapping out Mux Player for something that's a better fit for this use case given that we need to support more than Mux assets here. This prompted me to go ahead and open an issue for tracking that work.

@luwes
Copy link
Collaborator

luwes commented Sep 3, 2024

could you try adding the crossOrigin prop to the Player component?

@howells
Copy link

howells commented Sep 5, 2024

FWIW, I get the CORS issue using the Player, but not the BackgroundVideo

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

4 participants