Appium script is running in LANDSCAPE mode in iPad but Video is capturing in PORTRAIT mode. Can you please let me know how to capture video in Landscape mode ? Please find the below code.
final BaseStartScreenRecordingOptions options = new IOSStartScreenRecordingOptions()
.withVideoType("mpeg4").withFps(20)
.withTimeLimit(Duration.ofMinutes(30));
((CanRecordScreen) driver).startRecordingScreen(options);
Currently the video options don’t have possibility to set video rotation parameter, but ffmpeg itself allows to do it. I’m going to add filter option, so it will be possible to provide transpose option like it is described in https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg
WebDriver is throwing exception after changing Minutes to Days in withTimeLimit option. Is it possible to configure minimum 2 hours in video recording option ?
Error message:
“Exception in thread “pool-1-thread-1” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The timeLimit value must be in range [1, 1800] seconds. The value of ‘86400’ has been passed instead.”
Code:-
final BaseStartScreenRecordingOptions options = new IOSStartScreenRecordingOptions()
.withVideoType(“mpeg4”)
.withFps(20) .withTimeLimit(Duration.ofDays(1));
((CanRecordScreen) driver).startRecordingScreen(options);