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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南