iOS ReplayKit Native Code Sample Available

Hello everyone,
There is a new native code sample available in our iOS Native Code Samples bitbucket account which allows you to utilize ReplayKit on the iOS Platform. The code sample shows a simple scene in which you can record, preview, save or discard your video. Please let us know if you have any questions by posting to this thread.
You can find the code here:
https://bitbucket.org/Unity-Technologies/iosnativecodesamples/src/57e6b8c74d1c5f7300d6de636391955a86b77953/NativeIntegration/Video/ReplayIt/?at=5.0-dev

2 Likes

What about OS X support? Is it coming? It seems unclear if it’s even supported on OS X actually. On this page it says iOS, OS X at the bottom so I assumed that it worked on OS X as well.

https://developer.apple.com/videos/play/wwdc2015-605/

Hi Daniel,
I believe ReplayKit is only available on iOS at the moment. If it becomes available for OSX we will update you here.
Thanks,
Chris

1 Like

Hi! I’m trying the example but receiving " Error Domain=com.apple.ReplayKit.RPRecordingErrorDomain Code=-5803 “null” " tried on Unity 5.3.2 and 5.2.2… Testing on iPad 4… Any ideas?

Hi @matiasjaure ,
Can you tell me what version of Xcode you are using, as well as the version of iOS on the device you trying this on?
Thanks,
Chris

Latest Xcode Version 7.2.1 & iOS 9.2.1

I’ve been searching and replaykit is not supported on iPad 4 :eyes:… Any suggestion on another thing to use?

You could try one of these:
https://everyplay.com/explore

Thanks for the suggestion Chris.

We are using the ReplayKit for newer devices anyway, but getting freeze screen after pressing save on iPhone 6, we have to quit the app, but the video is saved anyway. Any suggestion?

Hey @matiasjaure ,
Can you post a stack trace, or create a bug and post your project with it?
Thanks,
Chris

Hi,

I have this error : Error Domain=com.apple.ReplayKit.RPRecordingErrorDomain on iOS9.3 with iPad Air 1 and iPhone 6 plus.

Any help please?

Thanks!

Could you submit a bug and attach a small reproduction project? Could you post the id of the new bug here? Thanks.

Hi,

I just copied and pasted the code your provide on the last Unity version, on OSX.

I use this iOS replaykit to my game. but when it runs, the audio come from the iPhone higher speaker. Only user press the replay button, the audio back to the lower speaker. I have no idea why.

Please have a look at our new plugin Cross Platform Replay Kit which allows to recode on both iOS & Android with same API.