开发者

How to distinguish between audio file and video file?

I am using Java to write a media application.

Given a file, how can I know is it a audio file or video file?

By the开发者_运维问答 way, I use vlcj library.


In Java 7 you will be able to use java.nio.file.probeContentType to do this.

In the meantime, there are a number of other options for doing this kind of thing.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜