Can't play iOS screen recording
See original GitHub issueThe problem
I’m trying to implement screen record on my tests and after implementing on Android with ease I’m facing some issues on iOS, namely I can’t play iOS screen record videos. File produced after stop recording seems to have data but can’t be played (maybe it is corrupted?).
Environment
- Appium version (or git revision) that exhibits the issue:
- Last Appium version that did not exhibit the issue (if applicable): /
- Desktop OS/version used to run Appium: MacOS 10.15.1
- Node.js version (unless using Appium.app|exe): v13.5.0
- Npm or Yarn package manager: Npm 6.13.4
- Mobile platform/version under test: iOS 13.2
- Real device or emulator/simulator: Real Device
- Appium CLI or Appium.app|exe: CLI v1.16.0 ffmpeg version 4.2.2 Java client 7.3.0
Details
Trying to open produced file on Quicktime returns error: The file isn’t compatible with QuickTime Player. Trying on VLC file contains 0 seconds. However, file has over 1mb, meaning that it contains data. I’ve tried tried using different VideoType codecs, with/out IOSStartScreenRecordingOptions and result is pretty much the same.
Link to Appium logs
https://gist.github.com/gfioretti/02c153c0f904cbcf205b7ebd3a546026
Code To Reproduce Issue [ Good To Have ]
Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.
Please git clone https://github.com/appium/appium and from the sample-code
directory, use one of your favourite languages and sample apps to reproduce the issue.
In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top GitHub Comments
This works for me
Go to Issue #13113. Change the VideoType to “h264”. Worked for me.