def Start(self):
     """Start recording video."""
     self._recorder_stdout = tempfile.mkstemp()[1]
     self._recorder = cmd_helper.Popen(self._args,
                                       stdout=open(self._recorder_stdout,
                                                   'w'))
     if not self._device.GetPids('screenrecord'):
         raise RuntimeError(
             'Recording failed. Is your device running Android '
             'KitKat or later?')
Exemplo n.º 2
0
 def Start(self):
     """Start recording video."""
     _EnsureHostDirectory(self._host_file)
     self._recorder_stdout = tempfile.mkstemp()[1]
     self._recorder = cmd_helper.Popen(self._args,
                                       stdout=open(self._recorder_stdout,
                                                   'w'))
     self._recorder_pids = self._adb.ExtractPid('screenrecord')
     if not self._recorder_pids:
         raise RuntimeError(
             'Recording failed. Is your device running Android '
             'KitKat or later?')