ustwo / ReplayKitUnityBridge

A bridge created from iOS to Unity - exposing the Cocoa ReplayKit API. It allows you to record the screen, set a limited time for the screen to be recorded, and receive a file of the recorded session
MIT License
61 stars 10 forks source link

[iOS 12] screenRecorder.startCapture doesn't get called or no handler is returned #7

Closed sunsshadow closed 5 years ago

sunsshadow commented 5 years ago

Hey there,

Amazing plugin! It works great on iOS 11 but I tried it with iOS 12 and the following callback in ReplayKitNative.swift seems to never get called. Have you seen something similar? Any workarounds?

self.screenRecorder.startCapture(handler: { [weak self] (samples, rpSampleType, error) in

sunsshadow commented 5 years ago

Nevermind!

https://stackoverflow.com/questions/51796101/replaykit-rpscreenrecorder-shared-startcapture-not-working

Apparently, the shared screenRecorder sometimes randomly crashes and you can't recover it unless you reboot your device :/ Oh well!