public String getIndexName() {
        String suffixName = "";
        if (!TextUtils.isEmpty(mUrl)) {
            Uri uri = Uri.parse(mUrl);
            String fileName = uri.getLastPathSegment();
            if (!TextUtils.isEmpty(fileName)) {
                fileName = fileName.toLowerCase();
                suffixName = VideoDownloadUtils.getSuffixName(fileName);
            }
        }
        return VideoDownloadUtils.SEGMENT_PREFIX + mIndex + suffixName;
    }
if ts is local file, name is video_{index}.ts
if ts is network resource , name is starting with http or https.

@param name
library/src/main/java/com/jeffmony/downloader/m3u8/M3U8Seg.java