Random Video Control is the phone-friendly companion to the random-video viewer. It lets one or more phones cycle through the current Pexels video sequence, pause and resume playback, and see richer details for the video currently on the display.
The viewer owns all sequence state. The control sends commands to the viewer:
rc.sendFunctionCall("random-video", "randomVideo.prev");
rc.sendFunctionCall("random-video", "randomVideo.next");
rc.sendFunctionCall("random-video", "randomVideo.toggle");
rc.sendFunctionCall("random-video", "randomVideo.requestState", rc.client);
The viewer sends snapshots back to controls through the global callback:
randomVideoControl.receiveState(snapshot);
Written in ES5 with simple flexbox controls and conservative CSS for older mobile browsers.
/random-video-c/?r=<room>