I can get the JSON sent by the streaming link, and get the mime type out of it, but this is not enough. I actually want to check if the m3u8 link is actually streaming. JSON is like this:
"description": "Adaptive",
"url": "http://media1-lh.maihd.net/i/English_1@123035/master.m3u8",
"mimetype": "application/vnd.apple.mpegURL"
I have been searching for a tool, or some code, preferably in Java or PHP, which could check the m3u8 link every few minutes to make sure the links is actually streaming. So far I have not been able to find any solution to this so asking it here if someone could help.
The the stream is live, new segments will be added to the end of the m3u8 file every few seconds. Check to see if the contents of the m3u8 have changed.