Category Archives: VideoPlayer (Spark)

Rewinding a video when changing the selected item in the MX Accordion container in Flex 4

The following example shows how you can rewind a Spark VideoPlayer control in Flex 4 when the selected MX Accordion container changes its selected item by listening for the hide event on the Spark NavigatorContent container and calling the seek() method on the VideoPlayer instance.

Continue reading Rewinding a video when changing the selected item in the MX Accordion container in Flex 4

Setting a roll over open delay on a Spark VolumeBar control in Flex 4

In a previous example, “Setting a roll over open delay on a Spark DropDownList control in Flex 4”, we saw how you could set a roll over open delay on a Spark DropDownList control in Flex 4 by extending the DropDownList control, accessing the protected DropDownController object and setting the rollOverOpenDelay property.

The following example shows how you can set the roll over open delay on a Spark VolumeBar skin part in the VideoPlayer control in Flex 4 by setting the rollOverOpenDelay style.

Continue reading Setting a roll over open delay on a Spark VolumeBar control in Flex 4

Detecting when a video cannot be loaded by the Spark VideoPlayer control in Flex 4

The following example shows how you can detect when an error was encountered while trying to play media using the Spark VideoPlayer control in Flex 4 by listening for the mediaPlayerStateChange event and checking for the playbackError state.

Full code after the jump.

Continue reading Detecting when a video cannot be loaded by the Spark VideoPlayer control in Flex 4

Playing a video from an RTMP server using the Spark VideoPlayer control in Flex 4

The following example shows how you can load a recorded F4V video from an RTMP server in a Spark VideoPlayer control in Flex 4 by setting the source property to a DynamicStreamingVideoSource object.

Full code after the jump.

Continue reading Playing a video from an RTMP server using the Spark VideoPlayer control in Flex 4

Disabling the mouse scroll wheel on a Spark VideoPlayer control scrub bar in Flex 4

The following example shows how you can disable the mouse scroll wheel on a Spark VideoPlayer control scrub bar in Flex 4 by setting the Boolean mouseFocusEnabled property on the VideoPlayer control’s scrubBar skin part.

Full code after the jump.

Continue reading Disabling the mouse scroll wheel on a Spark VideoPlayer control scrub bar in Flex 4

Disabling the scrub bar on the Spark VideoPlayer control in Flex 4

In a previous example, “Disabling the mouse on the Spark VideoPlayer control scrub bar in Flex 4”, we saw how to disable the mouse on the Spark VideoPlayer control scrub bar in Flex 4 by setting the Boolean mouseEnabled and mouseChildren properties.

The following example shows how you can disable the scrub bar on the Spark VideoPlayer control in Flex 4 by setting the Boolean enabled property on the scrubBar skin part.

Full code after the jump.

Continue reading Disabling the scrub bar on the Spark VideoPlayer control in Flex 4