DeviceFarmer / minicap

Stream real-time screen capture data out of Android devices.
Other
294 stars 76 forks source link

Screen getting freeze randomly during streaming #64

Open KishanDasani opened 2 months ago

KishanDasani commented 2 months ago

What is the issue or idea you have? I am using some android devices with stf. As can be seen in the attached video, when using a device and performing some actions, screen gets freezed. It will reflect the result of performed action either after a delay, or when screenshot is captured, or sometimes it'll never reflect but only when some other action is performed.

Key points to focus in the video:

Device info: Samsung Galaxy F13, Android 14 Also happening with other Android 14 devices as Motorola g 5G, Google Pixel 7, Samsung Galaxy Tab S10+

https://github.com/user-attachments/assets/a1344529-8ff9-4687-8239-42d5b80fd098

KishanDasani commented 3 weeks ago

Have observed that this issue occurs only when we are using the device through stf, where touch is supported via minitouch.

if the device is enrolled to stf, and we perform actions directly on device, it reflects immediately on stf screen.

ImageReader's onImageAvailableListener gets invoked late when device is being used from stf in the scenarios listed above.

I'm not able to figure out if this issue is of stf, or minicap, or minitouch.

@koral-- can you look at this one please?