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.

1 Answer
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
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions