来自 NPAPI 或 javascript 的屏幕截图

发布于 2024-08-23 05:07:05 字数 101 浏览 5 评论 0原文

我正在写一个 npapi 插件。我想知道是否有一种方法可以使用 npapi 或 javascript 从我的插件捕获浏览器屏幕。

任何帮助将不胜感激。

谢谢

I'm writing an npapi plugin. I was wondering if there is a way to capture the browser screen from my plugin using either npapi or javascript.

Any help would be appreciated.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

林空鹿饮溪 2024-08-30 05:07:05

没有办法用 JavaScript 来做到这一点,但你可以用本机代码来做到这一点,不是吗?

There isn't a way to do it with JavaScript, but you could do it with native code couldn't you?

去了角落 2024-08-30 05:07:05

FireBreath 邮件列表中的某人最近使用 FireBreath 创建了一个插件,可以在 Windows 上执行此操作;我相信他将其与硒一起用于自动化测试。他曾提到可能将其开源;我会考虑向 FireBreath 列表发布问题,看看他是否愿意分享。

http://groups.google.com/group/firebreath-dev

Someone on the FireBreath mailing list recently created a plugin with FireBreath that does this on windows; he was using it with selenium for automation testing, I believe. He had mentioned possibly making it open source; I'd consider posting a question to the FireBreath list and see if he's willing to share.

http://groups.google.com/group/firebreath-dev

有深☉意 2024-08-30 05:07:05

In Mozilla you can achieve this by using Canvas.prototype.drawWindow(). But access to this method is allowed only to privileged code, i.e. extensions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文