Open xjbeta opened 2 years ago
GET http://127.0.0.1:19080/video?url=https://live.com/12345 19080 -> Port
http://127.0.0.1:19080/video?url=https://live.com/12345
Example http://127.0.0.1:19080/video?url=https://www.huya.com/11342412
http://127.0.0.1:19080/video?url=https://www.huya.com/11342412
Result
{ "streams" : { "超清" : { "quality" : 2000, "url" : "https:\/\/hw.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d04660569e2df4e2a4fcb643f09ca7f5&wsTime=62483d9a&seqid=16488151500693722&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=2000", "src" : [ "https:\/\/ws.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=21232577b75d53567302a6f1d9cb943d&wsTime=62483d9a&seqid=16488151500695880&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=2000", "https:\/\/al.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=28d6ae55e4f840c04af0554d4ad4165d&wsTime=62483d9a&seqid=16488151500697670&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=2000", "https:\/\/tx.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=001ed8bae540d82a0ab3fcdddd959356&wsTime=62483d9a&seqid=16488151500699420&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=2000", "https:\/\/bd.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=0753ad115cb7e77e7c14c91ea6663c04&wsTime=62483d9a&seqid=16488151500701020&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=2000", "\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d76b9e428de13655c65fe4097ba8a512&wsTime=62483d9a&seqid=16488151500702538&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=2000" ], "rate" : -1 }, "流畅" : { "quality" : 500, "url" : "https:\/\/hw.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d04660569e2df4e2a4fcb643f09ca7f5&wsTime=62483d9a&seqid=16488151500693722&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=500", "src" : [ "https:\/\/ws.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=21232577b75d53567302a6f1d9cb943d&wsTime=62483d9a&seqid=16488151500695880&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=500", "https:\/\/al.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=28d6ae55e4f840c04af0554d4ad4165d&wsTime=62483d9a&seqid=16488151500697670&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=500", "https:\/\/tx.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=001ed8bae540d82a0ab3fcdddd959356&wsTime=62483d9a&seqid=16488151500699420&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=500", "https:\/\/bd.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=0753ad115cb7e77e7c14c91ea6663c04&wsTime=62483d9a&seqid=16488151500701020&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=500", "\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d76b9e428de13655c65fe4097ba8a512&wsTime=62483d9a&seqid=16488151500702538&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=500" ], "rate" : -1 }, "蓝光4M" : { "quality" : 9999999, "url" : "https:\/\/hw.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d04660569e2df4e2a4fcb643f09ca7f5&wsTime=62483d9a&seqid=16488151500693722&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "src" : [ "https:\/\/ws.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=21232577b75d53567302a6f1d9cb943d&wsTime=62483d9a&seqid=16488151500695880&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/al.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=28d6ae55e4f840c04af0554d4ad4165d&wsTime=62483d9a&seqid=16488151500697670&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/tx.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=001ed8bae540d82a0ab3fcdddd959356&wsTime=62483d9a&seqid=16488151500699420&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/bd.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=0753ad115cb7e77e7c14c91ea6663c04&wsTime=62483d9a&seqid=16488151500701020&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d76b9e428de13655c65fe4097ba8a512&wsTime=62483d9a&seqid=16488151500702538&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0" ], "rate" : -1 } }, "id" : -1, "title" : "【周星星】星爷经典不间断", "audio" : "", "duration" : -1 }
Example http://127.0.0.1:19080/video?url=https://www.huya.com/11342412&key=蓝光4M&pluginAPI=1
http://127.0.0.1:19080/video?url=https://www.huya.com/11342412&key=蓝光4M&pluginAPI=1
Result (Hex to String)
7b0a20202272617755726c22203a202268747470733a5c2f5c2f7777772e687579612e636f6d5c2f3131333432343132222c0a20202275726c7322203a205b0a202020202268747470733a5c2f5c2f68772e666c762e687579612e636f6d5c2f7372635c2f313339343537353533342d313339343537353533342d353938393635363331303333313733363036342d323738393237343532342d31303035372d412d302d312d696d67706c75732e666c763f77735365637265743d393330353232656631313739326438633134323837643935343037646435333826777354696d653d36323438336565322673657169643d313634383831353436393138383537333826747879703d6f25334164332533422666733d62676374267370686463646e3d616c5f372d74785f332d6a735f332d77735f372d62645f322d68775f32267370686444433d6875796126737068643d3236345f2a2d3236355f2a26726174696f3d3026753d3026743d3130302673763d26726174696f3d30222c0a202020202268747470733a5c2f5c2f77732e666c762e687579612e636f6d5c2f7372635c2f313339343537353533342d313339343537353533342d353938393635363331303333313733363036342d323738393237343532342d31303035372d412d302d312d696d67706c75732e666c763f77735365637265743d313737643234346439306164353231303430343032323837326161313230393826777354696d653d36323438336565322673657169643d313634383831353436393138383738383826747879703d6f25334164332533422666733d62676374267370686463646e3d616c5f372d74785f332d6a735f332d77735f372d62645f322d68775f32267370686444433d6875796126737068643d3236345f2a2d3236355f2a26726174696f3d3026753d3026743d3130302673763d26726174696f3d30222c0a202020202268747470733a5c2f5c2f616c2e666c762e687579612e636f6d5c2f7372635c2f313339343537353533342d313339343537353533342d353938393635363331303333313733363036342d323738393237343532342d31303035372d412d302d312d696d67706c75732e666c763f77735365637265743d643465666636623362366635636564393961306461646336306631663230353426777354696d653d36323438336565322673657169643d313634383831353436393138383936383026747879703d6f25334164332533422666733d62676374267370686463646e3d616c5f372d74785f332d6a735f332d77735f372d62645f322d68775f32267370686444433d6875796126737068643d3236345f2a2d3236355f2a26726174696f3d3026753d3026743d3130302673763d26726174696f3d30222c0a202020202268747470733a5c2f5c2f74782e666c762e687579612e636f6d5c2f7372635c2f313339343537353533342d313339343537353533342d353938393635363331303333313733363036342d323738393237343532342d31303035372d412d302d312d696d67706c75732e666c763f77735365637265743d353037623335626534366563386462323936396532336532636336356432306126777354696d653d36323438336565322673657169643d313634383831353436393138393133363026747879703d6f25334164332533422666733d62676374267370686463646e3d616c5f372d74785f332d6a735f332d77735f372d62645f322d68775f32267370686444433d6875796126737068643d3236345f2a2d3236355f2a26726174696f3d3026753d3026743d3130302673763d26726174696f3d30222c0a202020202268747470733a5c2f5c2f62642e666c762e687579612e636f6d5c2f7372635c2f313339343537353533342d313339343537353533342d353938393635363331303333313733363036342d323738393237343532342d31303035372d412d302d312d696d67706c75732e666c763f77735365637265743d343938346461303134363765373433643164643737346434306231613638626626777354696d653d36323438336565322673657169643d313634383831353436393138393330363026747879703d6f25334164332533422666733d62676374267370686463646e3d616c5f372d74785f332d6a735f332d77735f372d62645f322d68775f32267370686444433d6875796126737068643d3236345f2a2d3236355f2a26726174696f3d3026753d3026743d3130302673763d26726174696f3d30222c0a20202020225c2f313339343537353533342d313339343537353533342d353938393635363331303333313733363036342d323738393237343532342d31303035372d412d302d312d696d67706c75732e666c763f77735365637265743d303536323964643237646437663464396162393363646365323038623566613526777354696d653d36323438336565322673657169643d313634383831353436393138393438383026747879703d6f25334164332533422666733d62676374267370686463646e3d616c5f372d74785f332d6a735f332d77735f372d62645f322d68775f32267370686444433d6875796126737068643d3236345f2a2d3236355f2a26726174696f3d3026753d3026743d3130302673763d26726174696f3d30220a20205d2c0a202022706f727422203a2031393038302c0a2020226c696e657322203a205b0a20202020224c696e652031222c0a20202020224c696e652032222c0a20202020224c696e652033222c0a20202020224c696e652034222c0a20202020224c696e652035222c0a20202020224c696e652036220a20205d2c0a2020226d707653637269707422203a2022666f7263652d6d656469612d7469746c653d5c22e38090e591a8e6989fe6989fe38091e6989fe788b7e7bb8fe585b8e4b88de997b4e696ad5c222c7974646c3d5c226e6f5c22222c0a20202263757272656e745175616c69747922203a20302c0a20202263757272656e744c696e6522203a20302c0a2020227479706522203a20302c0a2020227175616c6974797322203a205b0a2020202022e8939de58589344d222c0a2020202022e8b685e6b885222c0a2020202022e6b581e79585220a20205d0a7d
{ "rawUrl" : "https:\/\/www.huya.com\/11342412", "urls" : [ "https:\/\/hw.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=930522ef11792d8c14287d95407dd538&wsTime=62483ee2&seqid=16488154691885738&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/ws.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=177d244d90ad5210404022872aa12098&wsTime=62483ee2&seqid=16488154691887888&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/al.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=d4eff6b3b6f5ced99a0dadc60f1f2054&wsTime=62483ee2&seqid=16488154691889680&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/tx.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=507b35be46ec8db2969e23e2cc65d20a&wsTime=62483ee2&seqid=16488154691891360&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "https:\/\/bd.flv.huya.com\/src\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=4984da01467e743d1dd774d40b1a68bf&wsTime=62483ee2&seqid=16488154691893060&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0", "\/1394575534-1394575534-5989656310331736064-2789274524-10057-A-0-1-imgplus.flv?wsSecret=05629dd27dd7f4d9ab93cdce208b5fa5&wsTime=62483ee2&seqid=16488154691894880&txyp=o%3Ad3%3B&fs=bgct&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&ratio=0&u=0&t=100&sv=&ratio=0" ], "port" : 19080, "lines" : [ "Line 1", "Line 2", "Line 3", "Line 4", "Line 5", "Line 6" ], "mpvScript" : "force-media-title=\"【周星星】星爷经典不间断\",ytdl=\"no\"", "currentQuality" : 0, "currentLine" : 0, "type" : 0, "qualitys" : [ "蓝光4M", "超清", "流畅" ] }
请问获得的这一串Hex怎么用才能用IINA-Danmuku打开呢? 以及能否也演示一下bilibili的链接怎么通过shell命令在IINA-Danmuku里打开并且显示弹幕?
Version 0.5.21+ Only
GET
http://127.0.0.1:19080/video?url=https://live.com/12345
19080 -> PortExample
http://127.0.0.1:19080/video?url=https://www.huya.com/11342412
Result
Example
http://127.0.0.1:19080/video?url=https://www.huya.com/11342412&key=蓝光4M&pluginAPI=1
Result (Hex to String)