AVPlayer doesn't resume playback on endinterruption on iPhone but does so on iPad

后端 未结 2 1677
小蘑菇
小蘑菇 2021-01-06 20:31

I\'m writing a radio app for both iPhone and iPad and am running into some weird behaviour when handling pausing and playing the audio with interruptions. I\'m using the AVA

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-06 21:15

    I had the same issue. Issue disappeared after I implemented remote control event handling. I called [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];when starting playback.

提交回复
热议问题