Put Video in a polygon

Hello, I`m making a project with opengl and I want to know If I can put a video in someone format in an opengl application. I must to paste a video in a simple 2D polygon.

How can I do it?


The most practical approach is to use a textured quad and upload every frame using glTexSubImage2D.

But you really want to ask this in the “OpenGL coding: beginners” board on this site.