-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dataSourceErrorOccured #398
Comments
I'm getting a 404 when I hit that link. Are you testing against dead links? |
@patrickjquinn |
@KenmuHuang 大佬 传了无效的地址 控制台一直打印这个 请问在哪里能获得这个事件? |
尴尬,之前就是因为同样情况获取不到,所以提问;现在不知道有没新增功能支持这处理 |
Hi @KenmuHuang
I'm not sure I understand this. Do you mean that no method in protocol STKAudioPlayerDelegate gets called? |
let audioDataSource = STKAudioPlayer.dataSource(from: sourceURL) self.audioPlayer = STKAudioPlayer(options: STKAudioPlayerOptions()) self.audioPlayer?.play(audioDataSource) // If sourceURL is invalid 404, it will trigger dataSourceErrorOccured in a loop, |
Hi there, Any news about this? No public delegate method is called after dataSourceErrorOccured... Thank you. |
I have the same bug. Play url error , but delegate is not called. Is anyone solve this? |
I had to absolutely have a response in my audio palyer delegate for this error. So I wrote this category which I hope will help some of you. It calls the method audioPlayer:unexpectedError with STKAudioPlayerErrorDataSource error. In your player view controller:
Setting your dataSource:
|
I can not do anything when I play an empty audio from server.
It never execute public delegate method in the iOS 11.
The console show related information as following:
attemptReconnect 0/0
dataSourceErrorOccured
attemptReconnect 0/0
dataSourceErrorOccured
...
For example I access this audio:
http://www.tingban.cn/record/file_play/Mg/NDUxOV8xNDMwXzY1Njg0XzI/L3dpenphcmRhdWRpbzEvMjAxNDA0LzJlMzJmNzEyLWZjMGYtNDk3NC1iYTlkLTNiYTNlNmRhZjdmMS5tcDM.mp3
The text was updated successfully, but these errors were encountered: