Configure the video stream parameters on the server. Args: frame_width: Width of the video frame. frame_height: Height of the video frame. frame_rate: Frame rate in frames per second. color_format: Color format code. Returns:
(self, frame_width, frame_height, frame_rate, color_format)
| 123 | return filename_valid |
| 124 | |
| 125 | def configureStream(self, frame_width, frame_height, frame_rate, color_format): |
| 126 | """ |
| 127 | Configure the video stream parameters on the server. |
| 128 | Args: |
| 129 | frame_width: Width of the video frame. |
| 130 | frame_height: Height of the video frame. |
| 131 | frame_rate: Frame rate in frames per second. |
| 132 | color_format: Color format code. |
| 133 | Returns: |
| 134 | True if configuration is valid, False otherwise. |
| 135 | """ |
| 136 | self.conn.send([self.STREAM_CONFIGURE, frame_width, frame_height, frame_rate, color_format]) |
| 137 | configuration_valid = self.conn.recv() |
| 138 | |
| 139 | return configuration_valid |
| 140 | |
| 141 | def enableStream(self): |
| 142 | """ |