Search in sources :

Example 1 with M3u8DTO

use of com.zhouzifei.tool.dto.M3u8DTO in project simpleFS by shengdingbox.

the class M3u8DownloadFactory method main.

public static void main(String[] args) {
    M3u8DTO m3u8Download = M3u8DTO.builder().m3u8Url("https://cdn.oss-cn-hangzhou.myqcloud.com.xuetuiguang.cn/m3u8video/shouquan.m3u8").fileName("miaozhun").filePath("/Users/Dabao/mp4").retryCount("3").threadCount("3").timeout("5").build();
    M3u8DownloadFactory.M3u8Download instance = M3u8DownloadFactory.getInstance(m3u8Download);
    // 开始下载
    final String tsUrl = instance.runM3u8ToCloudTask(new FileProperties());
// final Set<String> tsSet = instance.getTsSet();
// System.out.println(tsSet);
}
Also used : FileProperties(com.zhouzifei.tool.config.FileProperties) M3u8DTO(com.zhouzifei.tool.dto.M3u8DTO)

Aggregations

FileProperties (com.zhouzifei.tool.config.FileProperties)1 M3u8DTO (com.zhouzifei.tool.dto.M3u8DTO)1