Macromedia Flash Server - iSight Camera on Mac

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > August 2005 > iSight Camera on Mac





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author iSight Camera on Mac
Bill Sanders

2005-08-25, 7:45 am

If you have an iSight camera on a Mac try the following:

cam1_cam:Camera = Camera.get(0);
v1_video.attachVideo(cam1_cam);

Does that work? You should be able to see yourself. It should work,
and it will on a PC. However, I cannot get it to work on a Mac -- OS
10.4.2 with a recent iSight software upgrade.

Now try,

cam1_cam:Camera = Camera.get();
v1_video.attachVideo(cam1_cam);

It's the same code except there's no "0" in the .get() parameter. It
will work.

TIA,
Bill

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sean Moran

2005-08-26, 2:45 am


Yes, I see that here. When I do the get(0) it still asks for
permission but there is no video shown in the swf.
Works fine with just get();

Max OS X 10.4.2


Sean

On Aug 25, 2005, at 3:07 AM, Bill Sanders wrote:

> cam1_cam:Camera = Camera.get(0);
> v1_video.attachVideo(cam1_cam);
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Thijs Triemstra|Collab

2005-08-26, 2:45 am

Are you sure the ISight is on index 0? My Isight is listed as 'IIDC
FireWire Video' on index 1 and 'DV Video' on 0.. Because it's working
here with Camera.get(1)

Thijs


Op 25-aug-2005, om 11:07 heeft Bill Sanders het volgende geschreven:

> If you have an iSight camera on a Mac try the following:
>
> cam1_cam:Camera = Camera.get(0);
> v1_video.attachVideo(cam1_cam);
>
> Does that work? You should be able to see yourself. It should work,
> and it will on a PC. However, I cannot get it to work on a Mac --
> OS 10.4.2 with a recent iSight software upgrade.
>
> Now try,
>
> cam1_cam:Camera = Camera.get();
> v1_video.attachVideo(cam1_cam);
>
> It's the same code except there's no "0" in the .get() parameter.
> It will work.
>
> TIA,
> Bill
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sean Moran

2005-08-26, 2:45 am


Ah!

for me, the IIDC is index 5!

:-)


On Aug 25, 2005, at 8:27 AM, Thijs Triemstra|Collab wrote:

>
> Are you sure the ISight is on index 0? My Isight is listed as 'IIDC
> FireWire Video' on index 1 and 'DV Video' on 0.. Because it's
> working here with Camera.get(1)
>
> Thijs
>
>
> Op 25-aug-2005, om 11:07 heeft Bill Sanders het volgende geschreven:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-08-26, 2:45 am

Sean/Thijs,

Whatever camera you select in the MM Flash Player Settings becomes
the default Camera.get(0). This is bug and will show up in
applications where more than a single camera is called for, such as
in security applications. The workaround is:

Camera.get();
Camera.get(1);

Not a biggie, but one that you'll trip over w/o the workaround.

Kindest regards,
Bill

On Aug 25, 2005, at 10:43 AM, Sean Moran wrote:

>
> Ah!
>
> for me, the IIDC is index 5!
>
> :-)
>
>
> On Aug 25, 2005, at 8:27 AM, Thijs Triemstra|Collab wrote:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Thijs Triemstra|Collab

2005-08-26, 2:45 am

i dont understand the reason for your workaround.. Camera.get()
references to the default Camera, but that Camera stays on whatever
index in Camera.names it is and doesn't move to index 0 as in
Camera.get(0).. Camera.get() could be the same as Camera.get(5)

Thijs


Op 25-aug-2005, om 18:26 heeft Bill Sanders het volgende geschreven:

> Sean/Thijs,
>
> Whatever camera you select in the MM Flash Player Settings becomes
> the default Camera.get(0). This is bug and will show up in
> applications where more than a single camera is called for, such as
> in security applications. The workaround is:
>
> Camera.get();
> Camera.get(1);
>
> Not a biggie, but one that you'll trip over w/o the workaround.
>
> Kindest regards,
> Bill
>
> On Aug 25, 2005, at 10:43 AM, Sean Moran wrote:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

David Simmons

2005-08-26, 2:45 am

I don't think there's any relation to the default camera and the
ordering and indexes for camera.get( someNumber );

I think the only thing guaranteed is that camera.get( index ) should
match the array in camera.names. In other words, the Nth camera in
camera.names should match the one returned from camera.get( sameIndex );

If the order of camera.names is changing due to the user picking a new
default, I can see that causing a problem and it's probably worth filing
a bug, but it will probably be pretty far down the fix list.

The online docs for this are at
http://www.macromedia.com/support/f...tionscript_dict
ionary/actionscript_dictionary124.html

- Dave Simmons
Macromedia Engineering


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Bill
Sanders
Sent: Thursday, August 25, 2005 9:27 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] iSight Camera on Mac

Sean/Thijs,

Whatever camera you select in the MM Flash Player Settings becomes =20
the default Camera.get(0). This is bug and will show up in =20
applications where more than a single camera is called for, such as =20
in security applications. The workaround is:

Camera.get();
Camera.get(1);

Not a biggie, but one that you'll trip over w/o the workaround.

Kindest regards,
Bill

On Aug 25, 2005, at 10:43 AM, Sean Moran wrote:

>
> Ah!
>
> for me, the IIDC is index 5!
>
> :-)
>
>
> On Aug 25, 2005, at 8:27 AM, Thijs Triemstra|Collab wrote:
>
>
>
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-08-26, 2:45 am

Thijs,

Hmmmm. That would seem to defeat the purpose of the index. Let me do
some experiments on my Windows XP where this is not a problem and get
back to you.

Thanks for the insight,
Bill

On Aug 25, 2005, at 12:50 PM, Thijs Triemstra|Collab wrote:

> i dont understand the reason for your workaround.. Camera.get()
> references to the default Camera, but that Camera stays on whatever
> index in Camera.names it is and doesn't move to index 0 as in
> Camera.get(0).. Camera.get() could be the same as Camera.get(5)
>
> Thijs
>
>
> Op 25-aug-2005, om 18:26 heeft Bill Sanders het volgende geschreven:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>


bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-08-26, 2:45 am

Sean/Thijs/Dave,

I ran this on my Mac:

var cam_array:Array = Camera.names;
var cam0:Camera= Camera.get();
var cam1:Camera = Camera.get(0);
var cam2:Camera = Camera.get(1);
var cam3:Camera = Camera.get(2);
for (p in cam_array) {
trace(_root["cam"+p].index+" = "+_root["cam"+p].name);
}

and got this output:

2 = IIDC FireWire Video
0 = QuickCam
1 = DV Video
2 = IIDC FireWire Video

On my XP Pro, I got:

1 = USB PC Camera 301P
0 = Creative WebCam (WDM)
1 = USB PC Camera 301P

So what it's really doing is indexing the drivers and not the cameras
per se. I had tested a QuickCam on my Mac once and needed to add a
driver, thus, while the QuickCam driver is indexed as 0, there's no
camera there to play it. So while my iSight was the first camera on
my Mac, why is it the last (driver)? My hunch is that the updates for
iSight push it up.

Thanks,
Bill







On Aug 25, 2005, at 12:55 PM, David Simmons wrote:

> I don't think there's any relation to the default camera and the
> ordering and indexes for camera.get( someNumber );
>
> I think the only thing guaranteed is that camera.get( index ) should
> match the array in camera.names. In other words, the Nth camera in
> camera.names should match the one returned from camera.get
> ( sameIndex );
>
> If the order of camera.names is changing due to the user picking a new
> default, I can see that causing a problem and it's probably worth
> filing
> a bug, but it will probably be pretty far down the fix list.
>
> The online docs for this are at
> http://www.macromedia.com/support/flash/action_scripts/
> actionscript_dict
> ionary/actionscript_dictionary124.html
>
> - Dave Simmons
> Macromedia Engineering
>
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Bill
> Sanders
> Sent: Thursday, August 25, 2005 9:27 AM
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] iSight Camera on Mac
>
> Sean/Thijs,
>
> Whatever camera you select in the MM Flash Player Settings becomes
> the default Camera.get(0). This is bug and will show up in
> applications where more than a single camera is called for, such as
> in security applications. The workaround is:
>
> Camera.get();
> Camera.get(1);
>
> Not a biggie, but one that you'll trip over w/o the workaround.
>
> Kindest regards,
> Bill
>
> On Aug 25, 2005, at 10:43 AM, Sean Moran wrote:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>




bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sean Moran

2005-08-26, 2:45 am


FWIW, I got

5 = IIDC FireWire Video
0 = DVCPRO HD (1080i50)
1 = DVCPRO HD (1080i60)
6 = USB Video Class Video
undefined = undefined
undefined = undefined
undefined = undefined

when run through get(6)

Interesting

On Aug 25, 2005, at 2:03 PM, Bill Sanders wrote:

> var cam_array:Array = Camera.names;
> var cam0:Camera= Camera.get();
> var cam1:Camera = Camera.get(0);
> var cam2:Camera = Camera.get(1);
> var cam3:Camera = Camera.get(2);
> for (p in cam_array) {
> trace(_root["cam"+p].index+" = "+_root["cam"+p].name);
> }



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sean Moran

2005-08-26, 2:45 am


Ooops that was supposed to be

5 = IIDC FireWire Video
0 = DVCPRO HD (1080i50)
1 = DVCPRO HD (1080i60)
3 = DV Video
4 = iGlassesVDIG
5 = IIDC FireWire Video
6 = USB Video Class Video




Sean



On Aug 25, 2005, at 2:03 PM, Bill Sanders wrote:

> var cam_array:Array = Camera.names;
> var cam0:Camera= Camera.get();
> var cam1:Camera = Camera.get(0);
> var cam2:Camera = Camera.get(1);
> var cam3:Camera = Camera.get(2);
> for (p in cam_array) {
> trace(_root["cam"+p].index+" = "+_root["cam"+p].name);
> }



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-08-26, 2:45 am

Hi Sean,

I've been developing most of the stuff on the PC because that's where
FCS lives, but it's become easier for me to develop on the Mac now,
and so on the security stuff, I was dumb lucky not to get nailed.
Actually, this whole thing came about because Simon Lord wanted to
get multiple streams. I got as much as an education as Simon!

I see you have mystery drivers...

Cheers,
Bill

On Aug 25, 2005, at 4:11 PM, Sean Moran wrote:

>
> FWIW, I got
>
> 5 = IIDC FireWire Video
> 0 = DVCPRO HD (1080i50)
> 1 = DVCPRO HD (1080i60)
> 6 = USB Video Class Video
> undefined = undefined
> undefined = undefined
> undefined = undefined
>
> when run through get(6)
>
> Interesting
>
> On Aug 25, 2005, at 2:03 PM, Bill Sanders wrote:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>


bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-08-26, 2:45 am

No more mystery....

Bill

On Aug 25, 2005, at 4:11 PM, Sean Moran wrote:

>
> Ooops that was supposed to be
>
> 5 = IIDC FireWire Video
> 0 = DVCPRO HD (1080i50)
> 1 = DVCPRO HD (1080i60)
> 3 = DV Video
> 4 = iGlassesVDIG
> 5 = IIDC FireWire Video
> 6 = USB Video Class Video
>
>
>
>
> Sean
>
>
>
> On Aug 25, 2005, at 2:03 PM, Bill Sanders wrote:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>




bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Thijs Triemstra|Collab

2005-08-26, 2:45 am

Bill,

I tried this

for (var a=0;a<Camera.names.length;a++) {
trace("index: " + a + " : " + Camera.names[a]);
}

and got this

index: 0 : QuickCam
index: 1 : DV Video
index: 2 : IIDC FireWire Video
index: 3 : USB Video Class Video

Quickcam has been always been on index 0 here and same for Isight on
3.. looks like Isight updater 1.0.3 is the last installed.

Thijs


Op 25-aug-2005, om 22:03 heeft Bill Sanders het volgende geschreven:

> Sean/Thijs/Dave,
>
> I ran this on my Mac:
>
> var cam_array:Array = Camera.names;
> var cam0:Camera= Camera.get();
> var cam1:Camera = Camera.get(0);
> var cam2:Camera = Camera.get(1);
> var cam3:Camera = Camera.get(2);
> for (p in cam_array) {
> trace(_root["cam"+p].index+" = "+_root["cam"+p].name);
> }
>
> and got this output:
>
> 2 = IIDC FireWire Video
> 0 = QuickCam
> 1 = DV Video
> 2 = IIDC FireWire Video
>
> On my XP Pro, I got:
>
> 1 = USB PC Camera 301P
> 0 = Creative WebCam (WDM)
> 1 = USB PC Camera 301P
>
> So what it's really doing is indexing the drivers and not the
> cameras per se. I had tested a QuickCam on my Mac once and needed
> to add a driver, thus, while the QuickCam driver is indexed as 0,
> there's no camera there to play it. So while my iSight was the
> first camera on my Mac, why is it the last (driver)? My hunch is
> that the updates for iSight push it up.
>
> Thanks,
> Bill
>
>
>
>
>
>
>
> On Aug 25, 2005, at 12:55 PM, David Simmons wrote:
>
>
>
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-08-26, 2:45 am

Thijs,

That's a lot cleaner!

Thanks,
Bill


On Aug 25, 2005, at 4:25 PM, Thijs Triemstra|Collab wrote:

> Bill,
>
> I tried this
>
> for (var a=0;a<Camera.names.length;a++) {
> trace("index: " + a + " : " + Camera.names[a]);
> }
>
> and got this
>
> index: 0 : QuickCam
> index: 1 : DV Video
> index: 2 : IIDC FireWire Video
> index: 3 : USB Video Class Video
>
> Quickcam has been always been on index 0 here and same for Isight
> on 3.. looks like Isight updater 1.0.3 is the last installed.
>
> Thijs
>
>
> Op 25-aug-2005, om 22:03 heeft Bill Sanders het volgende geschreven:
>
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>




bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com