Code Monkey home page Code Monkey logo

Comments (13)

marscl avatar marscl commented on May 23, 2024

下载地址: http://qtv.soshane.com/youku.php?vid=OK0MmL3R93G/NqkCFv076tZqUjEvo2V5qzkjmHC00nY=&tudou=0&tv=&db=

from m3u8manger.

huangdali avatar huangdali commented on May 23, 2024

v2.x之后可以断点续传哦

from m3u8manger.

huangdali avatar huangdali commented on May 23, 2024

@marscl 目前只支持ts文件名字为"时间戳.ts"格式的哦,其他格式的建议下载源码修改一下解析规则即可

from m3u8manger.

marscl avatar marscl commented on May 23, 2024

好的 谢谢

from m3u8manger.

marscl avatar marscl commented on May 23, 2024

直接合并好像不能播放

from m3u8manger.

huangdali avatar huangdali commented on May 23, 2024

文件名字的后缀必须是ts哦

from m3u8manger.

marscl avatar marscl commented on May 23, 2024

只能播放1分钟左右,总的时间会显示有130分钟,实际时间为40分钟

from m3u8manger.

huangdali avatar huangdali commented on May 23, 2024

setClearTempDir用这个设置不清楚临时目录,去sd卡里面的m3u8temp中看看文件是否下载成功

from m3u8manger.

marscl avatar marscl commented on May 23, 2024

文件全部下载了,单个视频都可以播放。

from m3u8manger.

marscl avatar marscl commented on May 23, 2024

网上说要搭本地服务器啥的。

from m3u8manger.

huangdali avatar huangdali commented on May 23, 2024

合并用的是这段代码哦,我这面是没有问题的,你可以手动调用这个合并你一下临时文件里面的ts,或者自己写一个合并的方法看看合并之后是否还有问题

  /**
     * 将M3U8对象的所有ts切片合并为1个
     *
     * @param m3u8
     * @param tofile
     * @throws IOException
     */
    public static void merge(M3U8 m3u8, String tofile, String basePath) throws IOException {
        List<M3U8Ts> mergeList = getLimitM3U8Ts(m3u8);
        File saveFile = new File(tofile);
        FileOutputStream fos = new FileOutputStream(saveFile);
        File file;
        for (M3U8Ts ts : mergeList) {
            file = new File(basePath, ts.getFile());
            if (file.isFile() && file.exists()) {
                IOUtils.copyLarge(new FileInputStream(file), fos);
            }
        }
        fos.close();
    }

from m3u8manger.

huangdali avatar huangdali commented on May 23, 2024

搭建本地服务器是另一种实现方式了,我用的是合并

from m3u8manger.

marscl avatar marscl commented on May 23, 2024

谢谢了,还是没解决,可能是下载的视频问题

from m3u8manger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.