idevelop / ascii-camera

Real-time ASCII representation of your webcam video stream, using the getUserMedia API.
https://andrei.codes/ascii-camera/
MIT License
1.36k stars 236 forks source link

Add "Pause" Button #3

Closed martindale closed 11 years ago

martindale commented 11 years ago

I've added a "pause" button so you can pause a frame and copy the ASCII output as you please. :)

Fixes #2 .

idevelop commented 11 years ago

Hey Eric, thanks a lot for the contribution! Do you think you could push the pause logic into the camera.js library? That could be really useful for the library overall, and would save a whole lot of cpu spent processing discarded frames.

Thanks!

idevelop commented 11 years ago

This is what I mean: http://stackoverflow.com/questions/7853594/html5-video-pause-and-rewind

martindale commented 11 years ago

I can, absolutely. I'll do it as soon as I have time to dive into something like this. I'll update this pull request as soon as I've completed the work!

idevelop commented 11 years ago

Awesome! You may have to move a couple of variables out of the functions in order to have access to them from other functions.