I can't start screen recording on Chinese devices oppo,huawei

Hello everyone,

I start and stop screen recording with the code below, but I get this error on Chinese phones such as oppo and huawei.

It returns this as an error. : .

openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The expected screen record file ‘/sdcard/70454702.mp4’ does not exist after 5000ms. Is screenrecord utility available and operational on the device under test?

Thanks for help.

1 Like

@mykola-mokhnach

Thanks for help, I tried mobile: stopMediaProjectionRecording like this, but the file size is saving as 0 bytes. where am i doing wrong

My code ,

@Aleksei do you have any idea sir. Thanks

Problem not in appium but in phones that use custom Android where command to record screen just absent.

To check use adb command (same using appium)

adb shell screenrecord
1 Like

I fixed this https://github.com/appium/appium-uiautomator2-driver#mobile-startmediaprojectionrecording

Thanks everyone for helping.

1 Like

opa. nice finding! at least something left in custom android :upside_down_face: