开发者

How to get video length using JMF?

I'm using JMF and I wonder if there is a way of getting the length of the movie I'm playing in HH:mm:ss or in lo开发者_如何学Gong format?


Player extends Controller that extends Duration that declares method

Time getDuration():

Here is quotation from its javadoc: Get the duration of the media represented by this object.

Shortly create player and then invoke its getDuration()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜