Video player
Video Player
Test concept of a portrait model that can receive .ogv textures with TextureSelectById method.
It can be used to create dynamic buttons, tutorials, cinematics, previews, etc. Supports all the portrait related actions.
The video has to be .ogv and needs to run at 24fps. This tool allows you to convert any video to that format and with those fps.
Don't get fooled by the gif. The video plays flawlessly at 24fps without quality loss.
At least it works :P
I quit messing with it out of frustration for a day, Today i reload it in my editor, it works perfectly :/
If it's still failing, you can try with different fps, modfiying the action "create video player" and playing with the fps variable until it syncs.
If that doesn't solve it, I can't think in a solution that doesn't involve splitting the sound, editing it and playing it separately.
Changing it's speed seemed to help a little but not much. I still can't get it to sync up properly.
I've just been testing a whole bunch of different videos (the news one, tutorial ones, etc) and all of them seem to be off in sound compared to video. I'll check game speed next.
That's strange. I've tested it in a shitty computer and in a extremely good one.
Maybe it's got something to do with the game speed or the video needs to be preloaded.
Ah i asked because the betrayal test map has it's sound off by about a sec and a half for me. It plays just fine, but the sound is off. And the other map didn't have sounds associated with it.
The texture should play with the sound if the .ogv file has.
If you're using a video that doesn't run at 24 fps you might have some outsync issues. There's an actor message where you can say at how many fps a video can be played, I haven't tested how it behaves.
How does getting sound working go? I ask this because the sound in the betrayal is off, by about a sec.