You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/08 06:44:26 UTC

[GitHub] [cordova-plugin-media] mahmoudym commented on issue #213: Playing multiple files sequentially in background doesn't work in iOS

mahmoudym commented on issue #213:
URL: https://github.com/apache/cordova-plugin-media/issues/213#issuecomment-815495071


   This solution worked for me:
   first change line 374 
   From:
   [self.avSession setCategory:sessionCategory error:&err];
   To:
   [self.avSession setCategory:AVAudioSessionCategoryPlayback error:&err];
   
   and then in 'AppDelegate.swift' in function 'didFinishLaunchingWithOptions' add this lline:
   
   UIApplication.shared.beginReceivingRemoteControlEvents()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org