adding video as texture for material

I would like to ask how to attach animated photo or video to item as a texture .

Actions