Here is my code under the AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSLog(@"PLAY SOUND CLIP WHILE LOADING APP");
NSURL *clip = [[NSBundle mainBundle] URLForResource: @"project" withExtension:@"m4a"];
self.startipPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:clip error:NULL];
[self.startipPlayer play]
}
This only plays the audio once and not repeat. How do I make this code repeat itself or repeat the song at least?
Or any alternatives to create play background music than can loop would be helpful. Thank you.