def handle_packet(self, packet):
        """Lets librtmp look at a packet and send a response
           if needed."""

        if not isinstance(packet, RTMPPacket):
            raise ValueError("A RTMPPacket argument is required")

        return librtmp.RTMP_ClientPacket(self.rtmp, packet.packet)
def handle_packet ( self , packet ) : if not isinstance ( packet , RTMPPacket ) : raise ValueError ( "A RTMPPacket argument is required" ) return librtmp . RTMP_ClientPacket ( self . rtmp , packet . packet )
Lets librtmp look at a packet and send a response
           if needed.