Skip to content

Commit

Permalink
Revert previous attempted solution
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdustin committed Apr 25, 2019
1 parent 8b91573 commit bb015f0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions SwiftAudio/Classes/AudioPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,6 @@ public class AudioPlayer: AVPlayerWrapperDelegate {
func AVWrapper(failedWithError error: Error?) {
self.event.fail.emit(data: error)
self.delegate?.audioPlayer(failedWithError: error)

// When AVPlayer status becomes .failed,
// the instance can no longer be used.
// A new instance must be created.
// https://developer.apple.com/documentation/avfoundation/avplayer/1388096-status
self._wrapper = AVPlayerWrapper(avPlayer: AVPlayer())
self._wrapper.delegate = self
}

func AVWrapper(seekTo seconds: Int, didFinish: Bool) {
Expand Down

0 comments on commit bb015f0

Please sign in to comment.