Unable to access chunk_lists & ts files once live stream is completed
We're facing an issue while trying to play a live HLS stream using JWPlayer from our Wowza Streaming Engine instance on EC2 to which we are streaming from our encoder.
Playback is fine but when we stop the encoder after few minutes of streaming - JWPlayer is unable to finish playback of the entire video. In a few seconds after the encoder is stopped, the video just stalls (
does not run to completion - delay between encoder and viewer) and we see 404 errors for chunklist_xxxx.m3u8 and for xxxxxxx.ts files in the browser's console and these errors keep coming. (attached screenshot of console)
Is it possible to keep the live stream alive or something until the viewers complete viewing of the stream? Is there a way to reduce the delay between the viewer and encoder? Are there any workarounds for this problem?
Chunks must start on a key frame. So it is best to use a key frame interval that is factor of the cupertinoChunkDurationTarget setting.
Try 2 second key frame frequency and cupertinoChunkDurationTarget "2000" (2 seconds)
cupertinoMaxChunkCount is the total number of chunks that are maintained. So as the stream moves a bit further off of live, the player will start to request segments from further in the past. Having a larger list of chunks in reserve will insure this does not lead to a missing chunk error.