Hello,
I have a couple of question about the Screen Recorder V2 plugin.
First, I am attempting to use the Screen Recorder V2 plugin, but it seems to fail with this error message “Failed due to file permission”. How do I resolve this error?
Secondly, is there a way to save to the phone’s photo gallery?
screenRecorder.start{
listener = function(event)
print("ScreenRecord________________________")
for k, v in pairs(event) do
print(k, ", ", v)
end
if event.type == "stopRecording" then
media.save( "video.mp4", system.DocumentsDirectory )
end
end,
cameraEnabled = false,
microphoneEnabled= false,
appAudioEnabled = false, --only supported on Android (default is false)
path=system.pathForFile( "video.mp4", system.DocumentsDirectory )
}