def recvRtspReply(self):
    'Receive RTSP reply from the server.'
    while True:
        reply = self.rtspSocket.recv(1024)
        if reply:
            self.parseRtspReply(reply.decode('utf-8'))
        if (self.requestSent == self.TEARDOWN):
            self.rtspSocket.shutdown(socket.SHUT_RDWR)
            self.rtspSocket.close()
            break
Receive RTSP reply from the server.
def recvRtspReply(self):
    
    while True:
        reply = self.rtspSocket.recv(1024)
        if reply:
            self.parseRtspReply(reply.decode('utf-8'))
        if (self.requestSent == self.TEARDOWN):
            self.rtspSocket.shutdown(socket.SHUT_RDWR)
            self.rtspSocket.close()
            break