修复潜在播放暂停的问题

pull/2356/head
lyswhut 2025-03-07 12:20:41 +08:00
parent 4cc3197be8
commit 1217f06324
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@
- 修复 Windows 下界面缩放后移动桌面歌词会改变歌词窗口大小的问题(#2244
- 修复 tx 歌单搜索名字、描述出现乱码的问题(#2250
- 修复本地 FLAC 文件内嵌歌词无法读取的问题
- 修复潜在播放暂停的问题
### 优化

View File

@ -564,6 +564,7 @@ export const playPrev = async(isAutoToggle = false): Promise<void> => {
*
*/
export const play = () => {
window.lx.isPlayedStop &&= false
if (playMusicInfo.musicInfo == null) return
if (isEmpty()) {
if (createGettingUrlId(playMusicInfo.musicInfo) != gettingUrlId) setMusicUrl(playMusicInfo.musicInfo)

View File

@ -87,14 +87,13 @@ export default () => {
}
const handleEnded = () => {
// setTimeout(() => {
setAllStatus(t('player__end'))
if (window.lx.isPlayedStop) {
setAllStatus(t('player__end'))
console.log('played stop')
return
}
// resetPlayerMusicInfo()
// window.app_event.stop()
setAllStatus(t('player__end'))
void playNext(true)
// })
}