Setting and accessing iOS seek bar on lock screen

非 Y 不嫁゛ 提交于 2019-12-03 15:44:41
Jayson Lane

I believe the only way to support forward and backward seeking is by the previous/advance buttons (they send a begin/end seeking notification when held down).

UIEventSubtypeRemoteControlBeginSeekingBackward, UIEventSubtypeRemoteControlBeginSeekingForward, 
UIEventSubtypeRemoteControlEndSeekingBackward, UIEventSubtypeRemoteControlEndSeekingForward

Based on some of the other questions and documentation the seek bar is only accessible via Apple's own apps (https://stackoverflow.com/a/20142141/535632, https://stackoverflow.com/a/20909875/535632). According to that last answer, it appears some apps (notably Spotify) route their music through the music player to utilize the seek bar.

You can use MPRemoteCommandCenter after iOS 7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!