AudioPlayer
AudioPlayer copied to clipboard
issue with playing
An error occurred at random time when the player starts playing audio (i often founds using live audio URL). This occurs only when Third-party audio is playing using their audio player and when it stops I start playing my audio. I am playing triton ads audio file URL using AVPlayer before my audio starts playing and often I found AudioPlayerError.foundationError.
When ads playing did finished i deinit AVPlayer instance before playing my audio. self.adsAudioPlayer?.pause() self.adsAudioPlayer?.replaceCurrentItem(with: nil) self.adsAudioPlayer = nil
My Live Audio URL: http://peridot.streamguys.com:7150/Mirchi
<MowAudioPlayer.swift> audioPlayer(_:didChangeStateFrom:to:) [#1701]| Optional("from : playing to : failed(AudioPlayer.AudioPlayerError.foundationError(Error Domain=NSURLErrorDomain Code=-1102 "You do not have permission to access the requested resource." UserInfo={NSLocalizedDescription=You do not have permission to access the requested resource., NSUnderlyingError=0x600000a775d0 {Error Domain=NSOSStatusErrorDomain Code=-12660 "(null)"}}))")
Any thought on this is welcome, Thank you for our time! :)
I am posting more logs if this could be easy to indicate an issue
<MowAudioPlayer.swift> audioPlayer(_:shouldStartPlaying:) [#1625]| nil
<MowAudioPlayer.swift> audioPlayer(_:didChangeStateFrom:to:) [#1701]| Optional("from : stopped to : buffering")
<MowAudioPlayer.swift> audioPlayer(_:willStartPlaying:) [#1621]| nil
2019-05-30 12:03:39.351617+0530 MowPlayerApp[3941:68136] TIC Read Status [27:0x6000031f7f00]: 1:57
2019-05-30 12:03:39.362935+0530 MowPlayerApp[3941:72940] Task <2172DB0D-B7CA-46F1-8D5E-845A056A47A3>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=http://peridot.streamguys.com:7150/Mirchi, NSErrorFailingURLKey=http://peridot.streamguys.com:7150/Mirchi, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <2172DB0D-B7CA-46F1-8D5E-845A056A47A3>.<1>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <2172DB0D-B7CA-46F1-8D5E-845A056A47A3>.<1>, NSLocalizedDescription=cancelled} [-999]
2019-05-30 12:03:40.007171+0530 MowPlayerApp[3941:68136] TIC Read Status [28:0x6000031feac0]: 1:57
<MowAudioPlayer.swift> audioPlayer(_:didChangeStateFrom:to:) [#1701]| Optional("from : buffering to : playing")
<MowAudioPlayer.swift> audioPlayer(_:didChangeStateFrom:to:) [#1701]| Optional("from : playing to : failed(AudioPlayer.AudioPlayerError.foundationError(Error Domain=NSURLErrorDomain Code=-1102 \"You do not have permission to access the requested resource.\" UserInfo={NSLocalizedDescription=You do not have permission to access the requested resource., NSUnderlyingError=0x600000a775d0 {Error Domain=NSOSStatusErrorDomain Code=-12660 \"(null)\"}}))")