refine code, extract rtmp url