如何使用 JMF 获取视频长度?

发布于 2024-10-12 03:25:04 字数 58 浏览 7 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏闹i 2024-10-19 03:25:04

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()

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文