すべての部分が文字列であっても、次の python エラーが発生します
request = str(self.SETUP) + " " + str(self.fileName) + "RTSP/1.0";
TypeError: unsupported operand type(s) for +: 'int' and 'str'
コードのセクション全体:
if requestCode == self.SETUP and self.state == self.INIT:
threading.Thread(target=self.recvRtspReply).start()
# Update RTSP sequence number.
self.rtspSeq = self.rtspSeq + 1
# Write the RTSP request to be sent.
request = str(self.SETUP) + " " + str(self.fileName) + "RTSP/1.0"
# Keep track of the sent request.
self.requestSent = request