appium / appium/python-client

appium ios Recording the screen, the saved mp4 file cannot be opened

未关闭
#900 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
1.8k
派生
570
平均合并
1 天 10 小时
30 天内合并 PR
24

描述

The problem

appium ios Recording the screen, the saved mp4 file cannot be opened

Environment

  • Appium version (or git revision) that exhibits the issue:2.0.1
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: windows
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test:ios
  • Real device or emulator/simulator:device
  • Appium CLI or Appium.app|exe:

Details

Use appium to connect tidevice to run in windows environment
The mp4 file saved by using the start_recording_screen method to record the screen cannot be opened

Link to Appium Logs

Create a GIST which is a paste of your full Appium logs, and link them here.

Code To reproduce issue

options = {
'videoQuality': 'low',
'timeLimit': 600,
}
self.driver.start_recording_screen(**options)
sleep(3)
recording_data = self.driver.stop_recording_screen()
with open(r'F:\recorded_video.mp4', 'wb') as file:
file.write(base64.b64decode(recording_data))

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Python 客户端入口 start_recording_screen 和 stop_recording_screen 开始,然后使用提供的选项和保存路径,在 Windows 上通过 tidevice 复现 iOS 录制流程。检查 Appium 日志和 recording_data 的处理;当保存的 recorded_video.mp4 能够成功打开时即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
mobile-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。