In a project I’m playing a video by clicking and playing another on the same mesh by changing material. But when any of the 2 videos launch there every time at the beginning less than a second of black cut. I would like a nice transition without this black cut. Does anybody know what I’m doing wrong?
Try setting the Alpha value (A) of the MediaTexture’s “ClearColor” property to 0. That will disable media texture clearing and retain the last frame of the previous video.
I have question though, I still have a bug the first time I launch it (black because there is no image to keep). And it’s not keeping the good frame to me (as you can see in the video here) - YouTube
Plus a little bug at the first second (my whole camera moving when I’m hovering my building) Is there any reason to that?
Maybe try to switch the material in the OnPlaybackResumed event of the new player. The player will need a moment to load and decode the first frames, so there won’t be any data right after Open.
It work in the way that it launches the video but I have to keep a 0.1 delay between the play and the set material. because if I keep the onplaybackresumed for the material I still have the “wrong last frame” at least it works with a delay!