Start up script, autoplay

hy,
i need a script for this os on start up after loading to auto play some movie in vlc or something else
and after some user press escape or close the player after i don’t know one minute of inactivity the player starts again
something like a screen saver
does anyone know how can i do that?
thank you

and eventualy something to do this automaticly
i meen install the vlc player, then install this startup because i have to do this thing on 30 computers

VLC is available from the program center