Hi, 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
Hi, 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
There isn't a way to do it with JavaScript, but you could do it with native code couldn't you?
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.
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.