开发者

Can I play a video backwards in AIR

I need to play a .mov file backwards in my Flex app. Some开发者_如何学JAVA help??


Likely not possible.

Video files are simply not designed to play backwards (the compression takes advantage of forwards [and backwards] temporal information) - a decoder would have to be specially-coded for such a feature.

Perhaps use an external tool to reverse the video.

If Flex allows per-frame control, then you may be able to achieve some results (perhaps not good ones) by frame-stepping backwards from the end. Your mileage may vary.


One way to do it is to have the video on the timeline of a flash file (when you drag the video into flash it will give you the option).

then with actionscript you need to make sure the movieclip is paused and manually move the playhead of the currentframe backwards at about the frame rate of the movie.

it isn't trivial but it's possible.

Note that you won't have the sound working.

HTH.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜