<h1>Screen Capture API example</h1>
<p>
This example shows you the contents of the selected part of your display.
Click the Start Capture button to begin.
</p>
<p>
<button id="start">Start Capture</button>
<button id="stop">Stop Capture</button>
</p>Using the Element Capture and Region Capture APIs
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<div id="main-app">
<video autoplay></video>
<div id="demo">
<h2>Some kind of demo</h2>
<p>
This container is a placeholder for some kind of demo that you might want
to share with other participants.
</p>
</div>
</div>