Replies: 1 comment 1 reply
-
Updated 01/22/2025: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Sorry for reposting the thread. Github suspended my account by mistake, and the previous thread is gone)
Test Environment
Axmol Engine v2.1.5
tvOS 17.3
tvOS Simulator 18.1
Xcode 16.1
Symptom
When playing MP4 files, the video player renders the very first frame and then freezes. The status remains stuck in the "Playing" state. Multitasking out of the app and coming back resumes the video.
I have tested the cpp-tests project and cannot consistently reproduce the issue with the built-in videos. The repro rate is around 30%. I noticed the issue is more likely to occur after reinstalling the app. However, the specific MP4 file I am using (MPEG-4 AAC, HEVC) has almost 100% reproduction rate. (Sorry, I cannot provide the video due to confidentiality).
Finding
It seems something went wrong in
AvfMediaEngine::transferVideoFrame()
.hasNewPixelBufferForItemTime
always returns false, until I multitask out of the app and then back in.Temporary Workaround
I commented out the line
videoOutput.suppressesPlayerRendering = YES;
to fix the problem for now. I believe this is not the proper solution though, as it turns back on the system’s auto-rendering.Does anyone know a fix for this?
Beta Was this translation helpful? Give feedback.
All reactions