Media texture black cut at the beginning

Hi everyone!

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?

Thanks in advance,

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.

Did you mean like this ?

Sorry for the noobish question but I think I did wrong ^^ Because it doesn’t work

I’m dumb! Sorry !
I added a delay of 0.1 sec before the Set Material and it works !
THanks a lot for your time gmpreussner

Yes, that looks about right. Also, you can get rid of the Delay node. I suggest that you do one of the following instead:

  • Select “Play On Open” on the MediaPlayer asset and simply call OpenSource in your Blueprint
  • Bind to the “OnMediaOpened” event in your Blueprint and call Play from there

The first method is probably easier and sufficient in your case.

Let me know if that worked.

1 Like

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! :slight_smile:

Hey, I posted an answer here that might help!