Take a look at: [login to view URL]
In this example, a canvas is live streamed in real-time to Facebook using RTMP.
Your job would be to do two tasks:
a) Stream the canvas to a HTML5 video element without frame dropping (can't use additional libraries)
b) Performing rendering of the canvas without the browser on the server (headless-chrome or headless-webgl)