Dave, are you asking for a way to do that entirely external to Flash? That
is, Flash and BitmapData can grab stills from a video stream very easily. I
am assuming you are asking about something else.
However, if that's all you need, here is a quick example. You may be able to
do away with Glimpse altogether.
var vid:Video = new Video();
addChild(vid);
var cam:Camera = Camera.getCamera();
vid.attachCamera(cam);
stage.addEventListener(MouseEvent.CLICK, captureCamera, false, 0, true);
function captureCamera(evt:MouseEvent): void {
var bmd:BitmapData = new BitmapData(vid.width, vid.height);
bmd.draw(vid)
var bmp:Bitmap = new Bitmap(bmd);
bmp.x = vid.width;
addChild(bmp);
}
There are some things to think about, though.
1) Flash must be able to see the camera. Drivers may be an issue.
2) Sometimes, only one application can have access to the camera. Running
Glimpse at the same time as Flash may prevent Flash access. For example, on
my Mac, Flash can only get a garbled still if iChat has the camera already.
3) To answer your other question, just about any webcam will work in Flash.
Just find the most current, reliable-name (for ongoing support), feature vs.
price (pan, tilt, etc.) camera you like. A generalization, perhaps, but
there's less of a compatibility issue than you might think.
Rich
http://www.LearningActionScript3.com
On 6/21/08 1:03 PM, "Dave Mennenoh" wrote:
> Thought someone here may have some experience with this - my client has a
> Canon VB-C10 web cam. It's an older model not for sale anymore far as I can
> tell. From Flash, we'll just be opening a window to display the Java applet
> the camera uses. That is fine. However - what I'm trying to do is be able to
> get a current still image from the camera, as a jpeg, to use inside Flash as
> a thumbnail.
>
> They supply a 'Glimpse' application that is somewhat what I need, but I
> can't see how to get an actual image format out of it.
>
> Anyone have any experience with this camera or can maybe point me in the
> right direction?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders