code: def encode(self, version, padding, extension, cc, seqnum, marker, pt, ssrc, payload):
  		
  
  		timestamp = int(time())
  		print("timestamp: " + str(timestamp))
  		self.header = bytearray(HEADER_SIZE)
  		#--------------
  		# TO COMPLETE
  		#--------------
  		# Fill the header bytearray with RTP header fields
  
  		#RTP-version filed(V), must set to 2
  		#padding(P),extension(X),number of contributing sources(CC) and marker(M) fields all set to zero in this lab
  
  		#Because we have no other contributing sources(field CC == 0),the CSRC-field does not exist
  		#Thus the length of the packet header is therefore 12 bytes
  
  
  			#Above all done in ServerWorker.py
  
  		# ...
  		#header[] =
  
  		#header[0] = version + padding + extension + cc + seqnum + marker + pt + ssrc
  		self.header[0] = version << 6
  		self.header[0] = self.header[0] | padding << 5
  		self.header[0] = self.header[0] | extension << 4
  		self.header[0] = self.header[0] | cc
  		self.header[1] = marker << 7
  		self.header[1] = self.header[1] | pt
  
  		self.header[2] = seqnum >> 8
  		self.header[3] = seqnum
  
  		self.header[4] = (timestamp >> 24) & 0xFF
  		self.header[5] = (timestamp >> 16) & 0xFF
  		self.header[6] = (timestamp >> 8) & 0xFF
  		self.header[7] = timestamp & 0xFF
  
  		self.header[8] = ssrc >> 24
  		self.header[9] = ssrc >> 16
  		self.header[10] = ssrc >> 8
  		self.header[11] = ssrc
  
  
  		# Get the payload from the argument
  		# self.payload = ...
  		self.payload = payload
docs: Encode the RTP packet with header fields and payload.