我对来自Deezer的iOS SDK有疑问。我初始化与 Deezer 的连接:
_deez = [[DeezerConnect alloc] initWithAppId:kDeezerAppId andDelegate:self];
// List of permissions available from the Deezer SDK web site */
NSMutableArray* permissionsArray = [NSMutableArray arrayWithObjects:@"basic_access", @"offline_access", @"manage_library", @"delete_library", nil];
[_deez authorize:permissionsArray];
登录成功。登录后我想初始化一个我使用的播放器:
_player = [PlayerFactory createPlayer];
[_player setPlayerDelegate:self];
[_player setBufferDelegate:self];
[_player preparePlayerForTrackWithDeezerId:trackid
stream:stream
andDeezerConnect:_deez];
我进入了bufferDidFailWithError:
Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo=0x194370a0 {NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x190894f0 "unsupported URL"}
也许问题出在流中。那是什么?
谢谢。