tolmasky / demokit

DemoKit is a Library and Electron app for building product demos and tutorials using web technologies
MIT License
428 stars 17 forks source link

Record view instead of screen #4

Open tolmasky opened 7 years ago

tolmasky commented 7 years ago

Apparently, this is really hard: http://stackoverflow.com/questions/39935550/av-capture-contents-of-a-view-to-a-movie.

Maybe we should be capturing the screen with web tech? Then it would work in Windows...

tolmasky commented 7 years ago

We may be able to use webview.capturePage http://electron.atom.io/docs/api/web-view-tag/ and then assemble the video ourselves. Possible problems:

  1. Not clear if inner webviews render in parent webview's capturePage.
  2. Not clear if we'll get the timing right