斗鱼直播链接解析-可用PotPlayer播放

sinsyth| 阅读:223 发表时间:2019-09-22 09:36:48 技术干货

斗鱼直播链接解析-可用PotPlayer播放

解析接口地址:http://res.niin.xin/softapi/douyujx.php?roomid=

返回数值(示例):

{    
  "type":"strjson",
    "Rendata":{
        "media_type":"live",
        "data":{
            "vid":"xxx",
            "roomName":"xxxxx",
            "nickname":"123456",
            "avatar":"https://apic.douyucdn.cn/upload/avanew/face/201711/10/01/e59ef76a6b3123116e34410864106_big.jpg?rltime",
            "roomimg":"https://rpic.douyucdn.cn/asrpic/190302/000829_0927.png/dy1",
            "roominfo":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        },
        "link":"http://hdl3.douyucdn.cn/live/430489rNQSMxPCov.flv?wsAuth=4a11dd9640880b262bd6v156d1v6205833&token=cpn-androidmpro-0-430489-562ca29bdd47f8ba4862114893a68c1dc1d5c6s575934&logo=0&expire=0&did=c15dd29d8ss515100c0f975eb150c61df&origin=ws",
        "time":1569115906
    },
    "info":"Check-OK",
    "state":"SUCCESS"
}

注:直播流地址非永久,会过期,过期后需重新获取才可正常播放。


本文由Sinsyth Online发表并编辑,转载此文章须经作者同意,并请附上出处及本页链接。如有侵权,请联系本站删除。

热门推荐