def parseRtspReply(self, data):
    'Parse the RTSP reply from the server.'
    lines = str(data).split('\n')
    seqNum = int(lines[1].split(' ')[1])
    if (seqNum == self.rtspSeq):
        session = int(lines[2].split(' ')[1])
        if (self.sessionId == 0):
            self.sessionId = session
        if (self.sessionId == session):
            if (int(lines[0].split(' ')[1]) == 200):
                if (self.requestSent == self.SETUP):
                    self.state = self.READY
                    self.openRtpPort()
                elif (self.requestSent == self.PLAY):
                    self.state = self.PLAYING
                elif (self.requestSent == self.PAUSE):
                    self.state = self.READY
                    self.playEvent.set()
                elif (self.requestSent == self.TEARDOWN):
                    self.state = self.INIT
                    self.teardownAcked = 1
Parse the RTSP reply from the server.
def parseRtspReply(self, data):
    
    lines = str(data).split('\n')
    seqNum = int(lines[1].split(' ')[1])
    if (seqNum == self.rtspSeq):
        session = int(lines[2].split(' ')[1])
        if (self.sessionId == 0):
            self.sessionId = session
        if (self.sessionId == session):
            if (int(lines[0].split(' ')[1]) == 200):
                if (self.requestSent == self.SETUP):
                    self.state = self.READY
                    self.openRtpPort()
                elif (self.requestSent == self.PLAY):
                    self.state = self.PLAYING
                elif (self.requestSent == self.PAUSE):
                    self.state = self.READY
                    self.playEvent.set()
                elif (self.requestSent == self.TEARDOWN):
                    self.state = self.INIT
                    self.teardownAcked = 1