code: def http_stream(url, chunk=4096):
      
      ret = requests.get(url, stream=True)
      ret.raise_for_status()
      for data in ret.iter_content(chunk):
          yield data
docs: Generate stream for a given record video.
  
      :param chunk: chunk bytes to read per time
      :returns generator object