Replay Kit

Hi Scott, thanks so much for fixing that. It works perfectly!!

I’m using your “taptic” plugin now, and noticing a delay in the effect (for example, when you press a button, it doesn’t do the effect immediately, there’s a slight delay). This kinda ruins the feel of it. 

Is this something you know about?

Thanks,

I will add that to list, You might look at the vibrator by lerg, his is more advance(that can be a good or bad thing) . 

https://marketplace.coronalabs.com/plugin/vibrator

lergs plugin is free too

Ok added a couple new apis to the Taptic engine plugin should allow for more control if you want cache vibrates to reduce lag(probably should not be posting here but oh well :p) 

Scott, you’re amazing :slight_smile:

Hi Scott, one more thing on this. Is there a way of using your plugin in a enterprise project?

Thanks

Congrats Rob Allison, Don’t Grind by Laser Dog
https://appsto.re/us/k_L2eb.i

Ps: nice use of the replay kit plugin :wink:

added cacheRecording , showCacheRecording

https://scotth.tech/plugin-replayKit

Awesome!  Are these available now if I grab the plugin?

Yes, pushed out last night

Note it is pretty strait forward,

start recording

cache recording --(you don’t need to stop)

show cache recording

Right now the stopRecording function stops and immediately shows the save/share screen to play back the video.  Does the cacheRecording function stop the recording, just not show the save/share screen?  Or, do we still need to call stopRecording?  I assume that calling cacheRecording does stop it too, just want to make sure…

Yes cache recording stops the recording, then when the time is right just show cache recordings

Perfect - thanks!

Also… you’d mentioned that availableToRecord() and availbleToRecord() both should work.  I’m getting an error when trying to call availableToRecord.  It does work with availbleToRecord…

... attempt to call field 'availableToRecord' (a nil value)

i fixed this

Thanks.

btw, whenever I call showCacheRecording(), passing in a listener, the app crashes and closes out.  Have you seen this?  I’ve been watching the Console and trying to debug it but can’t find any error statements…

it should just be

print(replayKit.showCacheRecording())

Hey Scott, my app still crashes whenever I call showCacheRecording().  Are you able to use it successfully on your end?

After some testing I don’t it is actually possible to cache recording for later. I did not test this like I should have been when testing the feature. I think the pop up is required to run on the instance it was stopped. I thought I could cache the pop up view for later put it does not seems to what to function like. I would have loved to seen this added to the replay kit plugin. But I don’t replay kit framework. I always to only make promise that I can keep. Sorry to implementing with out testing. Going forward all new feature and new plugins will be tested more thoroughly.

Thanks,

Scott 

Hey Scott, thanks for the update.  There are games though that do cache the recording…  Take MMX Hill Climb for example - you start the recording.  Then, when you crash, it takes you to the replay screen which has a “Review & Share” button which will then fire up the cached recording.

What have you been able to find out via Apple’s docs on what’s allowed or not?

It is just due to a bad access call when try to show a cached view controller. It seems to only want to run on stop recording thread. I am looking into why it is not working.