Difference between revisions of "Sample Webcam Widget"

From Chumby Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
This example file shows how to make a simple webcam widget that displays a JPEG image feed.  This particular cam is showing the [http://www.turtlebayresort.com/ 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.
 
This example file shows how to make a simple webcam widget that displays a JPEG image feed.  This particular cam is showing the [http://www.turtlebayresort.com/ 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:
 
* [http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 External data not accessible outside a Macromedia Flash movie's domain]
 
* [http://www.adobe.com/devnet/flash/articles/fplayer_security.html 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:
 
Other examples:

Revision as of 11:51, 6 August 2007

samplecam_ss.jpg

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.

Other examples: