当前位置:网站首页>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
边栏推荐
- Deep learning website
- 5. Discrete control and continuous control
- 2、TD+Learning
- Guojingxin center "APEC education +" Shanghai Jiaotong University Japan Cooperation Center x Fudan philosophy class "Zhe Yi" 2022 New Year greetings
- [loss function] entropy / relative entropy / cross entropy
- The difference between distribution function and probability density function of random variables
- Break algorithm --- map
- 5、离散控制与连续控制
- 2021 welder (primary) examination skills and welder (primary) operation examination question bank
- The beauty of Mathematics -- the principle of fine Fourier transform
猜你喜欢

如何让导电滑环信号更好

从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值

4. Apprentissage stratégique

Application of state mode in JSF source code

Transportation, new infrastructure and smart highway

从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值

5、離散控制與連續控制

4. Strategic Learning

2021 Shanghai safety officer C certificate examination registration and analysis of Shanghai safety officer C certificate search

pb9.0 insert ole control 错误的修复工具
随机推荐
Guojingxin center "friendship and righteousness" - the meta universe based on friendship and friendship, and the parallel of "honguniverse"
Plot function drawing of MATLAB
After modifying the background of jupyter notebook and adding jupyterthemes, enter 'JT -l' and the error 'JT' is not an internal or external command, nor a runnable program
npm 内部拆分模块
qt--將程序打包--不要安裝qt-可以直接運行
Matlab method is good~
Qt - - Packaging Programs - - Don't install Qt - can run directly
5、离散控制与连续控制
2021-03-06 - play with the application of reflection in the framework
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
5、離散控制與連續控制
regular expression
break net
Introduction to grpc for cloud native application development
The foreach map in JS cannot jump out of the loop problem and whether foreach will modify the original array
COMSOL - Construction of micro resistance beam model - final temperature distribution and deformation - establishment of geometric model
Coordinate conversion of one-dimensional array and two-dimensional matrix (storage of matrix)
2021-03-14 - play with generics
Macro definition and multiple parameters
5. Discrete control and continuous control