diff --git a/ExampleApp/ExampleApp/AppDelegate.m b/ExampleApp/ExampleApp/AppDelegate.m index 4fe456a..bbc64bf 100644 --- a/ExampleApp/ExampleApp/AppDelegate.m +++ b/ExampleApp/ExampleApp/AppDelegate.m @@ -37,6 +37,9 @@ audioPlayerView.delegate = self; audioPlayerView.audioPlayer = audioPlayer; + + [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; + [self becomeFirstResponder]; [self.window addSubview:audioPlayerView]; @@ -45,6 +48,11 @@ return YES; } +-(BOOL) canBecomeFirstResponder +{ + return YES; +} + -(void) audioPlayerViewPlayFromHTTPSelected:(AudioPlayerView*)audioPlayerView { NSURL* url = [NSURL URLWithString:@"http://fs.bloom.fm/oss/audiosamples/sample.mp3"];