dimitris-c / AudioStreaming

An AudioPlayer/Streaming library for iOS written in Swift using AVAudioEngine.
MIT License
266 stars 56 forks source link

Get audio duration without playing audio #87

Closed hardipgajera closed 4 months ago

hardipgajera commented 4 months ago

Currently there is no way to get the total audio duration without playing audio

dimitris-c commented 4 months ago

You really can't know the duration of the a remote audio resource without actually loading it, with some formats you can calculate it with ease from some metadata, whereas with others it's a bit more difficult.