All Projects → Tsuk1ko → Bilibili Live Chat

Tsuk1ko / Bilibili Live Chat

Licence: mit
📽️ 无后端的仿 YouTube Live Chat 风格的简易 Bilibili 弹幕姬

Projects that are alternatives of or similar to Bilibili Live Chat

Danmaku
live video comments protocol and platform api
Stars: ✭ 70 (-81.53%)
Mutual labels:  bilibili, live
Bilibili Live Tools
python实现的bilibili直播助手
Stars: ✭ 819 (+116.09%)
Mutual labels:  bilibili, live
Bilibili Live Barrage
🌈Bilibili_Live_Barrage实时监控B站直播弹幕并发送跟随弹幕
Stars: ✭ 28 (-92.61%)
Mutual labels:  live, bilibili
Bilibili Live Recorder
下载 bilibili 直播 视频流
Stars: ✭ 52 (-86.28%)
Mutual labels:  bilibili, live
Bilibili Vtuber Danmaku
Vtuber直播间的弹幕哟~
Stars: ✭ 107 (-71.77%)
Mutual labels:  bilibili, live
Bilibililiverecorder
pure-java B站/Acfun/斗鱼/虎牙/快手/抖音/YY/战旗/花椒 直播视频录制。仅需Java环境即可运行
Stars: ✭ 195 (-48.55%)
Mutual labels:  bilibili, live
blrec
Bilibili Live Streaming Recorder 哔哩哔哩直播录制
Stars: ✭ 124 (-67.28%)
Mutual labels:  live, bilibili
Ingressmonitorcontroller
A Kubernetes controller to watch ingresses and create liveness alerts for your apps/microservices in UptimeRobot, StatusCake, Pingdom, etc. – [✩Star] if you're using it!
Stars: ✭ 306 (-19.26%)
Mutual labels:  live
Blivechat
用于OBS的仿YouTube风格的bilibili直播评论栏
Stars: ✭ 329 (-13.19%)
Mutual labels:  bilibili
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-22.43%)
Mutual labels:  live
Fastestbilibilidownloader
B站视频极速批量下载器|The fastest Bilibili video downloader
Stars: ✭ 294 (-22.43%)
Mutual labels:  bilibili
Swiftproject
swift project that brings together some demos, componented, Target-Action, use Swift
Stars: ✭ 310 (-18.21%)
Mutual labels:  live
Bilibili Helper O
哔哩哔哩 (bilibili.com) 辅助工具,可以替换播放器、推送通知并进行一些快捷操作
Stars: ✭ 3,717 (+880.74%)
Mutual labels:  bilibili
Bilibili Block List
基于正则表达式的Bilibili弹幕屏蔽规则
Stars: ✭ 304 (-19.79%)
Mutual labels:  bilibili
Bilihelper Personal
(Bilibili)B 站自动领瓜子、直播助手、直播挂机脚本、主站助手 - PHP 版(Personal)
Stars: ✭ 362 (-4.49%)
Mutual labels:  bilibili
Oreilly Kubernetes
O'Reilly Online Training for Kubernetes
Stars: ✭ 295 (-22.16%)
Mutual labels:  live
Rnlive
RNLive ----> react-native 仿映客直播 支持iOS/Android
Stars: ✭ 370 (-2.37%)
Mutual labels:  live
Searchdialog
仿bilibili搜索框效果(三句代码实现)
Stars: ✭ 361 (-4.75%)
Mutual labels:  bilibili
Scribbletune
Create music with JavaScript
Stars: ✭ 3,509 (+825.86%)
Mutual labels:  live
Bilibili Plus
课程视频、PPT和源代码:侯捷C++系列;台大郭彦甫MATLAB
Stars: ✭ 266 (-29.82%)
Mutual labels:  bilibili

Bilibili Live Chat

Preview

这是一个无后端的,仿 YouTube Live Chat 的,箱都不用开就能食用的 Bilibili 直播弹幕姬

主要用于 OBS,为的是在低功能需求的情况下,不依靠任何第三方本地软件实现弹幕和礼物的展示

老版本在 v1 分支,新版本是使用 Vue 3 重构的版本,并增加了一些新特性,成品直接部署在 Github Pages

食用步骤

  1. 打开 blc.lolicon.app
  2. 输入房间号,填写设置项,点击“Go!”,然后复制新页面的地址
  3. 在 OBS 中添加“浏览器”来源,将地址粘贴到“URL”处,根据自己需要调整宽高和缩放
  4. Enjoy~

其他说明

显示头像

获取用户头像需要调用B站 API,但B站限制了其 API 不能被跨域调用

  • 礼物弹幕数据会附带用户头像,所以仅对礼物弹幕显示头像不需要调用B站 API
  • 若不启用“直接跨域”,则调用B站 API 会自动通过 json2jsonp 来绕开跨域限制,但请求比较慢
  • 不启用“直接跨域”的情况下也可以选择调用 Imjad API,该 API 位于国内速度较快,且允许跨域调用

头像加载机制:

  • 获取到头像后,图片会被预加载,加载完毕或超时(10 秒)后弹幕才会被插入弹幕列表
  • 非 GIF 头像会优先加载小头像(48x48)以节省流量,若首包到达时间超过 2 秒(B站 COS 图片压缩处理卡了,偶尔可能发生),则会回退为加载完整大小的头像图片

直接跨域

对于上面所述的无法跨域调用B站 API 的问题有一个解决方法:

任何基于 Chromium 的浏览器(例如 OBS Browser 和 Chrome)都可以通过添加 --disable-web-security 启动参数来禁用网页安全机制,此时可以开启 Bilibili Live Chat 的“直接跨域”选项,所有B站 API 将被直接跨域调用,这样就不需要依赖任何第三方 API

示例:

  • OBS:直接在启动的快捷方式后追加该参数,然后通过快捷方式启动即可
    obs
  • Chrome:和 OBS 同理,不过必须额外添加一个 --user-data-dir 参数来指定用户目录,随意新建一个空文件夹来指定即可
    该操作看上去十分麻烦,实则是 Chrome 的一个安全措施,因为禁用网页安全机制是危险行为,日常使用时千万别这么做
    chrome

其他内核的浏览器可以自行搜索相应参数来禁用网页安全机制

TODO

  • [ ] 支持 SC

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].