🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

直播流获取

bilibili 获取直播流

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Author
mscststs
Daily installs
0
Total installs
3,280
Ratings
21 3 0
Version
0.62
Created
2020-02-24
Updated
2022-12-17
Size
5.54 KB
License
N/A
Applies to

简介

获取 bilibili 直播间的直播流,可以直接用本地播放器观看

亦可使用下载器下载,点击右侧面板按钮(或在视频播放区域右键)即可复制链接

关于部分直播间获取直播流无法使用播放器播放的问题

经查,是 B 站部分 mcdn/pcdn 对请求来源的 referer 和 ua 存在校验,普通播放器不带 referer 无法播放

如果需要兼容,则需要在本地开启一个简单的代理服务
这里提供一个简单的代理工具: https://github.com/mscststs/live-stream-proxy-tool

也可以不使用此脚本,直接用 StreamLink 等工具本地播放

如有其他工具/方法,可以留言反馈



udpate: 2022年7月24日

添加直接打开外部播放器功能,需要手动设置你的外部播放器协议

使用方法

  1. 打开直播页面
  2. 点击右上角 TamperMonkey 图标,点击
  3. 在列表中找到 “直播流获取” 下的菜单 “设置外部播放器协议”
  4. 根据你的外部播放器填写,如果你使用的 potplayer, 则填写 potplayer://
  5. 在获取直播流时,按住 Ctrl 键 (mac ctrl/command 均可),就会弹出打开外部程序的弹窗

以下是一些已知的外部程序协议, 未经测试,如有补充或问题,可以在留言区反馈

程序 协议
PotPlayer potplayer://
VLC vlc://
IINA iina://weblink?url=
nPlayer nplayer-

HaveFun!

udpate: 2021年11月8日

添加菜单功能允许禁用右下角菜单

udpate: 2021年10月10日

更新画质 qn=20000 支持 4K 流

udpate: 2021年8月22日

现已支持在视频右键菜单中复制链接,以解决面板在某些情况不展示的问题