起因
因为 Dplayer 作者提供的那个免费的弹幕服务器挂掉了,自己又懒得去搞 Docker,我打算自己写一个,拖延了两个月以后,动手撸了一个出来。
简介
参考了 Dplayer 作者拿 js 写的项目,自己拿 C#撸了一个出来,目前来看,差不多 100%兼容 Dplayer 吧,原版有的功能都有了,并且稍稍加强了一点 BiliBili 弹幕解析的功能,具体介绍可以看README
示例
视频: https://blog.xxwhite.com/2017/VideoTest.html
普通弹幕接口 https://danmaku.xwhite.studio/api/dplayer/v3/?id=46190A32F63DFF2CF0A3BB0F3293636C (视频设定的 id,最大长度 32,推荐使用视频的 MD5 值作为 id )
BiliBili 弹幕接口:
- https://danmaku.xwhite.studio/api/dplayer/v3/bilibili/?cid=28019559
- https://danmaku.xwhite.studio/api/dplayer/v3/bilibili?aid=17150441&p=1
- https://danmaku.xwhite.studio/api/dplayer/v3/bilibili/?cid=1176840
- https://danmaku.xwhite.studio/api/dplayer/v3/bilibili?aid=810872&p=1
TODO
如果可能的话,后面会写一个面板来管理弹幕。