A basic starting point for motion-detection apps using WebRTC & Canvas, refactored out of the Magic Xylophone by @soundstep
This project tries to provide as a basis for other motion-detection apps, by separating the framework from its implementations.
The app uses WebRTC, HTML5 Canvas and some math, and is refactored out of the Magic Xylophone by soundstep. You can learn more about the process fom Romuald himself on Adobe Developer Connection and his blog post.
Any child element you add inside
will automagically work as a hotSpot, which means it will fire
motionevents on itself with extra data upon motion detection.
You could control its appearance & position with CSS, and hook to the
motionevents with jQuery / plain JS.