Hi everyone!
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.
Yes but on my website there will be several streameurs. What I want to do is a homepage with a picture on it for each streameur: this one if the stream is offline: http://image.noelshack.com/fichiers/2015/10/1425396841-blaf-deco .png
and this one if the stream is online: http://image.noelshack.com/fichiers/2015/10/1425396882-blaf-en-live.png
But there will be more images like this one on the home page. So his scripts I put them on the homepage but how to detect the correct channel?
I do not know if you understand me …
You want me to show you my HTML and CSS for you to understand better?