PHP函数获取MP3持续时间 [英] PHP Function to get MP3 duration

查看:82
本文介绍了PHP函数获取MP3持续时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何PHP函数可以给我MP3的持续时间.我查看了ID 3功能,但是在此期间我什么都没看到,除此之外,id3是某种标签,在所有MP3中都不会出现,因此使用它没有任何意义.

Is there any PHP function that will give me the MP3 duration. I looked at ID 3 function but i don't see any thing there for duration and apart from this,id3 is some kind of tag,which will not be there in all MP3 so using this will not make any sense.

推荐答案

这应该对您有用,请注意getduration函数:

This should work for you, notice the getduration function: http://www.zedwood.com/article/127/php-calculate-duration-of-mp3

这篇关于PHP函数获取MP3持续时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆