Layering ontop of the Youtube Video

Is there a way to layer on top of a YouTube op video, like render a 3D object on top / in front of the YouTube object?

Perhaps even use the YouTube video as a texture in real-time?