Difference between revisions of "Sample Webcam Widget"
Line 3: | Line 3: | ||
'''FLA source file (requires Flash MX or later)''': [http://files.chumby.com/widgetexamples/samplecam.fla samplecam.fla] | '''FLA source file (requires Flash MX or later)''': [http://files.chumby.com/widgetexamples/samplecam.fla 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. | + | 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: | 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/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] | * [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: | ||
* [[Sample Clock Widget]] | * [[Sample Clock Widget]] | ||
* [[Sample RSS Widget]] | * [[Sample RSS Widget]] |
Revision as of 16:53, 2 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 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:
- 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: