求虎牙直播源获取方式
本帖最后由 xsq 于 2020-6-4 23:19 编辑虎牙最近有更新了, 现在想问问 各位大佬怎么获取,永久的直播流地址
下面是虎牙的某房间的JSon 数据, 我 怎么拼接都 得不到真实的直播流
http://tx.hls.huya.com/src/94525224-2460685313-10568562945082523648-2789274524-10057-A-0-1.flv?wsSecret=e26f40aef44c2bcd652d11228ef15b95&wsTime=5ed9089d&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw==&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*
那位大佬告诉一下 怎么拼接
[*]{
[*] "WEBYYFROM": "",
[*] "WEBYYHOST": "http://weblbs.yystatic.com/",
[*] "WEBYYSWF": "jsscene",
[*] "html5": 1,
[*] "stream": {
[*] "count": 0,
[*] "data": [
[*] {
[*] "gameLiveInfo": {
[*] "activityCount": 6761087,
[*] "activityId": 0,
[*] "avatar180": "https://huyaimg.msstatic.com/avatar/1084/37/7c96090110880e88916b11e4a18cf9_180_135.jpg?1526894329",
[*] "bitRate": 2000,
[*] "bussType": 8,
[*] "cameraOpen": 0,
[*] "channel": 94525224,
[*] "codecType": 0,
[*] "contentIntro": "",
[*] "gameFullName": "一起看",
[*] "gid": 2135,
[*] "introduction": "【周星星】精彩电影无间断",
[*] "isSecret": 0,
[*] "level": 31,
[*] "liveChannel": 2460685313,
[*] "liveCompatibleFlag": 0,
[*] "liveId": 6811889697719753298,
[*] "liveSourceType": 1,
[*] "multiStreamFlag": 1,
[*] "nick": "周星星",
[*] "privateHost": "1548056283",
[*] "profileHomeHost": "1548056283",
[*] "profileRoom": 11342412,
[*] "recommendStatus": 0,
[*] "recommendTagName": "",
[*] "roomName": "【周星星】精彩无间断",
[*] "screenType": 0,
[*] "screenshot": "http://live-cover.msstatic.com/huyalive/94525224-2460685313-10568562945082523648-2789274524-10057-A-0-1/20200604213330.jpg",
[*] "sex": 2,
[*] "shortChannel": 28,
[*] "startTime": 1586016663,
[*] "totalCount": 1432419,
[*] "uid": 1394575534,
[*] "yyid": 1548056283
[*] },
[*] "gameStreamInfoList": [
[*] {
[*] "iIsMaster": 0,
[*] "iIsMultiStream": 1,
[*] "iIsP2PSupport": 1,
[*] "iLineIndex": 3,
[*] "iMobilePriorityRate": 0,
[*] "iPCPriorityRate": 0,
[*] "iWebPriorityRate": 0,
[*] "lChannelId": 94525224,
[*] "lFreeFlag": 2,
[*] "lPresenterUid": 1394575534,
[*] "lSubChannelId": 2460685313,
[*] "newCFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sCdnType": "AL",
[*] "sFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sFlvUrl": "http://al.flv.huya.com/src",
[*] "sFlvUrlSuffix": "flv",
[*] "sHlsAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sHlsUrl": "http://al.hls.huya.com/src",
[*] "sHlsUrlSuffix": "m3u8",
[*] "sP2pAntiCode": "",
[*] "sP2pUrl": "http://al.p2p.huya.com/huyalive",
[*] "sP2pUrlSuffix": "slice",
[*] "sStreamName": "94525224-2460685313-10568562945082523648-2789274524-10057-A-0-1",
[*] "vFlvIPList": []
[*] },
[*] {
[*] "iIsMaster": 0,
[*] "iIsMultiStream": 1,
[*] "iIsP2PSupport": 1,
[*] "iLineIndex": 5,
[*] "iMobilePriorityRate": 0,
[*] "iPCPriorityRate": 0,
[*] "iWebPriorityRate": 0,
[*] "lChannelId": 94525224,
[*] "lFreeFlag": 1,
[*] "lPresenterUid": 1394575534,
[*] "lSubChannelId": 2460685313,
[*] "newCFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sCdnType": "TX",
[*] "sFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sFlvUrl": "http://tx.flv.huya.com/src",
[*] "sFlvUrlSuffix": "flv",
[*] "sHlsAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sHlsUrl": "http://tx.hls.huya.com/src",
[*] "sHlsUrlSuffix": "m3u8",
[*] "sP2pAntiCode": "",
[*] "sP2pUrl": "http://tx.p2p.huya.com/huyalive",
[*] "sP2pUrlSuffix": "slice",
[*] "sStreamName": "94525224-2460685313-10568562945082523648-2789274524-10057-A-0-1",
[*] "vFlvIPList": []
[*] },
[*] {
[*] "iIsMaster": 0,
[*] "iIsMultiStream": 1,
[*] "iIsP2PSupport": 1,
[*] "iLineIndex": 6,
[*] "iMobilePriorityRate": 100,
[*] "iPCPriorityRate": 100,
[*] "iWebPriorityRate": 100,
[*] "lChannelId": 94525224,
[*] "lFreeFlag": 0,
[*] "lPresenterUid": 1394575534,
[*] "lSubChannelId": 2460685313,
[*] "newCFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sCdnType": "HW",
[*] "sFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sFlvUrl": "http://hw.flv.huya.com/src",
[*] "sFlvUrlSuffix": "flv",
[*] "sHlsAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sHlsUrl": "http://hw.hls.huya.com/src",
[*] "sHlsUrlSuffix": "m3u8",
[*] "sP2pAntiCode": "",
[*] "sP2pUrl": "http://hw.p2p.huya.com/huyalive",
[*] "sP2pUrlSuffix": "slice",
[*] "sStreamName": "94525224-2460685313-10568562945082523648-2789274524-10057-A-0-1",
[*] "vFlvIPList": []
[*] },
[*] {
[*] "iIsMaster": 0,
[*] "iIsMultiStream": 1,
[*] "iIsP2PSupport": 1,
[*] "iLineIndex": 7,
[*] "iMobilePriorityRate": 0,
[*] "iPCPriorityRate": 0,
[*] "iWebPriorityRate": 0,
[*] "lChannelId": 94525224,
[*] "lFreeFlag": 0,
[*] "lPresenterUid": 1394575534,
[*] "lSubChannelId": 2460685313,
[*] "newCFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sCdnType": "BD",
[*] "sFlvAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sFlvUrl": "http://bd.flv.huya.com/src",
[*] "sFlvUrlSuffix": "flv",
[*] "sHlsAntiCode": "wsSecret=1e112c99082d686d09a69a3181f9b60b&wsTime=5ed8f857&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=huya_tars&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*",
[*] "sHlsUrl": "http://bd.hls.huya.com/src",
[*] "sHlsUrlSuffix": "m3u8",
[*] "sP2pAntiCode": "",
[*] "sP2pUrl": "http://bd.p2p.huya.com/huyalive",
[*] "sP2pUrlSuffix": "slice",
[*] "sStreamName": "94525224-2460685313-10568562945082523648-2789274524-10057-A-0-1",
[*] "vFlvIPList": []
[*] }
[*] ]
[*] }
[*] ],
[*] "iWebDefaultBitRate": 2000,
[*] "msg": "",
[*] "status": 200,
[*] "vMultiStreamInfo": [
[*] {
[*] "iBitRate": 0,
[*] "sDisplayName": "超清"
[*] },
[*] {
[*] "iBitRate": 500,
[*] "sDisplayName": "流畅"
[*] }
[*] ]
[*] },
[*] "vappid": 10057
[*]}
同求,之前那个确实挺不错 https://hw.hls.huya.com/src/2369163095-2369163095-10175478011915141120-4738449646-10057-A-0-1_2000.m3u8?wsSecret=846ee54ef32311598307fdd084f20378&wsTime=5eda640e&u=0&seqid=15912843670272784&ctype=huya_tars&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*
这种直播吗?想要哪一个? 直播源直接抓源就可以了,和其他抓电视直播源没有区别 aliczhu 发表于 2020-6-4 23:27
https://hw.hls.huya.com/src/2369163095-2369163095-10175478011915141120-4738449646-10057-A-0-1_2000.m ...
m3u8 我拼接的 怎么播放不了 aliczhu 发表于 2020-6-4 23:30
直播源直接抓源就可以了,和其他抓电视直播源没有区别
抓取的 可以播放?? aliczhu 发表于 2020-6-4 23:30
直播源直接抓源就可以了,和其他抓电视直播源没有区别
方便告诉一下 怎么抓取? 火狐有一个查看源代码,看看能取到不 xyzo 发表于 2020-6-4 23:38
火狐有一个查看源代码,看看能取到不
应该不行 油猴有个插件可以直接获取啊我用potplayer试了可以用