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

fix #590 (Volume persistence) #597

Merged
merged 3 commits into from
Jan 13, 2025
Merged

fix #590 (Volume persistence) #597

merged 3 commits into from
Jan 13, 2025

Conversation

yusuaois
Copy link
Contributor

仅在当前播放器进程中记忆音量

@Predidit
Copy link
Owner

感谢你的工作,但是这个PR可能带来问题

  1. 我们在桌面平台上和移动平台上关于音量条件的行为是不同的,移动平台上是直接调节系统音量,这个PR在某些情况下会让音量从100开始调节,这在移动平台上是无法接受的

  2. 我有些不明白 curVolume 存在的意义,使用他的场合看上去都可以直接使用已经存在的 volume

@yusuaois
Copy link
Contributor Author

关于移动平台这方面我再看看

@yusuaois
Copy link
Contributor Author

测试过该版本在安卓与windows上都能正常工作

@Predidit
Copy link
Owner

L135 可以在 volume 为 -1 时返回 100

这里使用 playerVolume 这个 getter 的目的是什么

@yusuaois
Copy link
Contributor Author

确实,虽然这个getter返回的也是100,可以直接填入100,能减少消耗

我下午回去再修改PR

@Predidit
Copy link
Owner

感谢你的工作

@Predidit Predidit merged commit de430d6 into Predidit:main Jan 13, 2025
@yusuaois yusuaois deleted the Canary branch January 13, 2025 07:11
@Predidit
Copy link
Owner

@yusuaois

这个 PR 导致了 #618

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