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

关于Alpha新版的插件机制问题 #1592

Open
turnmind opened this issue Aug 31, 2024 · 0 comments
Open

关于Alpha新版的插件机制问题 #1592

turnmind opened this issue Aug 31, 2024 · 0 comments

Comments

@turnmind
Copy link

新的Alpha版好像已经把内置的控制栏 Controls 正式作为 Preset,和其它内置的插件一并统一注册和管理。不像 V3.0.20 那样单独拎出来注册到播放器实例中。但这也会遇到一个问题,如果 Controls 没有提前注册,那么依赖它的其它插件就无法进行注册,而且经过我简单分析代码,发现播放器配置中的插件的优先级比默认的 Preset 要高,所以在外部配置的插件如果依赖 Controls 注册额外的插件就会报错。

所以我目前只能通过修改 Preset 并且把 Controls 放到第一进行注册才能避免这些问题,因为个人能力有限,不知道新版的插件机制是不是有新颖的设计思想,并且请告知一下如何解决遇到的问题。以下是我目前解决问题的办法,希望对同样遇到问题的人提供一点帮助。
Snipaste_2024-09-01_00-27-09-3
Snipaste_2024-09-01_00-27-09-4
Snipaste_2024-09-01_00-27-09-2

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

No branches or pull requests

1 participant