Oynatma ve duraklatma düğmelerinin MPRemoteCommandCenter'da geçiş yapma sorunları yaşıyorum. Hangi nedenle olursa olsun ses ve olaylar doğru bir şekilde çalışacaktır, ancak komut merkezi oynatma düğmesini duraklatma düğmesine değiştirmez. İşte yardıma isteriz MPRemoteCommandCenter duraklat/oynat düğmesi değişmiyor mu?
siz şey gelmiyor bana bildirin
- (void)setupMPRemoteCommandCenter{
MPRemoteCommandCenter *commandCenter = [MPRemoteCommandCenter sharedCommandCenter];
MPRemoteCommand *play = [commandCenter playCommand];
[play setEnabled:YES];
[play addTarget:self action:@selector(playAudio:)];
MPRemoteCommand *pause = [commandCenter pauseCommand];
[pause setEnabled:YES];
[pause addTarget:self action:@selector(playAudio:)];
[commandCenter.skipBackwardCommand setPreferredIntervals:@[@30.0]];
MPRemoteCommand *skipBackwards = [commandCenter skipBackwardCommand];
[skipBackwards setEnabled:YES];
[skipBackwards addTarget:self action:@selector(skipBackwardEvent:)];
[commandCenter.skipForwardCommand setPreferredIntervals:@[@30.0]];
MPRemoteCommand *skipForwards = [commandCenter skipForwardCommand];
[skipForwards setEnabled:YES];
[skipForwards addTarget:self action:@selector(skipForwardEvent:)];
}
-(void)playAudio: (MPRemoteCommandHandlerStatus *)event{
[self playAction];
//playAction handles the audio pausing and toggling the play button on the app
}
, benim kod ... var. Bu, beni nasıl çözdüğümü gösteren bir kaç işaretçi olan
anlamaya hızlı bir 16 saat sürdü simülatörü, ince geçiş yapar. Sorununuzu çözdünüz mü? – Sirens
Aynı sorunu yaşıyorum. Herhangi bir yardım takdir edilecektir! –
Bu projeyi bıraktım, geç cevap için özür dilerim! Umarım bunu anlamaya çalışın –