Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 14.2 Beta - AVPlayer Cannot Play [closed]

Apple has made a significant AVFoundation change in iOS 14.2 beta from iOS 14.0 (Now Playing Control Center UI change and etc).

The problem is that a simple audio AVPlayer app that worked perfectly in iOS 14.0 does not work in iOS 14.2 Beta 2 anymore.

In iOS 14.2 Beta 2, users are greeted with "Cannot complete action" error, and the playback does not start.

Did anyone found a workaround for this issue?

like image 848
David Liu Avatar asked Oct 05 '20 08:10

David Liu


1 Answers

Maybe reporting this problem to Apple could help with an official answer.

I had problems with iOS 14.2 Beta 2 on real devices but not on simulator. I was able to fix it for me by setting automaticallyWaitsToMinimizeStalling = YES

With NO i run into

Error Domain=AVFoundationErrorDomain Code=-11819 "Cannot Complete Action" UserInfo={NSLocalizedRecoverySuggestion=Try again later., NSLocalizedDescription=Cannot Complete Action, NSUnderlyingError=0x280e34d80 {Error Domain=NSOSStatusErrorDomain Code=-17221 "(null)"}}

like image 161
MacMark Avatar answered Sep 21 '22 17:09

MacMark