Replay Kit
This plugin uses the Replay kit framework which requires iOS 9+ for recording and iOS 10+ for broadcasting (tvOS requires 10+ for both). For andorid recording, it is build in the gpgs plugin corona made. One other note all system events(like notfication and other app music) are not recorded. Speed and quailty are based on device and networking speeds.
Limitations:
Only works on iOS, tvOS and "not" iOS or tvOS simulator. Also you cannot access microphone on tvOS.Functions:
---Recording screen iOS 9+ and tvOS 10+, please note the app does have access to the video.
replayKit.record(listener)
--listener (Required)(function) return event.response which could contain the following strings:
- could not start recording
- recording started
replayKit.cacheRecording(listener)
--listener (Required)(function) return event.response which could contain the following strings:
- cached video
- sharing video
replayKit.showCacheRecording()-- returns strings "showing", "nothing cached"
replayKit.stopRecording(listener)
--listener (Required)(function) return event.response which could contain the following strings:
- could not stop
- sharing video
replayKit.cancelRecording(listener)
--listener (Required)(function) return event.response which could contain the following strings:
- could not cancel
- recording canceled
- recording recycled
replayKit.recordingScreen()
returns boolean, true = screen being recorded, false = screen not being recorded
replayKit.usingMicrophoneForRecoding()
returns boolean, true = mic being used for recording, false = mic not being used for recording
replayKit.availableToRecord()
returns boolean, true = you can record screen, false = you cannot record screen
replayKit.setBroadcastingOptions(micOn)
--micOn (optional)(boolean) this will allow users to talk during the broadcasting. (default is false)
replayKit.startBroadcasting(listener)
--listener (Required)(function) return event.response which could contain the following strings:
- showing stream picker
- unable to show stream picker
- we are live
- error loading stream
- error while broadcasting
replayKit.stopBroadcasting(listener)
--listener (Required)(function) return event.response which could contain the following strings:
- unable to stop broadcasting
- broadcast stopped
replayKit.pauseBroadcasting()
returns string which could be
- not broadcasting
- broadcast already paused
- broadcast paused
replayKit.resumeBroadcasting()
returns string which could be
- not broadcasting
- already broadcasting
- resume broadcasting
replayKit.broadcastIsPaused()
returns boolean, true = broadcast is paused, false = broadcast is not paused
replayKit.getBroadcastingUrl()
returns string, which is the url of broadcast( nil if there is not one)