refine rtmp client, add comments for the dumps_packets()