{"id":12,"date":"2013-10-09T18:30:00","date_gmt":"2013-10-09T18:30:00","guid":{"rendered":"\/blog\/blog\/Deadsimplescreensharing_overview.html"},"modified":"2013-10-09T18:30:00","modified_gmt":"2013-10-09T18:30:00","slug":"dead-simple-screen-sharing-dss-overview","status":"publish","type":"post","link":"https:\/\/mohammedlakkadshaw.com\/blog\/dead-simple-screen-sharing-dss-overview.html","title":{"rendered":"Dead Simple Screen sharing (DSS) &#8211; Overview"},"content":{"rendered":"<p><strong>Grab source on <a href=\"https:\/\/github.com\/mlakkadshaw\/DeadSimpleScreeSharing\">GitHub<\/a><\/strong><\/p>\n<p><strong>Project <a href=\"http:\/\/deadsimplescreensharing.com\">site<\/a><\/strong><\/p>\n<p>Sometime ago a developed an open-source screen sharing application called as <a href=\"http:\/\/deadsimplescreensharing.com\">DeadSimpleScreenSharing<\/a> which allows you to share your screen with anyone right from your browser.<br \/>\nIt requires you to install an extension, when you click \u201cShare your Screen\u201d button on that extension, it will gives you a unique url which you can share with any number of people, and they can view your screen.<br \/>\nIn this blog post I will give a brief overview on how this application works.<\/p>\n<h3 id=\"the-extension\">The Extension:<\/h3>\n<p>The DSS requires you to install an extension, a extension is required because there has to be some application running background which listens to tab changes and transmits this data to the server.<br \/>\nThe extension uses the chrome extension api\u2019s <strong>caputreVisibleTab()<\/strong> method get the visible tab and attaches <strong>mutationObservers<\/strong> and listen for DOM changes, when there is a change in the DOM, it transmits the data to the server via web sockets.<\/p>\n<h3 id=\"the-server\">The Server:<\/h3>\n<p>The server is written in Javascript(node.js) and uses web sockets (socket.io), each session is namespace by unique id which is generate when the user presses the \u201cShare your screen\u201d button on the extension.<br \/>\nThe server just receives the data and forwards it to all the connected clients in that namespace.<\/p>\n<h3 id=\"get-it-working-locally\">Get it working locally:<\/h3>\n<p>If you want to run DSS locally, you need to have:<br \/>\n1. Node.js installed<br \/>\n2. Install express using \u2018npm install express\u2019<br \/>\n3. Install socket.io run \u2018npm install socket.io\u2019<br \/>\nand follow along the video.<\/p>\n<p><iframe loading=\"lazy\" width=\"840\" height=\"520\" src=\"\/\/www.youtube.com\/embed\/-0ifc3SuZZk\" frameborder=\"0\" allowfullscreen=\"\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grab source on GitHub Project site Sometime ago a developed an open-source screen sharing application called as DeadSimpleScreenSharing which allows you to share your screen with anyone right from your browser. It requires you to install an extension, when you click \u201cShare your Screen\u201d button on that extension, it will gives you a unique url [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-misc"],"_links":{"self":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}