-5

Like default music app can we implement functionality to drag slider to forward backward song. This is useful if song is long and u want a quick view.

*This question is misread as playing audio while iphone is locked. but its actually one step further. how to add a draggable slider in lock screen, so that we can jump song to specific location. for example i want to listen song from 1 minutes onward, i can drag it. * See attached image, its highlighted in red. enter image description here

Nitin Malguri
  • 201
  • 3
  • 7
  • possible duplicate of [How to handle background audio playing while iOS device is locked or on another application?](http://stackoverflow.com/questions/10429204/how-to-handle-background-audio-playing-while-ios-device-is-locked-or-on-another) – Azat May 09 '15 at 22:45
  • thats not duplication. read question carefully. – Nitin Malguri May 09 '15 at 23:39

1 Answers1

0

The MPRemoteCommandCenter class reference describes ways to respond to commands such as play/pause, and seeking, but does not appear to provide the ability to use a slider to seek within the track. See this question and this question for more details.

Community
  • 1
  • 1
Greg
  • 9,068
  • 6
  • 49
  • 91
  • I have some developers app doing that. So its possible. Just need to dig it. I know seeking notification and implemented that. But slider is more convenient. – Nitin Malguri May 10 '15 at 07:18
  • https://itunes.apple.com/us/app/listen-gesture-music-player/id768223310?mt=8 see this app as a example of implement this feature – Nitin Malguri May 10 '15 at 07:21