MPMoviePlayerController multitasking problem

后端 未结 3 1393
天涯浪人
天涯浪人 2021-01-06 06:22

I develop an application on iphone that uses MPMoviePlayerController to play audio file. When Application goes to background, if mpmovieplayer is playing, iphone continues t

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 06:45

    may be you forget to add this in

     - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
         {
        [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
       }
    

提交回复
热议问题