refine code, extract the rtmp jitter for hls