来自 NPAPI 或 javascript 的屏幕截图
我正在写一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有办法用 JavaScript 来做到这一点,但你可以用本机代码来做到这一点,不是吗?
There isn't a way to do it with JavaScript, but you could do it with native code couldn't you?
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
在 Mozilla 中,您可以通过使用
Canvas.prototype.drawWindow()
< 来实现此目的/a>.但仅允许特权代码(即扩展)访问此方法。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.