var recorder = RecordRTC(document.documentElement, { type: 'canvas', showMousePointer: true }); recorder.startRecording(); recorder.stopRecording(function(url) { window.open(url); });