3

I would like to know if there is a method to programmatically take screenshots of a flash object (e.g. TwitchTV video player) and store it temporarily on the server side.

I have done some research on the topic but it seems that it is impossible to do so due to the limitations of Javascript. Is there a workaround for this?

Thanks

Community
  • 1
  • 1
Dennis
  • 309
  • 1
  • 6
  • 17

1 Answers1

2

After a month of researching, I found a workaround that works on Chrome. The workaround involves creating a Chrome extension to use a particular extension function called captureVisibleTab.

captureVisibleTab produces a screenshot of the visible tab in the form of a dataUrl. The resulting dataUrl can then be loaded onto a canvas element. Once loaded, the canvas can be cropped according to offset specifications (obtainable through content scripts).

See these links:

captureVisibleTab

How to capture a screenshot of a single HTML element in Chrome extension?

Chrome Extension API: chrome.tabs.captureVisibleTab on Background Page to Content Script

HTML5 Canvas Image Crop Tutorial

Community
  • 1
  • 1
Dennis
  • 309
  • 1
  • 6
  • 17