yutasuzuki / react-native-record-screen

react-native-record-screen
MIT License
148 stars 39 forks source link

Not Working on both IOS/Android #4

Closed ahsanparacha02 closed 3 years ago

ahsanparacha02 commented 4 years ago

when i start recording on android it automatically stop after sec and video not save on phone memory, and on ios side i got exception when i start recoding "Recording not active". please help me to fixed this issue

EdsonMello-code commented 4 years ago

@ahsanparacha02 I also had this problem.

adeshpandey commented 4 years ago

@yutasuzuki I wonder if you were able to make it work in your example app itself. I have tried multiple times with your example and with new project but no luck. In the android it stops just after starting and nothing works afterwards but in iOS it does not work at all.

yutasuzuki commented 4 years ago

May I check this?

The devices we've checked here are listed below.

I only have an iPhone Xs and a Pixel 4a, so it may be difficult to solve this problem with other devices.

Mopiiex20 commented 4 years ago

I test this lib on real devices with iOS 14 and it works fine :) But at the same time it doesn't work on simulators with different iOSs , I think it is because of permissions of recording screen that unavailable on simulators.

yutasuzuki commented 4 years ago

@Mopiiex20 I know that when I use the simulator, it stops with an error about the camera. But if you turn off the camera's permission, it won't work as a module. Therefore, the iOS simulator is not supported

I am not familiar with iOS development. If you know how to get the camera to work in the simulator, please let me know.

yutasuzuki commented 4 years ago

If people want to use it in the iOS simulator, we'll create a new Issue.

Mopiiex20 commented 4 years ago

@yutasuzuki Earlier I use this lib to record screen , it record screen on simulators, and probably could help you to implement this feature , as addition this lib use scale factor of different devices to record screen more accurately.

yutasuzuki commented 4 years ago

@Mopiiex20 Thanks. I tried ASScreenRecorder myself. With this library, when I left the video or camera playing, that part of the screen recording turned black. That's why I made a react-native-record-screen using replaykit.

Mopiiex20 commented 4 years ago

@yutasuzuki what about green lines when save record ?

yutasuzuki commented 4 years ago

@Mopiiex20 I've created a new Issue, so let's talk about it there. #5

adeshpandey commented 4 years ago

@yutasuzuki I managed to run this on android with adding permission check for RECORD_AUDIO and by checking mic permission on iOS.

yutasuzuki commented 4 years ago

@adeshpandey Good!

yutasuzuki commented 3 years ago

I close this Issue. If there is a problem, open this issue again.