简体   繁体   English

Snagit Chrome扩展技术

[英]Snagit Chrome Extension Technology

I need to create a cross-browser extension that can detect locally active windows. 我需要创建一个跨浏览器扩展,可以检测本地活动窗口。 Recently I came through Snagit Chrome extension where clicking on "Screen" detects the active windows of the system and allows to capture any desired screen. 最近,我遇到了Snagit Chrome扩展程序,其中单击“屏幕”可检测系统的活动窗口并允许捕获任何所需的屏幕。

Can anyone please explain the platform/tech used to detect or get the window handles from browser app? 谁能解释一下用于从浏览器应用中检测或获取窗口句柄的平台/技术吗? or any other way to get the handles.. 或任何其他获取句柄的方式。

Thanks 谢谢

I was finally able to get the technology used in SnagIt extension. 我终于能够获得SnagIt扩展中使用的技术。
SnagIt has used "WebRTC desktopCapture" for the same. SnagIt使用了“ WebRTC desktopCapture”。

A sample can be found here . 可以在这里找到示例。

WebRTC supports Chrome and Firefox for now. WebRTC目前支持Chrome和Firefox。 The desktopCapture feature enables user to share screen and this frame can be captured for screenshot as well. desktopCapture功能使用户可以共享屏幕,也可以捕获该帧以进行屏幕截图。 Frame capture example can be seen here 可以在这里看到帧捕获示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM