Play/Pause now playing with MediaRemote framework

Hi, How can I pause/play the now playing song with MedaiRemote framework

Thanks!

Replies

What application or API is playing the song? If you're using applicationMusicPlayer or something similar, you can of course just use the pause() function. If it's being played in the Music app, you should be able to pause it via systemMusicPlayer.

  • I used MediaRemote.framework is a Apple private framework

Add a Comment