Skip to content
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

Could not connect to the server on iPod #30

Open
MostafaElmi opened this issue Jan 26, 2020 · 0 comments
Open

Could not connect to the server on iPod #30

MostafaElmi opened this issue Jan 26, 2020 · 0 comments

Comments

@MostafaElmi
Copy link

MostafaElmi commented Jan 26, 2020

Hi, I am trying to use CachingPlayerItem. I have audio files stored there with URLs that look like this:

https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3

My app works great on simulators with the following site codes

https://andreygordeev.com/2018/03/31/cache-avplayeritem/

but doesn’t work on my iPod and has bellow error

2020-01-26 04:05:49.920762+0330 Mugel[2291:984887] Connection 2: received failure notification
2020-01-26 04:05:49.921085+0330 Mugel[2291:984887] Connection 2: failed to connect 1:13, reason -1
2020-01-26 04:05:49.921565+0330 Mugel[2291:984887] Connection 2: encountered error(1:13)
2020-01-26 04:05:49.932141+0330 Mugel[2291:984887] Task <85966B0E-C6D5-4169-A6FE-B535A9A4E123>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:13])
2020-01-26 04:05:49.942616+0330 Mugel[2291:984887] Task <85966B0E-C6D5-4169-A6FE-B535A9A4E123>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=13, NSUnderlyingError=0x280c80600 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=13, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <85966B0E-C6D5-4169-A6FE-B535A9A4E123>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <85966B0E-C6D5-4169-A6FE-B535A9A4E123>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3, NSErrorFailingURLKey=https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3, _kCFStreamErrorDomainKey=1}
Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=13, NSUnderlyingError=0x280c80600 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=13, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <85966B0E-C6D5-4169-A6FE-B535A9A4E123>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <85966B0E-C6D5-4169-A6FE-B535A9A4E123>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3, NSErrorFailingURLKey=https://www.sample-videos.com/audio/mp3/crowd-cheering.mp3, _kCFStreamErrorDomainKey=1}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant