How to get duration of .webm audio file using getID3?

528 views Asked by At

I'm building a Laravel application where we need to store user-submitted recordings as well as some metadata such as duration. Other answers have suggested using playtime_seconds or playtime_string but neither of these keys exist for me when I call the analyze() function on the file, despite getID3 supposedly fully supporting the webm format:

enter image description here

Any pointers would be greatly appreciated!

Edit: the below is what the analyze() method returns. Note the error and warning fields:

enter image description here

0

There are 0 answers