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:
Any pointers would be greatly appreciated!
Edit: the below is what the analyze()
method returns. Note the error
and warning
fields: