Getting 404 request to .m3u8

Hello guys, I’m exploring the api.video to check if it fits to my project and one thing that I saw was that when the livestream it’s off, the browsers it’s trying to make requests constantly.

This is making the website slow and I don’t know what can I do to avoid it.

image

Hello,

Best option in your situation is to handle the broadcasting value of the LiveStream object.
You’ll be able to display the thumbnail instead of the player until the value became true.

There’s a detailed tutorial about that available here :
Watching a Livestream

Hope it will help