module.exports = captureVideoFrame function captureVideoFrame (video, format) { if (typeof video === 'string') { video = document.querySelector(video) } if (video == null || video.nodeName !== 'VIDEO') { throw new Error('First argument must be a