Error reporting module. Generate JSON data the session and screenshots the site. by @eatsjobs
The package is released in two format output:
- standalone umd build
- esm modern package If you use webpack the new esm package MUST be loaded (check your configuration)
- Preact X and htm
- getDisplayMedia fallback to html2canvas if not supported
- microbundle
npm install @eatsjobs/screen-shooter --save
<script type="module">
import main from 'https://unpkg.com/@eatsjobs/screen-shooter@0.1.2/lib/index.mjs?module';
main({
extra: {
sessionScope: {a: 1, b: 2}
}
});
</script>
<script nomodule src="https://unpkg.com/@eatsjobs/screen-shooter@0.1.2/lib/index.umd.js">
screenShooter({
extra: {
sessionScope: {a: 1, b: 2}
}
});
</script>
(async function() {
const {default: myModule} = await import('@eatsjobs/screen-shooter');
myModule.main(options);
})()
- html2canvas cannot render images properly due to CORS policy. See this issue
- At the moment the app try to use WebRTC screen capturing if supported by the browser and fallback to html2canvas
- make it configurable with options
explore the possibility to register also a video with WebRTC capabilities(DONE)- see the amazing usersnap.com