Skip to content

one2zero/AutoRecorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AutoRecorder

使用AVFoundation框架对通过USB连接到Mac上的iOS设备录屏

1.编译后的可执行程序拷贝到 /usr/local/bin/

2.在命令行启动服务 AutoRecord -u xxxxxxxxxxxxxxxxxx

-u iOS设备的uuid
-t 作为可选参数,选择0时通过file形式录制;选择1时,通过data帧形式录制。默认为0

3.通过其他服务发送指令到本机的9000端口,启动或者停止录制服务

以curl为例:

启动 curl -X POST '-H "Content-Type: application/json"' -d "/Users/xxxx/Desktop/test.mov" http://127.0.0.1:9000/start

"/Users/xxxx/Desktop/test.mov"为录制文件的存储路径

停止 curl -X GET '-H "Content-Type: application/json"' http://127.0.0.1:9000/stop

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published