giridharvc7 / ScreenRecord

A Wrapper for Screen Recording on iOS with ReplayKit2
MIT License
126 stars 40 forks source link

Failed Recording Screen #4

Open sr-web-dev opened 7 years ago

sr-web-dev commented 7 years ago

Hi, How are you? I developed screen recording app with ReplayKit before and it worked well. 3 days ago, I tested my app but it didn't work. When I click "Stop" button, it said "Failed Recording" in debug window. I'd like you to help me this problem. Thank you

ggschelling commented 6 years ago

@leeshimin104 @giridharvc7 I experienced the same or at least a similar error which I could resolve by apply this fix ...

if CMSampleBufferDataIsReady(sampleBuffer) {
    DispatchQueue.main.async { [weak self] in
        ...
        ...
    }
}

... which I found here: https://stackoverflow.com/questions/46774237/replaykit-asset-writer-status-fails-randomly

Hopefully this helps (although your post is already half a year old and you might have found another solution in the meantime)

syedaffanhamdani commented 6 years ago

I have the same issue. Even the above solution did not work.

fukemy commented 3 years ago

confirm no working