My team mate Edna Piranha is not only an awesome hacker; she's also a fantastic philosopher!
This is a little class that attaches to an existing video element and will start generating a GIF whenever we press ENTER, using frames from that video element: does is creating an instance of Animated_GIF and then periodically tells it to capture a frame as many times as requested, using Animated_GIF's add Frame method.
Once the ten frames have been captured, the method from Animated_GIF.
This part is probably the most involved of all in the whole process, since we are ultimately generating binary data in Java Script.
Each time we add a frame to the Animated_GIF instance, we pass as source parameter.
It is then copied into an internal canvas to extract the image data and store it on a list of frames, taking advantage of the draw Image function that allows you to render HTML elements into Canvas Rendering Context2D objects.
Search for Webcamssex chat:
How often the frames are captured (and therefore how smooth the animation will be) depends on the parameter.