Comments (13)
下载地址: http://qtv.soshane.com/youku.php?vid=OK0MmL3R93G/NqkCFv076tZqUjEvo2V5qzkjmHC00nY=&tudou=0&tv=&db=
from m3u8manger.
v2.x之后可以断点续传哦
from m3u8manger.
@marscl 目前只支持ts文件名字为"时间戳.ts"格式的哦,其他格式的建议下载源码修改一下解析规则即可
from m3u8manger.
好的 谢谢
from m3u8manger.
直接合并好像不能播放
from m3u8manger.
文件名字的后缀必须是ts哦
from m3u8manger.
只能播放1分钟左右,总的时间会显示有130分钟,实际时间为40分钟
from m3u8manger.
setClearTempDir用这个设置不清楚临时目录,去sd卡里面的m3u8temp中看看文件是否下载成功
from m3u8manger.
文件全部下载了,单个视频都可以播放。
from m3u8manger.
网上说要搭本地服务器啥的。
from m3u8manger.
合并用的是这段代码哦,我这面是没有问题的,你可以手动调用这个合并你一下临时文件里面的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.
搭建本地服务器是另一种实现方式了,我用的是合并
from m3u8manger.
谢谢了,还是没解决,可能是下载的视频问题
from m3u8manger.
Related Issues (20)
- 能检测是否已推流吗? HOT 1
- 可以直接播放 网络m3u8? HOT 1
- get basepath wrong
- 感觉我们俩的项目有点重啊,可以看下我的项目
- 下载长视频,总时长显示不正确,音画不同步 HOT 1
- 获取特殊的m3u8的地址,会出现停止运行
- 希望能增加多任务的demo HOT 1
- 如何获取正在进行的下载任务信息
- 下载好的视频怎么播放啊 HOT 1
- 无法下载这个地址 HOT 1
- 下载失败,切片Url需要去重 HOT 1
- 你好,下载m3u8文件是没问题,能否增加合并ts文件和播放ts文件,播放ts文件的原理是什么。像腾讯视频一样 HOT 2
- 点击合并按钮直接崩溃退出
- 没用release是最*的,有没有大佬编译一个最新版的apk HOT 1
- 如何截取下载呀?
- 能设置header吗?
- 好像对带加密key的m3u8下载支持不太友好 HOT 2
- 下载问题
- 我试了下,有点问题,大神 HOT 1
- 奔溃
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m3u8manger.