How to play a video play on a cylinder or sphere

Hi !
I have used ofTexture to bind images on a cylinder and a sphere.
but I don’t know how to change those images to video.
Can I make videos to be texture?
Thanks a lot for your help!

I think something like this can work

Welcome to the forum @a_yra