Video Player, New to Javascript

Hi there.

For an theatrical event I want to create an app which plays local videos on multiple ‘random’ devices. Below my idea for the app but i don’t know how to create it. Please help.

The app has to:
play a set number of video’s in a set order
when a video is done, the next video has to start on a different (random) device/ account
The video has to be full screen
The video’s are stored at a local server without internet connection (no streaming from youtube or vimeo)

it would be cool if:
any number of devices that are connected to the app/ local network automatically become part of the device pool.

If you guys could help me with parts of code for this app it would be great. I think i can put it all together if I had the parts but I simply don’t know were to start looking.