playerItem=[AVPlayerItem playerItemWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://www.radio.com.lk/y-fm/"]]];
player=[AVPlayer playerWithPlayerItem:playerItem] ;
[player play];
Es funktioniert auf Simulator, aber in dem Gerät ist es nicht. In der Konsole haben ich folgende Fehlermeldung:AVPlayer funktioniert am Simulator, aber nicht am Gerät
CredStore - performQuery - Error copying matching creds. Error=-25300, query={ class = inet; "m_Limit" = "m_LimitAll"; "r_Attributes" = 1; sync = syna; }
mir jemand mit einem Hinweis helfen?
[[AVAudioSession sharedInstance] setActive: JA withOptions: AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation Fehler: & activationError]; Haben Sie diesen Code in Appdelegate hinzugefügt? –
Hallo Sambit - ich habe diese nicht hinzugefügt. soll ich diese zwei Zeilen hinzufügen? -> [[AVAudioSession sharedInstance] setActive: JA AVAudioSessionSactiveOptionNotifyOthersOnDeactivation error: & activationError]; – HRCJ
Können Sie mir sagen, wo soll ich das hinzufügen? – HRCJ