如何使用 JMF 获取视频长度?
我正在使用 JMF,我想知道是否有办法获得电影的长度 我是以 HH:mm:ss 格式还是以长格式播放?
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 long format?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Player 扩展了 Controller,该 Controller 扩展了声明方法
Time getDuration()
的 Duration:以下是其 javadoc 的引用:
获取此对象表示的媒体的持续时间。
立即创建播放器,然后调用其 getDuration()
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()