douqian9729
2015-06-05 17:26使用Javascript检查无线电流媒体网址是否正常工作
Hi I'm doing a website which contains several radios. I need to know, through javascript, if a radio stream url is working or not. I achieve this in PHP doing a file_get_contents($radio_source, false, NULL, -1, 600);
, doing this I know that if the request reached the limit (600) then the request is alive, otherwise, not. My question is: Does exist a way to do this in Javascript?. So far, $.ajax doesn't seems to be an option, because doesn't have any parameter to help me to achieve this.
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- 使用Javascript检查无线电流媒体网址是否正常工作
- javascript
- radio
- streaming
- jquery
- php
- 2个回答