In this post I’ll try to explain how you can build a screen sharing extension. I’ll cover the architecture of the extension and the way the individual parts communicate with each other. Our goal is to capture the entire desktop or an application window via Chrome and display it in an HTML video element. Below is a preview of the finished extension. In order to accomplish that, we need to invoke navigator.