wapmorgan / Mp3Info

The fastest PHP library to extract mp3 meta information (duration, bitrate, samplerate and so on) and tags (id3v1, id3v2).
https://wapmorgan.github.io/Mp3Info/
GNU Lesser General Public License v3.0
139 stars 41 forks source link

Can't open remote file #19

Closed istratos closed 3 years ago

istratos commented 3 years ago

This library is pretty good at what it does, unfortunately it seems to not support remote urls. My app uploads to S3, so giving it an absolute url it still says the file is not found. It would be great if you included remote files support, as storing objects in the cloud is more common nowadays!

wapmorgan commented 3 years ago

Need a sample of file to test

wapmorgan commented 3 years ago

0.0.7 version supports remote files

IllesAprod commented 2 years ago

@wapmorgan Mp3Info giving me File is not present when trying remote (s3 based) files.

Example url: https://reedioo.s3.eu-central-1.amazonaws.com/synced/%2200098009cc463acf2dd59b61cdcfa6a6%22.mp3

Example code:

            $audio = new Mp3Info('https://reedioo.s3.eu-central-1.amazonaws.com/synced/%2200098009cc463acf2dd59b61cdcfa6a6%22.mp3');
            dd($audio->duration);