I'm trying to play an mp3 (camera shutter sound) using AVPlayer. I've stripped everything down to a simple button that, when pressed, plays the sound. All of the objects are being created correctly but when I run the app on either my iPhone or iPad (both running iOS 6) no sound is generated. And no, the mute button is not on and the volume is turned up. :) I can hear sound in other apps on both devices.
Am I doing something stupid?
- (void)playCameraShutterSound
{
NSURL *url = [[NSBundle mainBundle] URLForResource:@"Grab" withExtension:@"mp3" ];
AVPlayer* player = [AVPlayer playerWithURL:url];
[player play];
}