Emby 怎么设置弹幕插件

自己折腾了一顿自己也忘了,记录一下。

写在前面

感谢

步骤

1. 安装 CustomCssJS

1.1 下载 CustomCssJS.jsEmby.CustomCssJS.dll

https://github.com/Shurelol/Emby.CustomCssJS/releases

1.2 修改后端(服务端)

复制src\Emby.CustomCssJS.dllprogramdata\plugins

1.3 修改桌面客户端

复制src\CustomCssJS.jselectronapp\plugins

2. 安装 dd-danmaku 到服务端

  • 找到服务端的 CustomCssJS Provider 插件设置
  • 添加自定义 JavaScript,把ede.js的内容粘贴进去,并设置为开启

https://github.com/chen3861229/dd-danmaku/blob/main/ede.js

3. 在客户端启动启动

  • 在用户首选项的 Custom Css and JavaScript自定义JavaScript 启动 ede.js

4. 查看是否正常运行

随便点进一个视频,正常的话右下角会出现对话气泡样式的图标,进行设置。

以下是本人的弹幕样式设置。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  "danmakuChConvert": 0,
  "danmakuSwitch": true,
  "danmakuFilterLevel": 1,
  "danmakuHeightPercent": 100,
  "danmakuFontSizeRate": 1.4,
  "danmakuFontOpacity": 0.7,
  "danmakuBaseSpeed": 1.1,
  "danmakuTimelineOffset": 0,
  "danmakuFontWeight": 600,
  "danmakuFontStyle": 0,
  "danmakuFontFamily": "sans-serif",
  "danmakuDanmuList": 0,
  "danmakuTypeFilter": [],
  "danmakuSourceFilter": [],
  "danmakuShowSource": [],
  "danmakuAutoFilterCount": 0,
  "danmakuMergeSimilarEnable": false,
  "danmakuMergeSimilarPercent": 100,
  "danmakuMergeSimilarTime": 10,
  "danmakuFilterKeywords": "",
  "danmakuFilterKeywordsEnable": true,
  "danmakuEngine": "canvas",
  "danmakuOsdTitleEnable": true,
  "danmakuOsdLineChartEnable": true,
  "danmakuOsdLineChartSkipFilter": false,
  "danmakuOsdLineChartTime": 10,
  "danmakuOsdHeaderClockEnable": false,
  "danmakuTimeoutCallbackUnit": 1,
  "danmakuTimeoutCallbackValue": 90,
  "danmakuBangumiEnable": false,
  "danmakuBangumiToken": "",
  "danmakuBangumiPostPercent": 95,
  "danmakuConsoleLogEnable": false,
  "danmakuUseFetchPluginXml": false,
  "danmakuDebugShowDanmakuWrapper": false,
  "danmakuDebugShowDanmakuCtrWrapper": false,
  "danmakuDebugReverseDanmu": false,
  "danmakuDebugRandomDanmuColor": false,
  "danmakuDebugForceDanmuWhite": false,
  "danmakuDebugGenerateLarge": false,
  "danmakuDebugDialogHyalinize": false,
  "danmakuDebugDialogWindow": false,
  "danmakuDebugDialogRight": false,
  "danmakuDebugTabIframeEnable": false,
  "danmakuDebugH5VideoAdapterEnable": false,
  "danmakuQuickDebugOn": false,
  "danmakuCustomeCorsProxyUrl": "https://ddplay-api.7o7o.cc/cors/",
  "danmakuCustomeDanmakuUrl": "https://danmaku.7o7o.cc/danmaku.min.js",
  "danmakuCustomeGetCommentUrl": "${dandanplayApi.prefix}/comment/${episodeId}?withRelated=true&chConvert=${chConvert}",
  "danmakuCustomeGetExtcommentUrl": "${dandanplayApi.prefix}/extcomment?url=${encodeURI(url)}",
  "danmakuCustomePosterImgUrl": "https://img.dandanplay.net/anime/${animeId}.jpg"
}

貌似是已知问题

无法正常识别多季的弹幕。例如药屋少女的呢喃第二季,会被自动识别为"药屋少女的呢喃 2",然后匹配到第一季的第二集。

使用 Hugo 构建
主题 StackJimmy 设计