github地址:https://github.com/WPO-Foundation/xrecord
安裝方法:
git clone https://github.com/WPO-Foundation/xrecord
使用方法:
進入xrecord目錄 --進入bin目錄--打開xrecord即可
配置命令行啟動:
切換root用戶,配置全局命令 sudo -i #切換root命令 vim /etc/bashrc #編輯系統配置文件 增加一行命令:alias xrecord='/Users/zhaoxu/xrecord/xrecord/bin/xrecord',#配置全局命令別名,等號后邊路徑根據下載xrecord路徑保持一致 保存后,source bashrc,#永久激活命令別名
列出可用的捕獲錄像的設備
xrecord --quicktime --list
顯示結果:
問題:如果讓iPhone顯示在以上list列表中呢?
解決方案參考:https://github.com/WPO-Foundation/xrecord/issues/3
即:打開Mac的quicktime, 並選擇錄像設備是iPhone。然后輸入命令即可