Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义弹幕大小和速度 #14

Merged
merged 10 commits into from
Nov 20, 2023
Merged

自定义弹幕大小和速度 #14

merged 10 commits into from
Nov 20, 2023

Conversation

Xarth-Mai
Copy link

@Xarth-Mai Xarth-Mai commented Nov 20, 2023

Sry , 改了两个图标,添加了自定义弹幕大小和速度的功能

@Xarth-Mai Xarth-Mai closed this Nov 20, 2023
@Xarth-Mai Xarth-Mai reopened this Nov 20, 2023
@Xarth-Mai Xarth-Mai closed this Nov 20, 2023
@Xarth-Mai Xarth-Mai reopened this Nov 20, 2023
@Xarth-Mai
Copy link
Author

反复Debug现在应该完全正常了

@Xarth-Mai
Copy link
Author

弹幕行数限制不知道是哪个变量 Danmaku那个Wiki实在找不到资料

@Xarth-Mai
Copy link
Author

网络突然故障导致刷了好几个提交😭

缓解Safari在此卡住
ede.js Outdated Show resolved Hide resolved
ede.js Show resolved Hide resolved
@Izumiko
Copy link
Owner

Izumiko commented Nov 20, 2023

删掉弹幕信息的按钮的话,把匹配的信息在搜索完弹幕之后打印到log里吧

@Xarth-Mai
Copy link
Author

Xarth-Mai commented Nov 20, 2023

删掉弹幕信息的按钮的话,把匹配的信息在搜索完弹幕之后打印到log里吧

我本来是这么写的 但是那条log不知道为什么一直出不来 貌似还有其它问题

@Xarth-Mai
Copy link
Author

万能的reload有点好用

@Izumiko
Copy link
Owner

Izumiko commented Nov 20, 2023

弹幕行数限制不知道是哪个变量 Danmaku那个Wiki实在找不到资料

创建Danmaku实例后,它会在container下面插入一个canvas,你可以限制一下canvas的style height和height,来控制高度。比如占屏幕高度的0.5或者0.3之类的。

看了一下Danmaku的代码,resize API不接受参数,有点尴尬,直接手动指定height的话,要是devicePixelRatio不为1还得换算一下

@Izumiko Izumiko merged commit 735e998 into Izumiko:jellyfin Nov 20, 2023
1 check passed
@Xarth-Mai Xarth-Mai changed the title 自定义弹幕大小和速度&几个按钮修改 自定义弹幕大小和速度 Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants