Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JMF,我想知道是否有办法获取我正在播放的电影的长度 HH:mm:ss 或长格式?
播放器扩展了控制器,控制器扩展了声明方法的 Duration
Time getDuration():
Time getDuration()
以下是其 javadoc 的引文:获取此对象表示的媒体的持续时间。
很快创建播放器,然后调用它getDuration()
getDuration()