I trying to get mp3
file's duration via ID3
from remote file
, from url
but it returns 0
any solution?
$getID3 = new getID3;
$file = $getID3->analyze($srv . $path . $filename);
$playtime_seconds = $file['playtime_seconds'];
$duration = gmdate("i:s", $playtime_seconds);
echo $duration;
I get answer as "Remote files are not supported - please copy the file locally first" . So there is no way without downloading the file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.