I'm successfully using AVPlayer
to stream audio from a server and what I want to do now is to show a custom UISlider
who shows the progress of the buffering.
Something like this:
With AVPlayer
there doesn't seem to be a way to get the total download size or the current downloaded amount for the audio file, only the current playing time and total play time.
There's any workarounds for this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…