From the category archives:

VideoDisplay

In a previous example, “Displaying a semi-transparent FLV file in an MX VideoDisplay control in Flex”, we saw how you could display an FLV file with alpha channel transparency in an MX VideoDisplay control in Flex 3 by setting the backgroundAlpha style to 0.

The following example shows how you can display an FLV file with alpha channel transparency in an MX VideoDisplay control in Flex 4 by setting the contentBackgroundAlpha style to 0.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can display an FLV file with alpha channel transparency in an MX VideoDisplay control in Flex 3 by setting the backgroundAlpha style to 0.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can maintain a loaded video’s original aspect ratio on a Flex VideoDisplay control by setting the maintainAspectRatio property.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can determine the length of an FLV video (in seconds) using the Flex VideoDisplay control by using the totalTime property.

Full code after the jump.

[click to continue…]

{ 6 comments }

The following example shows how you can specify a background image for a Flex VideoDisplay control by setting the backgroundImage style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can control the volume on a Flex VideoDisplay control by setting the volume property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can use the PopUpManager class to display a VideoDisplay control in a TitleWindow container in Flex.

Full code after the jump.

[click to continue…]

{ 18 comments }

In a previous example, “Setting the background color on a VideoDisplay control in Flex”, we saw how you could modify the background color of a VideoDisplay control in Flex by setting the backgroundColor style.

The following example shows how you can set the background alpha on a Flex VideoDisplay control by setting the backgroundAlpha style.

Full code after the jump.

[click to continue…]

{ 0 comments }

Setting the background color on a VideoDisplay control in Flex

by Peter deHaan April 18, 2008

The following example shows how you can modify the background color of a Flex VideoDisplay control by setting the backgroundColor style.
Full code after the jump.

Read the full article →

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

by Peter deHaan January 22, 2008

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.

Read the full article →

Displaying a webcam’s video in a Flex VideoDisplay control

by Peter deHaan January 22, 2008

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.

Read the full article →

Clearing the video on a Flex VideoDisplay control

by Peter deHaan January 15, 2008

I posted this in response to a forum question the other day and thought I’d share the code here.
The following example shows you how you can clear a VideoDisplay control’s content using the videoPlayer property in the mx_internal namespace.
Full code after the jump.

Read the full article →