Set the filename for the video stream on the server. Args: filename: The name of the file to set on the server. Returns: True if the filename is valid, False otherwise.
(self, filename)
| 110 | return device_index |
| 111 | |
| 112 | def setFilename(self, filename): |
| 113 | """ |
| 114 | Set the filename for the video stream on the server. |
| 115 | Args: |
| 116 | filename: The name of the file to set on the server. |
| 117 | Returns: |
| 118 | True if the filename is valid, False otherwise. |
| 119 | """ |
| 120 | self.conn.send([self.SET_FILENAME, getcwd(), filename]) |
| 121 | filename_valid = self.conn.recv() |
| 122 | |
| 123 | return filename_valid |
| 124 | |
| 125 | def configureStream(self, frame_width, frame_height, frame_rate, color_format): |
| 126 | """ |