Home Tutorial Flex Flex4 Components VideoPlayer in Flex4

 
 

Share on Google+Share on Google+
VideoPlayer in Flex4
Posted on: May 13, 2010 at 12:00 AM
Advertisement
The VideoPlayer control is used for playing downloaded or streaming video. The VideoPlayer control supports multibit rate streaming and live video.It contains a scrub bar.

VideoPlayer control in Flex4:

The VideoPlayer control is used for playing downloaded or streaming video. The VideoPlayer control supports multibit rate streaming and live video.It contains a scrub bar. A scrub bar has a Play/Pause button, video, a timer, a volume bar and a toggle button for full screen in and out.

You can use the DynamicStreamingVideoSource object and set the streamType attribute to live video streaming. The tag of VideoPlayer control is <s:VideoPlayer>.

Example:

 <?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:s="library://ns.adobe.com/flex/spark"

xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

<s:Panel title="VideoPlayer Example" width="359" height="329" color="#990000">

<s:VideoPlayer id="vPlayer"

x="10"

y="10"

autoPlay="false"

source="/tutorialfiles/flex4/US_Aircraft_Carrier_Landing.flv"

autoRewind="false"/>

</s:Panel>

</s:Application>

In this example you can see how we can use a VideoPlayer control in Flex4.

Output:

Running Application:

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.

Download this code

Advertisement

Related Tags for VideoPlayer in Flex4:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: May 13, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com