Category Archives: MetadataEvent

Listening for cue point events on a Spark VideoPlayer object in Flex 4

In a previous example, “Viewing a video’s cue points using a Spark VideoPlayer control in Flex 4”, we saw how you could view a video’s cue points using a Spark VideoPlayer control in Flex 4 by listening for the metadataReceived event and then inspecting the VideoEvent object’s metadataInfo.cuePoints property.

The following example shows how you can detect cue points on a Spark VideoPlayer object in Flex 4 by listening for the cuePoint event on the Flex VideoPlayer object’s inner VideoElement object and then using the mx_internal namespaced fl.video.VideoPlayer object.

Full code after the jump.

Continue reading Listening for cue point events on a Spark VideoPlayer object in Flex 4