I found a workaround, very ugly but still…
I added a Scenecapture2D camera to the scene with a render texture.
This 2DCamera is placed in front of a plane where the video is played(the plane is the only thing rendered).
The render texture is used in the light function instead of the Media Source file.