Using VideoClip to light a Scene.

I build a Cinema Scene. The User can load a Video File and watch it in the Cinema.
I would like to get the video to light the room.
My plan is to sample the Brightness of the Image and use it as color of an Directional Light but I can’t access the pixel information from the VideoPlayer since it’s a “Texture” and not “Texture2D”.

I tried to convert the Texture to an Texture2D by using the Texture2D.readPixel function. But that didn’t work.

Any tips how I can do this?

Solved it now.
I didn’t set the Resolution of the Texture2D. It must have the resolution of the Texture to use ReadPixel().