Skip to content

Commit

Permalink
放宽弹幕速度范围
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed May 18, 2024
1 parent 433bad6 commit 12bf004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- 增加弹幕源: 手动添加自定义弹幕源(用于番剧刚发布,弹弹Play还未收录弹幕源地址时使用,如果已经登录,则会提交给弹弹Play)
- 弹幕设置:
- 设置弹幕透明度 [0, 1]
- 设置弹幕速度 [100, 600]
- 设置弹幕速度 [20, 600]
- 设置弹幕字体大小 [8, 32]
- 设置弹幕区域占屏幕的高度比例 [0, 1]
- 弹幕密度: 依据水平和垂直密度过滤, 弹幕0级无限制*
Expand Down
6 changes: 3 additions & 3 deletions ede.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Jellyfin弹幕插件
// @namespace https://github.com/RyoLee
// @author RyoLee
// @version 1.36
// @version 1.37
// @copyright 2022, RyoLee (https://github.com/RyoLee)
// @license MIT; https://raw.githubusercontent.com/Izumiko/jellyfin-danmaku/jellyfin/LICENSE
// @icon https://github.githubassets.com/pinned-octocat.svg
Expand Down Expand Up @@ -148,7 +148,7 @@
</div>
<div style="display: flex;">
<span id="lbspeed" style="flex: auto;">弹幕速度:</span>
<input style="width: 50%;" type="range" id="speed" min="100" max="600" step="10" value="${window.ede.speed || 200}" />
<input style="width: 50%;" type="range" id="speed" min="20" max="600" step="10" value="${window.ede.speed || 200}" />
</div>
<div style="display: flex;">
<span id="lbfontSize" style="flex: auto;">字体大小:</span>
Expand Down Expand Up @@ -216,7 +216,7 @@
window.ede.opacity = parseFloatOfRange(document.getElementById('opacity').value, 0, 1);
window.localStorage.setItem('danmakuopacity', window.ede.opacity.toString());
showDebugInfo(`设置弹幕透明度:${window.ede.opacity}`);
window.ede.speed = parseFloatOfRange(document.getElementById('speed').value, 100, 600);
window.ede.speed = parseFloatOfRange(document.getElementById('speed').value, 20, 600);
window.localStorage.setItem('danmakuspeed', window.ede.speed.toString());
showDebugInfo(`设置弹幕速度:${window.ede.speed}`);
window.ede.fontSize = parseFloatOfRange(document.getElementById('fontSize').value, 8, 40);
Expand Down

0 comments on commit 12bf004

Please sign in to comment.