Thank
@Erel , it work, but i can understand, this command is use for press play/pause, next or previos in lockscreen or when swipe from bottom of iphone.
But only
no.RunMethod("beginReceivingRemoteControlEvents", Null) command, this function not work (when i press to pause or play button in lockscreen or when swipe from bottom of iphone nothing happen)
I read Iphone SDK documents, they say about this:
https://developer.apple.com/library...emote-ControlEvents/Remote-ControlEvents.html
- (void)remoteControlReceivedWithEvent:(UIEvent *)receivedEvent {
if (receivedEvent.type == UIEventTypeRemoteControl) {
switch (receivedEvent.subtype) {
case UIEventSubtypeRemoteControlTogglePlayPause:
[self playOrStop: nil];
break;
case UIEventSubtypeRemoteControlPreviousTrack:
[self previousTrack: nil];
break;
case UIEventSubtypeRemoteControlNextTrack:
[self nextTrack: nil];
break;
default:
break;
}
}
}
How can i convert or use it in B4I? Thank for
@Erel help this topic about background media play very much, i think other members will learn many many thing from this topic, thank you