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

Move disableDimming to VideoView #240

Closed
wants to merge 1 commit into from

Conversation

dragonflylee
Copy link
Contributor

参考文档中 MPV_EVENT_SEEK,简化了部分 mpv 事件订阅

disableDimming 转移到 VideoView 中的 showLoading/hideLoading 中调用,减少了 disableDimming 到处调用的情况

@xfangfang
Copy link
Owner

我的想法是还把 disableDimming 放在 mpv里面,但是可以精简到 core-idle 那个状态的判定下面,core-idle 应该可以精准的表示播放器是否正在播放,正好比较适合。因为 mpvCore 是单例的, 维护是否息屏的状态会更容易一些,如果放在videoview下我怕出现错误调用 disableDimming 的情况。

@dragonflylee
Copy link
Contributor Author

core-idle

core-idle 下面判断确实更合适

@dragonflylee dragonflylee deleted the mpv branch November 21, 2023 01:28
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