开发者

Flex - Show text at specific video points

I'm using the VideoPlayer component in flex 4 to display a clip. I have about 3 or 4 notes that I want to appear at specific points of the video, sort of like caption but not quite. I'm trying to figure out how to use VideoPlayer time to cause another element to appear (text area with the note in it), but can't seem to get it. I'm a bit of a beginner so an answer for th开发者_如何转开发e stupid is much appreciated.


I assume you're using spark.components.VideoPlayer. Add an event listener to respond to the playheadUpdate event (spark.events.VideoEvent.PLAYHEAD_UPDATE) and check the value of playheadTime (playhead position, measured in seconds, since the video starting playing) to determine whether it is time to display your text.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜