Difference between revisions of "Sample Webcam Widget"
Line 13: | Line 13: | ||
Other examples: | Other examples: | ||
* [[Sample Clock Widget]] | * [[Sample Clock Widget]] | ||
+ | * [[Sample Binary Clock Widget]] | ||
* [[Sample RSS Widget]] | * [[Sample RSS Widget]] |
Revision as of 16:24, 5 November 2006
FLA source file (requires Flash MX or later): samplecam.fla
This example file shows how to make a simple webcam widget that displays a JPEG image feed. This particular cam is showing the Turtle Bay Resort Spa on Oahu - this camera is actually under user control on their website, so you may see it move every now and then.
The server that is providing the the images *must* allow Flash access to that feed by using a "crossdomain.xml" file - you can read more about this at:
- External data not accessible outside a Macromedia Flash movie's domain
- Security Changes in Macromedia Flash Player 7
In this case, the cam was designed to be used from Flash, so the site has the proper permissions files. If you're attempting to pull a webcam feed from a server that does *not* support these permissions, you may not get any images - in that case, you'll need to provide a proxy server that does have the correct permissions which pulls the images from the webcam on behalf of the widget.
Other examples: