Comments (4)
感谢提醒,但是目前不需要前端进行合并,使用B站的API即可。
使用这个API可以直接获取到flv格式的完整视频:
https://api.bilibili.com/pgc/player/web/playurl?avid=${aid}&cid=${cid}&otype=json&qn=80
例如:
https://api.bilibili.com/pgc/player/web/playurl?avid=41056476&cid=72215936&otype=json&qn=80
from bilitwin.
@Xmader 纳尼,为什么现在playurl接口没有加密参数了?
from bilitwin.
我发现番剧的api带的参数不同,返回的结果不一样
- 返回的mp4地址,但是视频和音频是不同文件的:
https://api.bilibili.com/pgc/player/web/playurl?avid=32212501&cid=56354510&qn=80&type=&otype=json&ep_id=250522&fnver=0&fnval=16&session=3baf59c5187c643137724788a92a4f8e
- 返回的flv格式的视频地址:
https://api.bilibili.com/pgc/player/web/playurl?avid=32212501&cid=56354510&qn=80&otype=json
from bilitwin.
@weituotian
是的,我也发现了,但是只要加上 &fnver=0&fnval=16
两个参数就可以返回音视频分开的mp4文件
例如:
https://api.bilibili.com/pgc/player/web/playurl?avid=32212501&cid=56354510&qn=80&otype=json&fnver=0&fnval=16
from bilitwin.
Related Issues (20)
- 無法下載 HOT 1
- Chrome + Violentmonkey 最近开始失效 Cannot assign to read only property 'window' of object '#<Object>' HOT 1
- 我新来的不怎么清楚这个脚本怎么使用 HOT 1
- 导出到idm的.ef2文件咋用鸭 HOT 1
- 下载失效
- 字幕轉換問題
- 无法批量下载,且无法获取上下集
- 希望增加分享当前时间的功能
- Uncaught TypeError: Cannot read property 'dispatchEvent' of null HOT 1
- 登录b站的时候脚本失效了
- 不能下载 HOT 2
- Edge浏览器兼容版本的下载链接404! HOT 1
- 安装了脚本之后,打开b站不出现下载FLV按钮,右键也没用呢 HOT 2
- 番剧无法显示右键菜单以及下载按钮
- 好像不可以了
- 有的视频能缓存却不能下载
- is:issue is:open 有些视频可以下载,有些不能下载,使用了破解区域限制插件后仍然不能下载有区域限制的视频,需要使用梯子才能下载。浏览器chrome,操作系统Windows10 专业版21H1 HOT 1
- 播放器内无法出现脚本页面
- 已经用不了了,右键无法加载选项,求更新…
- 没有缓存视频功能了救! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilitwin.