Last Updated On: September 01, 2018
This WebRTC screen capturing extension can be used in all domains, in all WebRTC applications :)
It merely captures the screen and returns sourceId. Your application can use that sourceId to use screen stream.
It is open-sourced here: https://github.com/muaz-khan/Chrome-Extensions/tree/master/desktopCapture
Use getScreenId.js: https://www.webrtc-experiment.com/getScreenId/
---------------------------------------
FOR THOSE WHO WANNA UNDERSTAND INSIGHTS:
---------------------------------------
This chrome extension doesn't do anything itself. It simply plays role of a "helper".
Your HTML pages can make requests to this extension, and it'll a "string" back to your HTML page. That "string" can be used along with "getUserMedia" API to capture screen.-------it is all out of security concerns regarding sharing the screens.
If you don't want to deploy similar extension yourself, then you simply need to use following code in your HTML page to support screen capturing: https://github.com/muaz-khan/WebRTC-Experiment/tree/master/getScreenId.js
If you're advance user, and you want to deploy a private/public extension for your own company, then you can take the entire extension code from this link: https://github.com/muaz-khan/Chrome-Extensions/tree/master/desktopCapture
After deploying your extension yourself, you can use following script to integrate screen capturing in your HTML pages: https://github.com/muaz-khan/Chrome-Extensions/tree/master/Screen-Capturing.js
Again, just for clarification:
1) This extension doesn't do anything itself
2) Your HTML pages can make requests to get a string named as "source-id"
3) Then your HTML pages can use that "source-id" to capture screen
Just for your information, there is another extension as well that allows you share screen by clicking extension-icon (from toolbar). That extension isn't integrated in your HTML pages. In simple words, it is a standalone extension: https://chrome.google.com/webstore/detail/webrtc-desktop-sharing/nkemblooioekjnpfekmjhpgkackcajhg
为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效