Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Replay Kit
Started by Scott Harrison Oct 16 2016 07:10 PM

50 replies to this topic
[TOPIC CONTROLS]
Page 2 of 3 1 2 3
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

roballison182

[GLOBAL: userInfoPane.html]
roballison182
  • Contributor

  • 181 posts
  • Corona SDK

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

 

Thanks



[TOPIC: post.html]
#27

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

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

Ps: nice use of the replay kit plugin ;)

[TOPIC: post.html]
#28

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

added cacheRecording , showCacheRecording

 

https://scotth.tech/plugin-replayKit



[TOPIC: post.html]
#29

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

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



[TOPIC: post.html]
#30

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

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



[TOPIC: post.html]
#31

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

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...



[TOPIC: post.html]
#32

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

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

[TOPIC: post.html]
#33

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

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)


[TOPIC: post.html]
#34

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

i fixed this



[TOPIC: post.html]
#35

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

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...



[TOPIC: post.html]
#36

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

it should just be

print(replayKit.showCacheRecording())


[TOPIC: post.html]
#37

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

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



[TOPIC: post.html]
#38

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

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 



[TOPIC: post.html]
#39

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

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?



[TOPIC: post.html]
#40

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

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. 



[TOPIC: post.html]
#41

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Just wanted give an update on caching recordings. I have been try to get this working non stop for the past 2 hours. It seems to not want to play stored videos. I tried everything I could to get this working. I did as much research as I could but still get a nil value, black screen, or a bad access(which causes a crash. My only other guess is that this is an apple bug. I seem to keep hit a wall on this  :( . My guess on why other app are able to is 1. they are replay kit masters or 2. they are building with a different version of iOS i.e not 10.2.1 



[TOPIC: post.html]
#42

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

I have found a fix to get cache recording working. Will trying to get this working, I may have broken some other things, some may be a little while.



[TOPIC: post.html]
#43

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

Sorry to keep jumping back and forth but finally got cache recording stuff fixed, turns out a replay kit api is was using got removed. This update I getting ready to push out is required for new app going forward.



[TOPIC: post.html]
#44

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 394 posts
  • Corona SDK

Hey Scott, glad to hear!  If you could let us know when the update is live and available that'd be great.  Appreciate you working on getting the cache issue fixed!



[TOPIC: post.html]
#45

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

added caching back to the docs https://scotth.tech/plugin-replayKit

 

caching now works for me

 

please note that replayKit.record(listener, isMicOn) is now just replayKit.record(listener)

 

including isMicOn will use the deprecated api which will result in error. 



[TOPIC: post.html]
#46

Dave Yang

[GLOBAL: userInfoPane.html]
Dave Yang
  • Contributor

  • 102 posts
  • Corona SDK

Considering getting this plugin and wonder if it's possible to record 60fps animation with background music (from iTunes plugin), and does it work on iPhone X with iOS 11?

Thanks!

[TOPIC: post.html]
#47

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

itunes music is played in the background which is not supported by replay kit or any SDK that I know of. Pretty sure recording iTunes music will get your app pulled real quick.



[TOPIC: post.html]
#48

Dave Yang

[GLOBAL: userInfoPane.html]
Dave Yang
  • Contributor

  • 102 posts
  • Corona SDK

The music I'm referring to are either bundled with the app or artist's own creations.

 

My question is really whether this plugin would record background music played by the app itself, and if it works in iOS 11 and iPhone X.



[TOPIC: post.html]
#49

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,796 posts
  • Enterprise

The plugin would only record audio in app it self

[TOPIC: post.html]
#50

amplexor

[GLOBAL: userInfoPane.html]
amplexor
  • Observer

  • 25 posts
  • Corona SDK

Hello, thank you for creating a plugin for the replakit, it works pretty well. I have only one issue. When I use the replaykit after I have used the systems internal screen recording. The replaykit does not work anymore. Any ideas? Cheers, Patrick


[topic_controls]
Page 2 of 3 1 2 3
 
[/topic_controls]