m3u8 format file not playing - CORS issue

0

When attempting to play an M3U8 file and some other formats using the Streamit live Player, the video content does not load properly.

Instead, we receive an error message indicating that the content cannot be played. I have attempted to use different M3U8 files, but the issue persists with each attempt.

We had a movie list in AWS bucket.

And we created url to add movie in our website. We used cloudfront domain and key of the video to create url.

For your reference some of the url's is mentioned below

https://d2vkl8k9v6nxyr.cloudfront.net/Movies/MOV_UHD_H264.m3u8

https://d2vkl8k9v6nxyr.cloudfront.net/Movies/Encoded_video/88074.m3u8

If we tried to play the movie in our streamit live streaming video player

We have faced CORS issue in player.

Please solve those issues and do needful.

已提问 10 个月前821 查看次数
1 回答
0

First, you need to configure CORS (cross-origin resource sharing) on your S3 bucket to allow requests to your bucket coming from the website. For S3 to then return the correct CORS response headers, you need to enable those headers on CloudFront. For this, check out the Amazon S3 section on this link or simply apply the managed CORS-S3Origin policy to your distribution.

profile pictureAWS
已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容