self.player = [[AVPlayer playerWithURL:[NSURL URLWithString:@"http://myurl.com/track.mp3"]] retain];
I am trying make a UIProgressView for the above track. How do I obtain the file size and current file size from that URL? Please help, thanks!
self.player = [[AVPlayer playerWithURL:[NSURL URLWithString:@"http://myurl.com/track.mp3"]] retain];
I am trying make a UIProgressView for the above track. How do I obtain the file size and current file size from that URL? Please help, thanks!
I think you do not want to know anything about file-sizes, but you're more interested in times.
Try self.player.currentItem.asset.duration
for duration of currently playing item, self.player.currentTime
for current time.