openstf / ios-minicap

iOS Minicap provides a socket interface for streaming realtime screen capture data out of iOS devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why WDA don't work with iOS-minicap ?

Nicolas-Menettrier opened this issue · comments

What can I do to make that work (or what part of the code I need to take a look) ?

start ios_minicap first, after you see the image, start WDA

When AVFoundation streaming is started, a "magic usb command" is sent to the IOS device that changes the USB mode of it. That essentially resets all current USB connections including WDA, and makes WDA stop. This happens when you start ios-minicap.

As stated above, starting ios_minicap first and then WDA after works; at least until video streaming stops for whatever reason.

If video streaming stops, it seems that the IOS device resets again after some time back to "normal non streaming mode"; then when it starts again it will break WDA again.

Essentially, for ios_minicap to work in a stable fashion video must always be streaming.

I've investigated manually triggering the "usb streaming video" mode, but it doesn't stay locked in that mode without actually reading out the video.