Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVAssetWriter finishWritingWithCompletionHandler:] Cannot call method when status is 2' #1

Open
zakdances opened this issue Apr 2, 2013 · 2 comments

Comments

@zakdances
Copy link

ScreenRecord crashes after calling stopRecording. The logger produces this method:

[AVAssetWriter finishWritingWithCompletionHandler:] Cannot call method when status is 2'
@Kjuly
Copy link

Kjuly commented May 1, 2018

Hi @zakdances , though it's an old issue u asked, i got similar one that "... when status is 1" (correspond w/ AVAssetWriterStatusWriting, for urs, it's AVAssetWriterStatusCompleted).

After a short research, i'm sure this's because the SRScreenRecorder itself setup its own notifications for UIApplicationDidEnterBackgroundNotification & UIApplicationWillEnterForegroundNotification, which start & end recording actions already.

In my case, i called startRecording & stopRecording in my app delegate before i noticing this existing notification setup in this lib.

And in ur case, i guess u just called stopRecording again in ur own app delegate.

@cnzlh
Copy link

cnzlh commented Nov 16, 2022

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants