public static String parseStringAttr(String line, Pattern pattern) {
        if (pattern == null)
            return null;
        Matcher matcher = pattern.matcher(line);
        if (matcher.find() && matcher.groupCount() == 1) {
            return matcher.group(1);
        }
        return null;
    }
parse network M3U8 file.

@param videoUrl
@return
@throws IOException
library/src/main/java/com/jeffmony/downloader/m3u8/M3U8Utils.java