I apologize for my English because I’m French …
I need your help because I’m not very good at coding and so I do not really understand the API.
I would like to automatically detect when a stream is online or offline. When online, I want an image appears and when it is offline, another image.
I would do it in jQuery rather than php. After if we are forced with php, I would do in php.
To extend on that… basically you have to request the streams by channel name and if the stream is live it will be returned in the response otherwise it wont be. That’s how you know if it is online or offline.