thanh-nguyen-kim/Unity_Android_Screen_Recorder

Can't record video in Samsung Device

KWJ1019 opened this issue · 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

Could you try the solution in here. It might help.
#18

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.

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.