I just upgraded to Unity 2022.2 and my app became completely unusable. After narrowing it down, I commented out all instances of VideoPlayer.Prepare() and everything works fine again (except I now can’t pre-prepare videos of course).
This is highly consistent. If I comment out the line “videoPlayer.Prepare();” I can load my app. If I leave it in, my app does this instead with Editor going to 99.9% CPU usage and crashing my system:
So it is clearly VideoPlayer.Prepare() that is crashing things. I can still run Play() commands but Prepare() does this to the CPU every time.
As soon as I drop back down to 2021.1.0b14 the exact code works fine and I can Prepare() videos again. Obviously I would like and need Prepare() working in 2022.2 as well.
Is this a known problem? Did something change in 2022.2.0b4 that needs special accounting for? Is there anything more you need to narrow down why this is happening?
Thanks.