Closed yasirkula closed 3 months ago
It works. My code also works right now. 5 minutes ago, it didn't work at least immediately after a code compilation but now it isn't affected by code compilation. I don't know why it all behaves correctly now. I had implemented a solution that waits 1 frame after the FirstFrameReady event and I'll be sticking with it, just in case.
Describe the issue I'm trying to get the video's first frame but the resulting texture has all pixel values set to (0,0,0,0) even though FirstFrameReady event is triggered.
PS. After restarting Unity, this issue doesn't occur all the time but it still occurs from time to time, so the issue still exists. PPS. Our project had Configurable Enter Play Mode optimization enabled. If I turn it off, the issue occurs much more frequently.
Your Setup (please complete the following information):
To Reproduce Attach the following component to a new MediaPlayer object in a new scene and enter play mode (try a few times if the issue doesn't occur immediately):