seek(to depreciated

I’m trying to find an updated example of the seek(to call that was depreciated in iOS 11


eg:

audioPlayer.seek(to: newTime, toleranceBefore: CMTime.zero, toleranceAfter: CMTime.zero)


gives warning Depreciated in iOS 11

Replies

Please clarify your question. What is the type of your `audioPlayer` in your example?


There is a method named seek(to:toleranceBefore:toleranceAfter:) in AVPlayer, which is not deprecated.

It is deprecated for AVPLayerItem, but not for AVPlayer.