doufei2194 2015-12-02 16:33
浏览 1521

如何检查m3u8直播是否还活着?

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.

  • 写回答

1条回答 默认 最新

  • dongwei4444 2015-12-02 17:24
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)