MCPcopy Create free account
hub / github.com/ARM-software/AVH / setMode

Method setMode

interface/vstream/python/vsi_video.py:86–97  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

wrCONTROLFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected