def __init__(self, sock, server, address, content_type, request_parser, path=None, burst_size=None, on_demand=False, keepalive=False): StreamSource.__init__(self, sock, server, address, content_type, request_parser, path, burst_size, on_demand, keepalive) # Initial buffer data self.buffer_data = request_parser.body # The FLV stream header self.stream_header = None # These are the initial setup tags we send out to each new # client self.initial_tags = collections.deque() # Which type of initial tag we already got self.got_initial_meta = self.got_initial_audio = self.got_initial_video = False # Our current packets group self.packets_group = collections.deque() # Our current "burst" packets groups list self.burst_groups = collections.deque() # List of buffers for the "burst" packets self.burst_groups_data = collections.deque() # At startup we want to parse the stream header self.handle_data = self.handle_header
def __init__(self, sock, server, address, content_type, request_parser, path = None, burst_size = None, on_demand = False, keepalive = False): StreamSource.__init__(self, sock, server, address, content_type, request_parser, path, burst_size, on_demand, keepalive) # Initial buffer data self.buffer_data = request_parser.body # The FLV stream header self.stream_header = None # These are the initial setup tags we send out to each new # client self.initial_tags = collections.deque() # Which type of initial tag we already got self.got_initial_meta = self.got_initial_audio = self.got_initial_video = False # Our current packets group self.packets_group = collections.deque() # Our current "burst" packets groups list self.burst_groups = collections.deque() # List of buffers for the "burst" packets self.burst_groups_data = collections.deque() # At startup we want to parse the stream header self.handle_data = self.handle_header