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

Video residue #224

Merged
merged 1 commit into from
Nov 4, 2023
Merged

Video residue #224

merged 1 commit into from
Nov 4, 2023

Conversation

xfangfang
Copy link
Owner

现在采用的绘制方式是 mpv 按需 向fbo绘制视频,在需要显示时把这个fbo绘制到屏幕上。这会导致视频停止播放后fbo残留最后一帧画面,在下一个视频加载之初,这样的残留图像就被显示出来了。

在视频播放前调用一次 reset,可以强制mpv输出一次画面,因为在输出时mpv没有在播放视频,所以画面被置为背景色(默认为黑色),就相当于清屏了。

@xfangfang xfangfang changed the base branch from yoga to dev November 4, 2023 15:08
@xfangfang xfangfang merged commit 3b92f23 into dev Nov 4, 2023
14 checks passed
@xfangfang xfangfang deleted the video_residue branch November 6, 2023 15:39
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.

1 participant