Set the mode of the video stream (input/output). Args: mode: 0 for input, 1 for output. Returns: Current mode value (0=input, 1=output).
(self, mode)
| 84 | time.sleep(0.05) |
| 85 | |
| 86 | def setMode(self, mode): |
| 87 | """ |
| 88 | Set the mode of the video stream (input/output). |
| 89 | Args: |
| 90 | mode: 0 for input, 1 for output. |
| 91 | Returns: |
| 92 | Current mode value (0=input, 1=output). |
| 93 | """ |
| 94 | self.conn.send([self.SET_MODE, mode]) |
| 95 | current_mode = self.conn.recv() |
| 96 | |
| 97 | return current_mode |
| 98 | |
| 99 | def setDevice(self, device): |
| 100 | """ |