Request a video frame from the server. Returns: tuple: (data, eos) where data is a Bytearray of frame data and eos is a Boolean indicating end-of-stream.
(self)
| 161 | return stream_active |
| 162 | |
| 163 | def readFrame(self): |
| 164 | """ |
| 165 | Request a video frame from the server. |
| 166 | Returns: |
| 167 | tuple: (data, eos) where data is a Bytearray of frame data and eos is a Boolean indicating end-of-stream. |
| 168 | """ |
| 169 | self.conn.send([self.FRAME_READ]) |
| 170 | data = self.conn.recv_bytes() |
| 171 | eos = self.conn.recv() |
| 172 | |
| 173 | return data, eos |
| 174 | |
| 175 | def writeFrame(self, data): |
| 176 | """ |