code: def call(self, method, *args, **params):
          
  
          transaction_id = params.get("transaction_id")
  
          if not transaction_id:
              self.transaction_id += 1
              transaction_id = self.transaction_id
  
          obj = params.get("obj")
  
          args = [method, transaction_id, obj] + list(args)
          args_encoded = map(lambda x: encode_amf(x), args)
          body = b"".join(args_encoded)
  
          format = params.get("format", PACKET_SIZE_MEDIUM)
          channel = params.get("channel", 0x03)
  
          packet = RTMPPacket(type=PACKET_TYPE_INVOKE,
                              format=format, channel=channel,
                              body=body)
  
          self.send_packet(packet)
  
          return RTMPCall(self, transaction_id)
docs: Calls a method on the server.