ios 16 lockscreen playbutton is disabled but working fine with ios15 (iphone11)

Hello,

I have used AVPlayer and AVPlayerViewController to play a video from url.

I can control lockscreen play/pause button through avaudiosession as below--


[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:&sessionError];

[[AVAudioSession sharedInstance] setActive:YES error:nil];

[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];


Its working fine with iphone having ios 15, can control play/pause from lockscreen.

But in ios 16 iphone , the play/pause button is disabled.

Can anyone please help me why its not working with ios 16.

Posted on Apr 11, 2023 9:49 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ios 16 lockscreen playbutton is disabled but working fine with ios15 (iphone11)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.