Catch HLS stop event while playing a live HLS stream
I need to implement a live streaming (HLS) fallback.
When the primary stream stops, JWPlayer push an event, then we load the backup stream.
- With playlist two problems:
1. as long as an HLS stream is supported by the viewer environment JWP try to load the M3U8 and, event if it's 404 it don't move to the next playlist item,
2. This is done only one time, when loading so for fallback in case of live stream stops after loading this is not the good answer
- With event catching:
I'm only able to catch a 404 when first loading the stream.
but if it loads correctly and then stops (so let say 404 on M3U8) JWP seem to not know it :(
What could be a good test to see if a stream is still alive?
- other ?