Media Length of content that AudioStreamer is playing

311 views Asked by At

I am using AudioStreamer by mattgallagher to stream MP3 from server to iPhone app. I know how to get the progress of playing content, but how can I get the total duration of the media?

1

There are 1 answers

4
Wasim On

You need to use the duration property of the AudioStreamer object

AudioStreamer *audio = [[AudioStreamer alloc] init];
NSLog(@"%f", audio.duration);