html5捕获屏幕 [英] html5 capture the screen

查看:162
本文介绍了html5捕获屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

使用HTML5 / Canvas / Javascript截取屏幕截图


浏览器是否有办法拍摄全局截图?我的意思是,整个屏幕,包括浏览器中没有的内容。



我知道我可能听起来有点傻了。

解决方案

{chromeMediaSource:'screen'} getUserMedia WebRTC功能中实现全屏幕捕获的实验性支持 c $ c>参数。该功能目前需要通过 chrome:// flags 中的选项进行显式激活,并且(与所有WebRTC捕获机制一样)在调用函数时需要用户明确同意。 / p>

除了Chrome中的实验性选项之外,使用纯JavaScript是不可能的,但您可以使用Flash或ActiveX控件等插件来实现。



如果您只想捕获网页(而不是整个屏幕),请参阅使用HTML5 / Canvas / JavaScript截取屏幕截图


Possible Duplicate:
Using HTML5/Canvas/Javascript to take screenshots

Is there a way for a browser to take a global screenshot ? I mean, the entire screen, including what is not in the browser.

I kown that I may sound a little bit silly by asking this.

解决方案

There is experimental support for full-screen capture in Chrome's getUserMedia WebRTC function, using a {chromeMediaSource: 'screen'} parameter. The functionality currently requires explicit activation by an option in chrome://flags, and (like all WebRTC capture mechanisms) requires explicit consent from the user when the function is called.

Other than that experimental option in Chrome, is not possible using pure JavaScript, but you could probably do it using a plugin like Flash, or an ActiveX control.

If you only want to capture a web page (rather than the whole screen), see Using HTML5/Canvas/JavaScript to take screenshots.

这篇关于html5捕获屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆