Difference between revisions of "Sample Webcam Widget"

From Chumby Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
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:
+
.fla requires WindowsFor a simple webcam on Linux, see [[Flash_on_Linux_Using_Ming]]
* [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 filesIf 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:
Line 16: Line 12:
 
* [[Sample RSS Widget]]
 
* [[Sample RSS Widget]]
 
* [[Sample Banner Widget]]
 
* [[Sample Banner Widget]]
 +
* [http://gizmoware.net/chumby Webcam template that uses a listener to load images]

Latest revision as of 06:04, 3 April 2008

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.

.fla requires Windows. For a simple webcam on Linux, see Flash_on_Linux_Using_Ming

Other examples: