Video file as texture


i’m trying to read a video file and use it as a texture, but i can’t manage to do so.

so far, i’ve tried this :

tex = *player.getTexture();  

but i get a flickering result.

this :

colorPixels = player.getPixels();  
tex.loadData(colorPixels, w, h, GL_RGBA);  
tex.draw(0,0, w, h);  

but i get a black texture.

as i’m pretty new with OF for iOS, i’m asking here if there’s any solution… i’ve searched a lot on the net without success.

cheers !