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

播放时有时会自动暂停,恢复播放导致自动从头开始播放 #1743

Open
StageGuard opened this issue Feb 28, 2025 · 2 comments
Labels
s: player 子系统: 视频播放器

Comments

@StageGuard
Copy link
Member

StageGuard commented Feb 28, 2025

问题描述

如标题描述,播放的时候有时候突然自己暂停了,恢复播放的时候自动回到了开头重新播放。
自动暂停的时候进度条还在当前位置,恢复播放后进度条跳转到开头了(下面日志中的 positionMillis 输出1650)。
这个问题偶尔发生。如果我没有一口气看完,在中途暂停一会之后继续看,可能会提高出现这个问题的概率。
使用在线源,剧集 ID:1432672,数据源是 稀饭动漫。可能和什么数据源或剧集没有关系,因为看其他的也会出现这种情况。

p.s. 可能需要从 RememberPlayProgressExtension 排查,如果不是这个的问题,那就是 mediamp 播放器问题

出现问题时的 log:

2025-03-01 00:36:36,887 [INFO ] app.data.repository.player.EpisodePlayHistoryRepositoryImpl: save or update play progress EpisodeHistory(episodeId=1432672, positionMillis=664075)
2025-03-01 00:37:04,708 [TRACE] app.videoplayer.ui.progress.AudioTrackState: AudioTrackState onRemembered, refCount=1
2025-03-01 00:37:04,708 [TRACE] app.videoplayer.ui.progress.SubtitleTrackState: SubtitleTrackState onRemembered, refCount=1
2025-03-01 00:37:10,180 [TRACE] app.videoplayer.ui.progress.AudioTrackState: AudioTrackState onRemembered, refCount=1
2025-03-01 00:37:10,180 [TRACE] app.videoplayer.ui.progress.SubtitleTrackState: SubtitleTrackState onRemembered, refCount=1
2025-03-01 00:37:10,630 [INFO ] app.data.repository.player.EpisodePlayHistoryRepositoryImpl: save or update play progress EpisodeHistory(episodeId=1432672, positionMillis=669575)
2025-03-01 00:38:50,580 [TRACE] app.videoplayer.ui.progress.AudioTrackState: AudioTrackState onRemembered, refCount=1
2025-03-01 00:38:50,580 [TRACE] app.videoplayer.ui.progress.SubtitleTrackState: SubtitleTrackState onRemembered, refCount=1
2025-03-01 00:39:07,778 [TRACE] app.videoplayer.ui.progress.AudioTrackState: AudioTrackState onRemembered, refCount=1
2025-03-01 00:39:07,778 [TRACE] app.videoplayer.ui.progress.SubtitleTrackState: SubtitleTrackState onRemembered, refCount=1
2025-03-01 00:39:10,863 [INFO ] app.data.repository.player.EpisodePlayHistoryRepositoryImpl: save or update play progress EpisodeHistory(episodeId=1432672, positionMillis=1650)
2025-03-01 00:39:14,316 [TRACE] app.videoplayer.ui.progress.AudioTrackState: AudioTrackState onRemembered, refCount=1
2025-03-01 00:39:14,316 [TRACE] app.videoplayer.ui.progress.SubtitleTrackState: SubtitleTrackState onRemembered, refCount=1
2025-03-01 00:39:20,441 [TRACE] app.ui.subject.episode.video.settings.EpisodeVideoSettingsViewModel: EpisodeVideoSettingsViewModel onRemembered, refCount=1
2025-03-01 00:39:35,575 [TRACE] app.videoplayer.ui.progress.AudioTrackState: AudioTrackState onRemembered, refCount=1
2025-03-01 00:39:35,575 [TRACE] app.videoplayer.ui.progress.SubtitleTrackState: SubtitleTrackState onRemembered, refCount=1
2025-03-01 00:39:40,414 [INFO ] app.domain.episode.EpisodeDanmakuLoader: New SearchDanmakuRequest: null
2025-03-01 00:39:40,418 [INFO ] app.data.repository.player.EpisodePlayHistoryRepositoryImpl: save or update play progress EpisodeHistory(episodeId=1432672, positionMillis=1650)

日志后面 update positionMillis 为 1650,是异常跳转到开头之后触发的。

复现步骤

No response

Ani 版本号

4.5.0

操作系统

Windows

应用日志

2025年3月1日-app.log

@StageGuard StageGuard added P1 重要优先级, 需要优先考虑 (Major) s: player 子系统: 视频播放器 labels Feb 28, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Animeko Feb 28, 2025
@Him188 Him188 removed the P1 重要优先级, 需要优先考虑 (Major) label Feb 28, 2025
@Him188
Copy link
Member

Him188 commented Feb 28, 2025

猜测是 vlc 状态问题. 可能是网络连接断了, vlc 没有报 ERROR 状态直接 reset 到初始进度然后汇报 READY, 就导致了自动记录进度.

在能摸清楚 vlc 的状态之前很难解决.

等 mediamp 换 mpv.

@Him188
Copy link
Member

Him188 commented Feb 28, 2025

maybe related to #1692

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s: player 子系统: 视频播放器
Projects
Status: Backlog
Development

No branches or pull requests

2 participants