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 1 of 3 1 2 3
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Replay Kit

 

View and activate on the Corona Store

Replay kit is a framework in iOS 9 which allows you to record screen and audio (including voice). All system events like notification and music from 3rd party apps(apple music, Spotify) are ignored from the video. The app does not have access to the video. Once you are finished a pop is displayed which allows users to share or save video to camera roll. There is also a broadcasting feature added in iOS 10 which allows users of your app to stream to other broadcast enabled apps that a users has on their device.

Documentation



[TOPIC: post.html]
#2

Chribbe

[GLOBAL: userInfoPane.html]
Chribbe
  • Enthusiast

  • 73 posts
  • Corona SDK

Hi! Thanks for making the plugin, looks great! We just bought it today.

Getting an error when trying to build with it though. Using Daily Build 2016.2972. Tried removing all other plugins from build.settings as well.

 

Error in console:

 

 

clang: error: linker command failed with exit code 1 (use -v to see invocation)</result>
Oct 18 04:10:12.824 ERROR: Builder failed: Undefined symbols for architecture armv7:
Oct 18 04:10:12.824   "_OBJC_CLASS_$_RPBroadcastActivityViewController", referenced from:
                          objc-class-ref in libplugin_replayKit.a(replayKitLibrary.o)
                    ld: symbol(s) not found for architecture armv7
                    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Oct 18 04:10:12.839 BUILD ERROR: There was a problem linking the app.
                    
                    Check the console for more information.
Oct 18 04:10:12.854 iOS build failed (12) after 23 seconds
Oct 18 04:10:13.280 ERROR: Build Failed: There was a problem linking the app.
                    
                    Check the console for more information.


[TOPIC: post.html]
#3

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Thanks for reporting looking into asap
  • Chribbe likes this

[TOPIC: post.html]
#4

Scott Harrison

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

  • 1,803 posts
  • Enterprise

 

Hi! Thanks for making the plugin, looks great! We just bought it today.

Getting an error when trying to build with it though. Using Daily Build 2016.2972. Tried removing all other plugins from build.settings as well.

 

Error in console:

 

 

clang: error: linker command failed with exit code 1 (use -v to see invocation)</result>
Oct 18 04:10:12.824 ERROR: Builder failed: Undefined symbols for architecture armv7:
Oct 18 04:10:12.824   "_OBJC_CLASS_$_RPBroadcastActivityViewController", referenced from:
                          objc-class-ref in libplugin_replayKit.a(replayKitLibrary.o)
                    ld: symbol(s) not found for architecture armv7
                    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Oct 18 04:10:12.839 BUILD ERROR: There was a problem linking the app.
                    
                    Check the console for more information.
Oct 18 04:10:12.854 iOS build failed (12) after 23 seconds
Oct 18 04:10:13.280 ERROR: Build Failed: There was a problem linking the app.
                    
                    Check the console for more information.

 

I was just able to build with corona sdk using 2016.2972 using demo (https://github.com/scottrules44/replaykit-demo). Make sure your Xcode is up to date. What device and iOS version are you build on? It should not matter but just checking.



[TOPIC: post.html]
#5

Chribbe

[GLOBAL: userInfoPane.html]
Chribbe
  • Enthusiast

  • 73 posts
  • Corona SDK

Updated Xcode, building works now! Thanks for the help!



[TOPIC: post.html]
#6

Chribbe

[GLOBAL: userInfoPane.html]
Chribbe
  • Enthusiast

  • 73 posts
  • Corona SDK

Noticed a small bug btw, 

 

replayKit.availbleToRecord() should probably be replayKit.availableToRecord()

 

Confused me a bit :)



[TOPIC: post.html]
#7

Scott Harrison

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

  • 1,803 posts
  • Enterprise

I wish there was auto correct in Xcode



[TOPIC: post.html]
#8

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Just fixed this will push out update tonight, you should be able to use either/or

[TOPIC: post.html]
#9

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Two notes

 

1. the docs have changed to www.scotth.tech/plugin-replaykit   https://scotth.tech/plugin-replayKit

2.

 

replayKit.availbleToRecord() and replayKit.availableToRecord()

 

will work the same but the docs say availableToRecord



[TOPIC: post.html]
#10

Scott Harrison

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

  • 1,803 posts
  • Enterprise

TvOS support added

[TOPIC: post.html]
#11

roballison182

[GLOBAL: userInfoPane.html]
roballison182
  • Contributor

  • 181 posts
  • Corona SDK

Hey Scott,

 

When I press "save" on the popup, it doesn't actually save it anywhere. Am I doing something wrong? :D

 

Thanks,



[TOPIC: post.html]
#12

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Hi rob Allison,

It actually save the video to the camera roll. Replay kit will not allow you to save to the app files. I am guessing that is what you mean by it not saving anywhere.

Thanks
Scott

[TOPIC: post.html]
#13

Chribbe

[GLOBAL: userInfoPane.html]
Chribbe
  • Enthusiast

  • 73 posts
  • Corona SDK

Hi rob Allison,

It actually save the video to the camera roll. Replay kit will not allow you to save to the app files. I am guessing that is what you mean by it not saving anywhere.
 

 

Hi! I tried this in our game now, and I can't seem to find the saved movie in the camera roll (or anywhere on the phone).  Sharing works as expected from the popup though. 

 

What i do:

1. Use replaykit.record()

2. replayKit.stopRecording()  popup opens

3. pressing save on the popup - popup closes

4. can't find the video on the phone in the camera roll

 

 

Thanks!



[TOPIC: post.html]
#14

Scott Harrison

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

  • 1,803 posts
  • Enterprise

That is weird what version of iOS is the test running on? I try testing again.

[TOPIC: post.html]
#15

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Does your app have premison to access the camera roll?

[TOPIC: post.html]
#16

Chribbe

[GLOBAL: userInfoPane.html]
Chribbe
  • Enthusiast

  • 73 posts
  • Corona SDK

Does your app have premison to access the camera roll?

 

Not sure. How do i see that? Running ios 10.0.2 on iphone6



[TOPIC: post.html]
#17

Scott Harrison

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

  • 1,803 posts
  • Enterprise

I am testing now add this to you plist

NSPhotoLibraryUsageDescription = "Testing",


[TOPIC: post.html]
#18

Scott Harrison

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

  • 1,803 posts
  • Enterprise

hold that did not work, come back with a real solution



[TOPIC: post.html]
#19

Scott Harrison

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

  • 1,803 posts
  • Enterprise

There is no build in api for to request permission for camera roll, let me add one to the plugin. 



[TOPIC: post.html]
#20

Scott Harrison

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

  • 1,803 posts
  • Enterprise

Ok fixed, check an hour. You don't have to change anything, it should just work. That was a weird bug but it is fixed



[TOPIC: post.html]
#21

roballison182

[GLOBAL: userInfoPane.html]
roballison182
  • Contributor

  • 181 posts
  • Corona SDK

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,



[TOPIC: post.html]
#22

Scott Harrison

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

  • 1,803 posts
  • Enterprise

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



[TOPIC: post.html]
#23

Scott Harrison

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

  • 1,803 posts
  • Enterprise

lergs plugin is free too



[TOPIC: post.html]
#24

Scott Harrison

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

  • 1,803 posts
  • Enterprise

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



[TOPIC: post.html]
#25

roballison182

[GLOBAL: userInfoPane.html]
roballison182
  • Contributor

  • 181 posts
  • Corona SDK

Scott, you're amazing :)


  • Scott Harrison likes this


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