Mehdi Negahban

Results 3 comments of Mehdi Negahban

in playVideoOrLoadImage function stop SPB and resume after Load video or image: self.SPB.isPaused = true //add this code override func viewDidLoad() { super.viewDidLoad() NotificationCenter.default.addObserver(self, selector: #selector(playerItemDidReadyToPlay(notification:)), name: .AVPlayerItemNewAccessLogEntry, object: player?.currentItem)...