title: IOS LockScreen Play Pause
body: <p>I'm using <a href="https://github.com/tumtumtum/StreamingKit" rel="nofollow noreferrer">StreamingKit</a> to play streaming audio, and when I play the song also use <strong>MPNowPlayingInfoCenter</strong> to update the lock screen. </p>
  
  <p>the lock screen shows the pause button and calls the event</p>
  
  <pre><code>  - (void)remoteControlReceivedWithEvent: (UIEvent *) receivedEvent {
  
     if (receivedEvent.type == UIEventTypeRemoteControl) {
  
      switch (receivedEvent.subtype) {
          case UIEventSubtypeRemoteControlStop:
              [[AudioPlayer sharedInstance] stop];
              break;
          case UIEventSubtypeRemoteControlNextTrack:
              [[AudioPlayer sharedInstance] next];
              break;
          case UIEventSubtypeRemoteControlPreviousTrack:
              [[AudioPlayer sharedInstance] prev];
              break;
          case UIEventSubtypeRemoteControlPlay:
          case UIEventSubtypeRemoteControlPause:
          case UIEventSubtypeRemoteControlTogglePlayPause:
              if ([AudioPlayer sharedInstance].status == AudioPlayerStatusPause) {
  
                  [[AudioPlayer sharedInstance] play];
              }else {
                  [[AudioPlayer sharedInstance] pause];
              }
              break;
  
          default: break;
      }
    }
  }
  </code></pre>
  
  <p>the pause button stops playback and continues normally but the icon on the lock screen is still to pause as the picture show</p>
  
  <p><em>in the image is paused but the audio continues to display the pause button</em>
  <img src="https://i.stack.imgur.com/VN5eV.png" alt="image paused"></p>
  
  <p>before I used <a href="https://github.com/douban/DOUAudioStreamer" rel="nofollow noreferrer">DOUAudioStreamer</a> and functioning normally so I think the problem may be <a href="https://github.com/tumtumtum/StreamingKit" rel="nofollow noreferrer">StreamingKit</a>,the only thing I want is to change the pause button for one play in the lock screen. </p>
  
  <p>I am a beginner, I hope your help thanks.</p>