Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新版获取直播流的 api #746

Closed
nulla2011 opened this issue Jul 18, 2023 · 3 comments · May be fixed by #1074
Closed

新版获取直播流的 api #746

nulla2011 opened this issue Jul 18, 2023 · 3 comments · May be fixed by #1074
Labels
直播/Live 接口:直播 更新/Update 更新过时内容
Milestone

Comments

@nulla2011
Copy link

旧版 api 没法获取现在直播正在广泛使用的格式(fMP4-HLS),我从 room-player.min.js 中发现了疑似新版的 api 地址的代码

a.ajax("//api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=" + e.roomId + "&protocol=0,1&format=0,1,2&codec=0,1&qn=" + e.qn + "&platform=" + (e.isMobile ? "html5" : "web") + "&ptype=8&dolby=5" + (e.isMobile ? "" : "&panorama=1")

image
直接访问就可以拿到 fmp4 格式的地址

@xiaoyv404 xiaoyv404 added 新增/Add 添加或修改新的内容 直播/Live 接口:直播 labels Jul 19, 2023
@xiaoyv404
Copy link
Collaborator

Pr welcome

@o0HalfLife0o
Copy link

这个api网页版至少去年9月就开始用了

@nulla2011
Copy link
Author

哦原来都写在 info.md 里面了,没看见(

@xiaoyv404 xiaoyv404 added this to the API Update milestone Aug 7, 2024
@xiaoyv404 xiaoyv404 added 更新/Update 更新过时内容 and removed 新增/Add 添加或修改新的内容 labels Aug 7, 2024
@xiaoyv404 xiaoyv404 linked a pull request Aug 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
直播/Live 接口:直播 更新/Update 更新过时内容
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants