10

重複の可能性:
HTML5/Canvas/Javascript を使用してスクリーンショットを撮る

ブラウザがグローバル スクリーンショットを撮る方法はありますか? つまり、ブラウザにないものも含めて画面全体です。

これを尋ねると、少しばかげているように聞こえるかもしれません。

4

1 に答える 1

10

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.

于 2012-12-12T14:53:47.800 に答える