All Projects → Jay-Goo → M3u8downloader

Jay-Goo / M3u8downloader

M3U8下载器,支持多线程下载、断点续传、后台下载、本地播放解决方案、m3u8加密解决方案

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to M3u8downloader

IPtv
A collection of private IPtv list as well as Third-party IPtv list. (not updated anymore)
Stars: ✭ 16 (-94.98%)
Mutual labels:  m3u8
node-m3u8parse
Structural parsing of Apple HTTP Live Streaming .m3u8 format
Stars: ✭ 24 (-92.48%)
Mutual labels:  m3u8
m3u8
Parse and generate m3u8 playlists for Apple HTTP Live Streaming (HLS) in Ruby.
Stars: ✭ 96 (-69.91%)
Mutual labels:  m3u8
larafilm
Create your own video on demand service by Laravel.
Stars: ✭ 30 (-90.6%)
Mutual labels:  m3u8
p2p-cdn-sdk-android
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 39 (-87.77%)
Mutual labels:  m3u8
php-m3u8
An M3U8 parser / dumper in PHP.
Stars: ✭ 130 (-59.25%)
Mutual labels:  m3u8
m3u8-downloader
Download the ts files according to the given m3u8 file.
Stars: ✭ 21 (-93.42%)
Mutual labels:  m3u8
SharpGrabber
Download from YouTube, Vimeo, PornHub, HLS (M3U8 files) with .NET and JavaScript, Library and desktop app for downloading high quality media
Stars: ✭ 138 (-56.74%)
Mutual labels:  m3u8
hls m3u8
HLS(RFC8216) m3u8 parser/generator
Stars: ✭ 40 (-87.46%)
Mutual labels:  m3u8
BlueSkyTv
简单的安卓TV 超纯净
Stars: ✭ 17 (-94.67%)
Mutual labels:  m3u8
m3u8ToMP4
iOS demo,avplayer play m3u8 .ts file
Stars: ✭ 22 (-93.1%)
Mutual labels:  m3u8
iptv-m3u-player
项目iptv-m3u-maker衍生项目,利用已分析出的数据进行播放的桌面端app
Stars: ✭ 73 (-77.12%)
Mutual labels:  m3u8
useetv-playlist
No description or website provided.
Stars: ✭ 41 (-87.15%)
Mutual labels:  m3u8
m3u8
m3u8 file downloader library and chrome & firefox extensions/add-on's
Stars: ✭ 67 (-79%)
Mutual labels:  m3u8
JT1078Gateway
基于Pipeline实现的JT1078Gateway支持TCP/UDP,目前只支持http-flv、ws-flv、hls三种拉流方式
Stars: ✭ 50 (-84.33%)
Mutual labels:  m3u8
YouTube to m3u
Grabs m3u from YouTube live.
Stars: ✭ 95 (-70.22%)
Mutual labels:  m3u8
cordova-plugin-tencent-liteav
A cordova plugin for video playing with Tencent's LiteAV SDK. Support RTMP/HLS/FLV/MP4.
Stars: ✭ 24 (-92.48%)
Mutual labels:  m3u8
ustvgo to m3u
Grabs m3u links from ustvgo.tv
Stars: ✭ 35 (-89.03%)
Mutual labels:  m3u8
LemonDeer
Make m3u8 parse and video download as white magic.
Stars: ✭ 38 (-88.09%)
Mutual labels:  m3u8
m3ufilter
ABANDONED - A tool that allows to filter specific items from an m3u filter designed for IPTV.
Stars: ✭ 46 (-85.58%)
Mutual labels:  m3u8

M3U8Downloader

M3U8下载器,支持多线程下载、断点续传、后台下载、本地播放解决方案、m3u8加密解决方案

依赖

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
	
dependencies {
	        compile 'com.github.Jay-Goo:M3U8Downloader:V1.0.8'
	}

用法

配置

  • default Config:
M3U8DownloaderConfig
                .build(getApplicationContext())
                .setSaveDir(dirPath)
                ;
  • Custom Config:
M3U8DownloaderConfig
                .build(getApplicationContext())
                .setSaveDir(dirPath)
                .setConnTimeout(10000)
                .setReadTimeout(10000)
                .setThreadCount(3)
                .setDebugMode(true)
                ;

单例

M3U8Downloader.getInstance()

下载

download(String url)

暂停

pause(String url)

取消任务、取消任务并删除文件缓存

cancel(String url)

cancelAndDelete(final String url, final OnDeleteTaskListener listener)

下载监听

        M3U8Downloader.getInstance().setOnM3U8DownloadListener(onM3U8DownloadListener);

private OnM3U8DownloadListener onM3U8DownloadListener = new OnM3U8DownloadListener() {

        @Override
        public void onDownloadItem(M3U8Task task, long itemFileSize, int totalTs, int curTs) {
            super.onDownloadItem(task, itemFileSize, totalTs, curTs);
            //下载切片监听,非UI线程
        }

        @Override
        public void onDownloadSuccess(M3U8Task task) {
            super.onDownloadSuccess(task);
            //下载成功
        }

        @Override
        public void onDownloadPending(M3U8Task task) {
            super.onDownloadPending(task);
            //加入队列,任务挂起
        }

        @Override
        public void onDownloadPause(M3U8Task task) {
            super.onDownloadPause(task);
            //任务暂停
        }

        @Override
        public void onDownloadProgress(final M3U8Task task) {
            super.onDownloadProgress(task);
            //下载进度,非UI线程
        }

        @Override
        public void onDownloadPrepare(final M3U8Task task) {
            super.onDownloadPrepare(task);
            //准备下载
        }

        @Override
        public void onDownloadError(final M3U8Task task, Throwable errorMsg) {
            super.onDownloadError(task, errorMsg);
            //下载错误,非UI线程
        }

    };

M3U8Task

    private String url; //下载链接
    private int state = M3U8TaskState.DEFAULT; //下载状态
    private long speed; //下载速度
    private float progress; //下载进度
    private M3U8 m3U8; //下载成功后得到

加密

加密后视频切片文件名乱序,并移除后缀。

//设置密匙
M3U8Downloader.getInstance().setEncryptKey(encryptKey);
//获取随机密匙
AES128Utils.getAESKey()

更多加密解密 M3U8EncryptHelper

本地播放

普通未加密请使用 M3U8HttpServer

加密解密请使用 M3U8EncryptHelper

具体使用样例参考 FullScreenActivity

联系我

  • Email: [email protected]
  • QQ Group: 573830030 有时候工作很忙没空看邮件和Issue,大家可以通过QQ群联系我

一杯咖啡

大家都知道开源是件很辛苦的事情,这个项目也是我工作之余完成的,平时工作很忙,但大家提的需求基本上我都尽量满足,如果这个项目帮助你节省了大量时间,你很喜欢,你可以给我一杯咖啡的鼓励,不在于钱多钱少,关键是你的这份鼓励所带给我的力量~

致谢

huangdali - M3U8Manger

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].