Tag Archive for 'camera'

25
Jan

Getting specific camera instances using the static Camera.getCamera() method

The following example shows how you can get the array of available cameras in ActionScript by using the static Camera.names property, which returns an array of camera names. You’ll also see how you can get a specific camera instance (in case users have multiple cameras installed, which may be the case if they have a laptop with a built in webcam as well as an external USB/Firewire webcam) by passing a parameter to the static Camera.getCamera() method.

Full code after the jump.

Continue reading ‘Getting specific camera instances using the static Camera.getCamera() method’

22
Jan

Detecting changes in a camera’s activity and status in a Flex VideoDisplay control

In a previous example, “Displaying a webcam’s video in a Flex VideoDisplay control”, we saw how to connect to a user’s webcam, if they have one installed.

In the following example we see how to listen for the Camera object’s activity event and status event, using some good ol’ ActionScript.

Full code after the jump.

Continue reading ‘Detecting changes in a camera’s activity and status in a Flex VideoDisplay control’

22
Jan

Displaying a webcam’s video in a Flex VideoDisplay control

The following example shows you how you can display a user’s webcam feed in a VideoDisplay control using the static Camera.getCamera() method and VideoDisplay class’s attachCamera() method.

Full code after the jump.

Continue reading ‘Displaying a webcam’s video in a Flex VideoDisplay control’