I'm streaming an m3u8 live stream from AWS cloud front distribution. What happens is the player stops playing after a certain time i:e; the video segments which are processed are able to play while the other segments which are processed in the backend are not updating to the stream URL.So it is a responsibility of the player to retrieve the latest segments of the video from a CloudFront distribution or the CloudFront distribution should be able to push the latest segments to the stream URL? I'm using videogular2 for viewing the live stream video.
Steps involving at Backend
- downloading video for every 30sec from live Streaming and changing video into hls format(m3u8) using ffmpeg tool.
- so that ffmpeg generating 1 m3u8 and multiple ts files .
- merging m3u8 files into the master m3u8 file and uploading ts files and updating master m3u8 file into the s3 bucket.
- serving hls format file of s3 bucket through Cloudfront and displaying video in videogular player.
my issue is...
videogular not updating the m3u8 file on its own. I need to reload the page to refresh the m3u8 file then video playing from start
please can anyone suggest me a solution