support HLS, refine the dir use app