title: iphone, how to play sound even in silent or mute mode?
body: <p>as topic... is it possible ? </p>
  
  <p>Thanks</p>
  
  <p>again, I have attached the code as follows, please check which step is wrong .thanks.</p>
  
  <pre><code>    //@step
  AudioSessionInitialize (NULL, NULL, NULL, NULL);
  AudioSessionSetActive(true);
  UInt32 sessionCategory =   kAudioSessionCategory_MediaPlayback;
  OSStatus error = AudioSessionSetProperty (kAudioSessionProperty_AudioCategory,                                            sizeof(sessionCategory),&amp;sessionCategory);
  
  if (error) 
      printf("ERROR AudioSessionSetProperty ! %d\n", error);
  
  //@step 
  NSString* filePath = @"AlarmClockBell.caf";
  [Util restoreResourceFile:filePath];
  filePath =[Util getFileFullPathFromSysDoc:filePath];
  NSURL *soundFileURL = [NSURL fileURLWithPath:filePath];   
  NSError* error ;
  AVAudioPlayer * audioPalyer = [[AVAudioPlayer alloc] initWithContentsOfURL: soundFileURL error: &amp;error];
  if (nil == audioPalyer) 
  {
      AppTrace3(self, @"Faild to play", soundFileURL, error);
      return FALSE;
  }
  [audioPalyer prepareToPlay];
  [audioPalyer setVolume: 5 ];
  [audioPalyer setDelegate: self];
   audioPalyer.numberOfLoops = 10;
  
  [audioPalyer play];
  </code></pre>
  
  <p>thanks...</p>