Tag Archive for 'videodisplay'

28
Aug

Setting a background image on a VideoDisplay control in Flex

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.

Continue reading ‘Setting a background image on a VideoDisplay control in Flex’

24
Aug

Setting the volume on a VideoDisplay control in Flex

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.

Continue reading ‘Setting the volume on a VideoDisplay control in Flex’

04
Aug

Displaying a video in a pop up window in Flex

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.

Continue reading ‘Displaying a video in a pop up window in Flex’

18
Apr

Setting the background alpha on a VideoDisplay control in Flex

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.

Continue reading ‘Setting the background alpha on a VideoDisplay control in Flex’

18
Apr

Setting the background color on a VideoDisplay control in Flex

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.

Continue reading ‘Setting the background color on a VideoDisplay control in Flex’

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’

15
Jan

Clearing the video on a Flex VideoDisplay control

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.

Continue reading ‘Clearing the video on a Flex VideoDisplay control’

01
Jan

Determining a VideoDisplay control’s current playback state using the state property and stateChange event

The following example shows how you can listen for stateChange events on a Flex VideoDisplay control to display the video’s current state in a ProgressBar control, List control, or just perform specific actions if a certain state is entered. It also shows how you can use a ProgressBar control to display the amount of video that has already been played, and how much is still remaining by listening for the playheadUpdate event and passing the VideoEvent class’s playheadTime property, and VideoDisplay class’s totalTime property to the ProgressBar class’s setProgress() method.

Full code after the jump.

Continue reading ‘Determining a VideoDisplay control’s current playback state using the state property and stateChange event’

15
Sep

Viewing an FLV video’s metadata using a Flex VideoDisplay control

The following example shows how you can use the new metadataReceived event in Flex 3 to easily grab the metadata from an FLV file.

Full code after the jump.

Continue reading ‘Viewing an FLV video’s metadata using a Flex VideoDisplay control’

12
Aug

Dynamically creating ActionScript cue points from FlashVars loaded using the HTTPService tag

In a previous post, “Dynamically creating ActionScript cue points from FlashVars received from the HTML container”, we looked at how to create ActionScript cue points based on variables passed in to our Flex application from the HTML template’s “FlashVars” parameter. In this post we look at a similar approach, although using the <mx:HTTPService /> tag to load cue points from an external file of name/value pairs. This example could easily be extended further to pass a variable to a server-side script which would grab cue point information from a database and pass it back into Flex either as a string of name/value pairs, or as an XML document.

Full code after the jump.

Continue reading ‘Dynamically creating ActionScript cue points from FlashVars loaded using the HTTPService tag’

01
Aug

Adding ActionScript cue points using the CuePointManager

I was just playing around with the VideoDisplay.cuePointManager property, and made a pretty crude FLV player. The FLV URL is hard-coded, so it really isn’t very useful, but it shows how you can use the cuePointManager property and addCuePoint() method to add ActionScript cue points to an FLV.

Full code after the jump.

Continue reading ‘Adding ActionScript cue points using the CuePointManager’