-
Notifications
You must be signed in to change notification settings - Fork 524
Home
This wiki explains how to modify and use
Screen-Capturing.js
andgetScreenId.js
on your own domain/website.
First step is to download this: https://github.com/muaz-khan/Chrome-Extensions/tree/master/desktopCapture
Modify manifest.json
to refer your own domain.
And publish to google webstore.
Now, next step is to download this file: https://github.com/muaz-khan/getScreenId/blob/master/getScreenId.html
Find and replace ajhifddimkapgcifgcodmmfdlknahffk
with your own extension id. It is exactly here.
Now publish i.e. upload getScreenId.html
to your own website.
Next step is to download getScreenId.js: https://github.com/muaz-khan/getScreenId/blob/master/getScreenId.js
Find a line that is setting iframe.src". It is exactly here.
Replace above line with your own domain. E.g.
iframe.src = 'https://your-domain.com/getSourceId.html'; // path to HTML file that we uploaded above
Now your getScreenId.js will use your own extension.
Additionally you can use this library: https://github.com/muaz-khan/Chrome-Extensions/blob/master/Screen-Capturing.js/Screen-Capturing.js
Screen-Capturing.js is useful only on your own domain. i.e. you can not use it on external domains.
Screen-Capturing.js tries to capture screen faster than getScreenId. And it is recommended if you are using screen sharing on your own website as well.
You don't need to modify any special thing on Screen-Capturing.js However you can still find an replace this extension id ajhifddimkapgcifgcodmmfdlknahffk
.
You need to modify extension-id only if you are using "getChromeExtensionStatus" method. Otherwise this action is optional.