AVPlayer Pause and play issues when app goes background

前端 未结 2 498
广开言路
广开言路 2021-02-09 12:56

It\'s working correctly if the app just become inactive/active (when some alert came or by double clicking on home button)

AVPlayer *player;

- (void)application         


        
2条回答
  •  清酒与你
    2021-02-09 13:27

    You should call the this methods before application is going to background. [player pause]; or [player stop];

提交回复
热议问题