How do I play a live adaptive HLS stream with the .m3u8 extension at boot of the Raspberry Pi?
Please share full code on how to do it.
How do I play a live adaptive HLS stream with the .m3u8 extension at boot of the Raspberry Pi?
Please share full code on how to do it.
I had the same problem but only it would sometime play 30s, sometime 90s but not more. It was omxplayer which exited. I added the option --timeout 20 to omxplayer so the command line looks like this:
livestreamer hlsvarient://ekonk...akamaihd../live/master.m3u8 --player "omxplayer --timeout 20" --fifo
In fact as HLS works with 10s chunks, the player needs to retrieve regularly chunks from the origin, and it seems that sometimes it takes more than 10s, so increasing the timeout helps. You may increase the timeout if needed. Hope this helps.
-- Richard