Skip to content

fix: eliminate video playback flicker during resolution changes #2306

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

peilinok
Copy link
Contributor

@peilinok peilinok commented May 8, 2025

https://developer.android.com/reference/android/graphics/SurfaceTexture#setDefaultBufferSize(int,%20int)

For OpenGL ES, the EGLSurface should be destroyed (via eglDestroySurface), made not-current (via eglMakeCurrent), and then recreated (via eglCreateWindowSurface) to ensure that the new default size has taken effect.

https://blog.csdn.net/wzw88486969/article/details/138485679

@peilinok peilinok merged commit 8b31a5e into main May 21, 2025
54 of 57 checks passed
@peilinok peilinok deleted the fix/main branch May 21, 2025 06:45
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