How to play an mp4 cinematic?

Hello everyone

I made a mp4 video and I want it to be played when the player finish the game.
How do you think I could make it?

Thanks.

Hello and welcome!

if(game is finished) {
video.play()
}

In practice, to play video in Babylon world one may use videoTexture - Video As A Texture | Babylon.js Documentation
Another option is just to use HTML <video> element and display it as you need.

2 Likes

Thank you

1 Like