How to pause video when game is not focused
I've noticed in my game if I alt-tab out of it the video that is currently playing will sometimes incorrectly appear if I then focus back into the window (it gets delayed - or a connecting video appears at the wrong time. What is the best way to globally pause a videoplayer component till you focus back into your project?
Does timeScale work with this process or is there a proper way to do this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613011133im_/https://answers.unity.com/themes/thub/images/avi.jpg)