🐛 Fix recording state handling#322
Open
CyJaySong wants to merge 2 commits into
Open
Conversation
CyJaySong
commented
Apr 29, 2026
Member
- 录制中生命周期变化不再重建控制器,避免下拉状态栏/控制中心后录制会话断掉,后续“再次开始后停止无响应”。
- 停止录制流程改成了更稳的异步状态机:同一段录制只 stop 一次,stop 返回后只有页面和控制器仍然有效时才继续预览或导航。
- 页面退出时会静默结束当前录制并释放控制器,同时清理生成的临时视频,避免脏会话和残留文件。
- 新一轮录制开始前会先清掉旧的倒计时定时器,避免旧 timer 提前打断新录制。
- 轻触录像模式下,录制中的按钮和进度条不再依赖点击按压态,平台取消点击态时也不会突然消失。
- 预览文件删除条件修正成和注释一致:有自定义 onEntitySaving 时不自动删文件。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.