-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
HLS.js playlist could not be loaded and the video doesn't work on my web site #6363
Comments
These errors do not originate from HLS.js. HLS content should be served with "Access-Control-Allow-Origin" headers to prevent CORS errors in Web-based players. HLS.js cannot proceed to parse and play content when the first request is blocked by CORS. Search "AWS storage CORS policy" -> https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors.html
Since you have "autoplay" on the video element, you do not need to call |
What do you want to do with Hls.js?
I faced an issue with autoplaying videos on my website, particularly on mobile devices. I've successfully implemented video autoplay for desktop screens. But mobile screens are displaying an error message in Chrome:
I'm working with HTML/CSS/JavaScript and using HLS.js to play videos in chunks. All video content, including chunks and playlists, is hosted on AWS storage.
Here's the HTML code snippet for embedding the video:
And below is the JavaScript code I'm using to switch playlists based on screen resolution:
Also I noticed the strange behavior. I am located in Poland. But if I change my IP address to US via VPN, the video will be work well.
It will be great to read some advices.
Link for the web site here https://aig.gvodex.work/index
What have you tried so far?
No response
The text was updated successfully, but these errors were encountered: