简体   繁体   中英

iOS remote control - disable next and previous song buttons

I'm writing a streaming app that's using the remote control feature (remoteControlReceivedWithEvent:).

I can start and stop songs with the remote control as expected.

But I can't seem find out how to disable the next and previous song button on the home screen (double-tap home and swipe all the way to the left).

I'm using a MPMoviePlayerController internally.

Thanks :)

As far as I know the API doesn't allow you to show the buttons as disabled. I think the best you can do is just not take any action when one of those buttons are pressed.

I have not observed any other major app that shows the remote buttons as disabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM