private static String getSchema(String url) {
        if (TextUtils.isEmpty(url)) {
            return "";
        }
        int index = url.indexOf("://");
        if (index != -1) {
            String result = url.substring(0, index);
            return result;
        }
        return "";
    }
parse network M3U8 file.

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