Unity_Android_Screen_Recorder icon indicating copy to clipboard operation
Unity_Android_Screen_Recorder copied to clipboard

Can't record video in Samsung Device

Open KWJ1019 opened this issue 3 years ago • 3 comments

Hi, when I tried to record video in Samsung Note8, it show this error in logcat. image And then in app, it toast a message said "Some settings are not supported by your device". I have allowed storage permission and tried change the video encoder settings but issue still occur.

Any help will be appreciated, thanks

KWJ1019 avatar Feb 24 '22 05:02 KWJ1019

Could you try the solution in here. It might help. https://github.com/thanh-nguyen-kim/Unity_Android_Screen_Recorder/issues/18

thanh-nguyen-kim avatar Feb 24 '22 06:02 thanh-nguyen-kim

Hi, thanks for the reply. I already tried change the VideoEncoder to H264 and others but unfortunately it still didn't solve the issue. The following are the devices that I tested so far: Device with error mention Samsung note8 - android 9 Huawei nova 2i - android 8 honor 7x - android 9

Device without error xiaomi pocophone f1 - android 10 huawei nova5t - android 10

Could it possible related to android OS version when write file to storage? Or any settings should I set in Unity player settings when I build to device?

Thanks.

KWJ1019 avatar Feb 24 '22 07:02 KWJ1019

Hi You should turn off minify and proguard. In the error log, it's look like the foreground service could not be started. Have you check the foreground permission. Btw, could you send me a test apk, I will have a look at it.

thanh-nguyen-kim avatar Feb 24 '22 10:02 thanh-nguyen-kim