开发者

How to get video length using JMF?

开发者 https://www.devze.com 2023-02-04 06:42 出处:网络
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

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

精彩评论

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