appium: Can't play screen recorded video
The problem
Can’t play screen recorded video
Environment
- Appium version 1.9.0
- OSX
- v10.9.0
- Android
- Emulator image:
system-images;android-27;google_apis_playstore;x86
Details
stopRecordingScreen results in base64 video, which can be decoded fine with bas64 --decode
but can’t be played after
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 37
@RishuKS Try with “mpeg4”
((CanRecordScreen) mobileDriver).startRecordingScreen(new IOSStartScreenRecordingOptions() .withTimeLimit(Duration.ofSeconds(600)).withVideoType("mpeg4").withVideoQuality(VideoQuality.MEDIUM) .enableForcedRestart());
@hemantbanafal Working with ‘mpeg4’. Thank you for help.
@RishuKS After few hours of searching I found solution for this. I am not familiar with kotlin but it should works similar to my code in python.
You have to set videoType = ‘h264’ argument in startRecordingScreen() method.
@dpgraham Do you mind publishing new beta with 4.x driver version?
Faced the same problem with
appium@1.11.1
Downgrade appium-android-driver to version4.7.0
resolved issue