openatx / adbutils

pure python adb library for google adb service.
MIT License
761 stars 175 forks source link

Screenrecord not stopping #28

Closed eyeojeff closed 2 years ago

eyeojeff commented 4 years ago

For some reason it seems that the stop() method on the ScreenRecord class does not work. After sending a stop_and_pull call the function hangs until the 3 min timeout on the read_until_close step.

To reproduce:

import time
from adbutils import adb

device = adb.device()
recording = device.screenrecord(remote_path="/data/local/tmp/foo.mp4") 
time.sleep(5)
recording.stop_and_pull("foo.mp4")

This should take around 5 seconds to run, but takes a little over 3 minutes

codeskyblue commented 4 years ago

Looks like this method is not very stable

codeskyblue commented 2 years ago

duplicated #18