Giter Site home page Giter Site logo

Comments (4)

Xmader avatar Xmader commented on June 10, 2024

感谢提醒,但是目前不需要前端进行合并,使用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.

weituotian avatar weituotian commented on June 10, 2024

@Xmader 纳尼,为什么现在playurl接口没有加密参数了?

from bilitwin.

weituotian avatar weituotian commented on June 10, 2024

@Xmader

我发现番剧的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.

Xmader avatar Xmader commented on June 10, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.