analogcode / Swift-Radio-Pro

Professional Radio Station App for iOS!
MIT License
2.88k stars 711 forks source link

NSErrorFailingURLStringKey #112

Closed brdn closed 5 years ago

brdn commented 5 years ago

Hi, any idea ? url is working but player cant play it NSErrorFailingURLStringKey=http://nashe1.hostingradio.ru/best-128.mp3

load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled

urayoanm commented 5 years ago

I think this can help you out https://stackoverflow.com/questions/33146003/afnetworking-with-request-error-code-999

brdn commented 5 years ago

i'm already using this solution, still have the same issue.

fethica commented 5 years ago

Hey @brdn, the link you provided is protected with a user and password, I'm getting this when I try to play the stream using Safari:

screen shot 2019-03-05 at 3 34 56 pm

If you have the credentials for the stream, try to use this URL format instead:

http://username:password@nashe1.hostingradio.ru/best-128.mp3
brdn commented 5 years ago

Hey @brdn, the link you provided is protected with a user and password, I'm getting this when I try to play the stream using Safari:

screen shot 2019-03-05 at 3 34 56 pm

If you have the credentials for the stream, try to use this URL format instead:

http://username:password@nashe1.hostingradio.ru/best-128.mp3

thats weird, i try on mozilla & chrome and i dont get any problem, only on safari its asking username and password.

fethica commented 5 years ago

I checked the response header, and I found the media link is pointing to:

http://nashe1.hostingradio.ru/best-256

It's working with Safari and the app.

brdn commented 5 years ago

256k= more bandwith, but its a solution :) Thank you