I am trying to set a UISlider's Value to a AVPlayer's Current Time.
I am trying to use this code audioPlayer.currentTime = nowPlayingSlider.value;
I am getting this error:
Setter method is needed to assign to object using property assignment syntax
How do I get this to work.
Maybe you have it the other way round?
To set the slider to the current place in the sound it should be:
To skip in the audio according to a change of the slider:
Let me know if it works.
Here is how I handled this:
Sam, check this two methods:
-currentTime and -seekToTime:
Here
They are in AVPlayer class