This is the gist for NightWatch - a somewhat incomplete video security management widget. I've included some stuff that sort of works, but doesn't really, that was originally meant to let the management widget control adding, removing and altering or freezing the pattern that the video feeds take.
Sadly, mjpgs
aren't the nicest things, block ajax calls and generally just slow everything down.
The urls I've taken are from opentopia
.com (http://www.opentopia.com/hiddencam.php?showmode=animated&country=Canada&seewhat=newest
), please look at their disclaimers for legal information.
You'll probably want to use Chrome as your browser for this - mjpgs don't do so well in large numbers in firefox... and so everything ends up looking like garbage and won't load fast, and some mjpgs won't appear etc. In general, the page will load more or less in firefox, but it's just so much better in chrome.
To handle incoming data, you'll need one widget like so:
`
The y size doesn't really matter. It might have at some point if we can get ajax to start working, but it really doesn't right now.
For each screen, you'll want a widget like this:
`
The iframe calls for an image container. The x and y sizes are up to you. If you look at the src
for the iframe, you'll see a piece which says "start=0
", that number represents the number in the array of images sent that will be displayed in this iframe. You can have multiple frames showing the same image, and possibly images sent that don't have a frame.
Make sure the files go into their correct folders - gist doesn't like slashes in file names, so those have been replaced by dashes with surrounding spaces.