my code to handle seek process:
MusicPlayer.swift
func seek(timeTo: Double) {
		
		let seekTime = CMTime(seconds: timeTo, preferredTimescale: 1)
		
		isPlaying = .Seek
		player.pause()
		player.seek(to: seekTime, toleranceBefore: .zero, toleranceAfter: .positiveInfinity, completionHandler: { [weak self] result in
				self?.presenter?.checkState_Seek(state: (self?.isPlaying)!)
		})
}
ViewController.Swift
@IBAction func seeking(_ sender: UISlider) {
		
		let second = Float((duration / 100)) * progressBar.value
		
		MusicPlayer.sharedInstance.seek(timeTo: Double(second))
}
Note: this issue happend only when seek on play streaming online with .flac format if I seek the song, it work normal if it seek on play streaming online with .mp3 and .m4a format
Topic:
Media Technologies
SubTopic:
Audio
Tags: