Use video as shader texture

I have a shader that loads some image textures and renders them. It works fine for image files but I can’t load videos in a similar way?

Is there some guide on how to do this? I know I can load a video using the VideoPlayer object, but then how can I access this texture in a Shader?

You can choose either MaterialOverride or RenderTexture as RenderMode. The MaterialOverride will try to output the frames in the main texture in your shader. RenderTexture will output the frames in an external texture and after that, you can drag and drop the texture in any texture slot in your shader.