Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

asmith3006

macrumors member
Original poster
Dec 5, 2006
55
0
Hi all.

According to http://www.communitymx.com/content/article.cfm?page=2&cid=BF6D4 this webpage it is very easy to display the iSight in a flash movie. However, when I run the attached sample code it doesn't run.

Would someone kindly try the files on their system to see if they work so I can be sure if it's my Mac or if it's something deeper.

Also, does anyone have any suggestions about how I could go about this if it doesn't work?

Cheers
 

Spanky Deluxe

macrumors demi-god
Mar 17, 2005
5,285
1,789
London, UK
I can't help with the programming side of things but I'm pretty sure YouTube has a live record via flash application that allows you to use a webcam such as an iSight. I swear I once fiddled with it and my iSight. You have to follow some instructions to right click and enable use of your iSight I think. Sorry for being vague!
 

asmith3006

macrumors member
Original poster
Dec 5, 2006
55
0
You have to do the same with this, right click on it, settings, change it to Firewire IIDC or whatever. But it doesn't work... on my iMac at least. Most frustrating.

Does anyone fancy trying the files for me? Or following the instruction on the sight if you don't trust the files.
 

theFUZZYpickle

macrumors newbie
Feb 27, 2006
3
0
I'm not sure if you're working with AS2 or AS3, but here's the code for both:

AS2:
Code:
var my_video:Video; //my_video is a Video object on the Stage
var active_cam:Camera = Camera.get();
my_video.attachVideo(active_cam);

AS3:
Code:
var video:Video = new Video();
addChild(video); // Add the video object to the display list
video.attachCamera( Camera.getCamera() );
 

asmith3006

macrumors member
Original poster
Dec 5, 2006
55
0
Neither of those worked for some reason..... I'm not sure what's going on.

Anyways, I've managed to get the sample files from the link I posts above to work now. It works if you select "USB" rather than "Firewire".

Does this mean the current iSight cameras connect with USB rather than firewire then?

I worked this out by going to the youtube recording page and the automatic setup thinggy found the camera on USB. Excellent stuff :)

Now I just need to work out how to record...... excellet :)

Thanks for the help.
 

Spanky Deluxe

macrumors demi-god
Mar 17, 2005
5,285
1,789
London, UK
Neither of those worked for some reason..... I'm not sure what's going on.

Anyways, I've managed to get the sample files from the link I posts above to work now. It works if you select "USB" rather than "Firewire".

Does this mean the current iSight cameras connect with USB rather than firewire then?

I worked this out by going to the youtube recording page and the automatic setup thinggy found the camera on USB. Excellent stuff :)

Now I just need to work out how to record...... excellet :)

Thanks for the help.

Ahhhhh, that exlains it. The internal iSights in the iMacs and MacBooks are USB. Only the external iSight is Firewire. ;)
 

asmith3006

macrumors member
Original poster
Dec 5, 2006
55
0
don't you just hate it when it's something simple? At least if it's a complicated problem you feel a sense of achievement when you solve it. When it's something as simple as that I just feel silly :(
 

Spanky Deluxe

macrumors demi-god
Mar 17, 2005
5,285
1,789
London, UK
don't you just hate it when it's something simple? At least if it's a complicated problem you feel a sense of achievement when you solve it. When it's something as simple as that I just feel silly :(

Welcome to the world of computers - *especially* programming. Its *always* the simple things that get you!!
 

GrooveCafe

macrumors newbie
Mar 9, 2007
1
0
Osaka
don't you just hate it when it's something simple? At least if it's a complicated problem you feel a sense of achievement when you solve it. When it's something as simple as that I just feel silly :(

Hello.
Do you think you are corresponding to iSight only because of the description of
ActionScript?

If it is it.

Code:
cam = Camera.get(3);//When three is selected, it seems to allocate iSight by the automatic operation. 
dVideo.attachVideo(cam);
stop();

but...
It is likely not to function by the connection excluding iSight.

I have not used other cameras.
 

xenopehx

macrumors newbie
Jan 16, 2009
1
0
I found this, but not certain if it works across to the PC.

AS3 / CS4
Code:
var camera:Camera;
for(var i:int = 0; i<Camera.names.length; i++) {
	trace(String(Camera.getCamera(i).name));
	switch(Camera.getCamera(i).name) {
		case "USB Video Class Video":
		camera = Camera.getCamera(i);
		break;
	}
}
Mine traces out:
DV Video
IIDC FireWire Video
Google Camera Adapter 0
Google Camera Adapter 1
USB Video Class Video
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.