步骤一
浏览器打开任意主播的房间地址,这里以 https://v.6.cn/728422 为例。
查看网页源码,如下图查找“flvtitle”
然后获取
uid = 76282676 flvtitle = v76282676-176898325
这里可以使用正则表达式或者 json 来解析取值
步骤二
使用步骤1 获取的 uid 拼接以下地址
https://rio.6rooms.com/live/?s=76282676
访问该地址得到以下信息
获取
hip = 59-56-18-22.xiu123.cn
步骤三
根据以上步骤获取的 hip 和 flvtitle 拼接地址
'https://59-56-18-22.xiu123.cn/httpflv/v76282676-176898325' 'https://59-56-18-22.xiu123.cn/httpflv/v76282676-176898325.flv' 'https://59-56-18-22.xiu123.cn/v76282676-176898325/playlist.m3u8'
示例源码
C# 关键代码