当前位置:网站首页>PHP to get information such as audio duration
PHP to get information such as audio duration
2022-07-08 01:38:00 【Xiao ASI】
Make a note of Resources found by Baidu
1、 First , We need to download one first PHP class —getid3
https://codeload.github.com/JamesHeinrich/getID3/zip/master
2、 Unzip into project , And reference
<?php
private function gettimes($url){
include_once root_path('extend/getid3/getid3').'getid3.php';
$getID3 = new \getID3();
$ThisFileInfo = @$getID3->analyze($url);
// Analyze documents ,$url Is the address of the audio file ( File absolute path )
$fileduration= $ThisFileInfo['playtime_seconds'];
return $fileduration;
}
Resource link :https://download.csdn.net/download/weixin_46044420/85860235
边栏推荐
- FIR filter of IQ signal after AD phase discrimination
- About snake equation (2)
- Matlab code on error analysis (MAE, MAPE, RMSE)
- LaTeX 中 xcolor 颜色的用法
- Four digit nixie tube display multi digit timing
- A little experience from reading "civilization, modernization, value investment and China"
- About snake equation (3)
- common commands
- The examination contents of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge) in 2021 and the free examination questions of the third batch of Guangdong Prov
- Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
猜你喜欢
break net
2022 chemical automation control instrument examination summary and chemical automation control instrument simulation examination questions
2022 high voltage electrician examination skills and high voltage electrician reexamination examination
Understanding of prior probability, posterior probability and Bayesian formula
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况---材料的添加
Gnuradio 3.9 using OOT custom module problem record
ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版
Arm bare metal
2021-04-12 - new features lambda expression and function functional interface programming
The foreach map in JS cannot jump out of the loop problem and whether foreach will modify the original array
随机推荐
Redis集群
城市土地利用分布数据/城市功能区划分布数据/城市poi感兴趣点/植被类型分布
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
2021 Shanghai safety officer C certificate examination registration and analysis of Shanghai safety officer C certificate search
GBASE观察 | 数据泄露频发 信息系统安全应如何守护
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况---材料的添加
NPDP在国内有认可度吗?看一看就明白了!
如果时间是条河
4、策略學習
Tapdata 的 2.0 版 ,開源的 Live Data Platform 現已發布
滑环使用如何固定
How does Matplotlib generate multiple pictures in turn & only save these pictures without displaying them in the compiler
ArrayList源码深度剖析,从最基本的扩容原理,到魔幻的迭代器和fast-fail机制,你想要的这都有!!!
Gnuradio operation error: error thread [thread per block [12]: < block OFDM_ cyclic_ prefixer(8)>]: Buffer too small
项目经理有必要考NPDP吗?我告诉你答案
5. Contrôle discret et contrôle continu
Js中forEach map无法跳出循环问题以及forEach会不会修改原数组
Guojingxin center "APEC investment +": some things about the Internet sector today | observation on stabilizing strategic industrial funds
Kafka-connect将Kafka数据同步到Mysql
qt-使用自带的应用框架建立--hello world--使用min GW 32bit