Skip to content

lushunming/play-while-download

Repository files navigation

play-while-downlaod 边下边播

实现视频边下边播,支持m3u8和mp4(其他照道理支持content-range的都支持)

实现原理

Mp4:利用在线播放支持Content-range,代理服务器多协程下载,每个协程下载1M,不断往后下载,顺序返回实现流畅播放(比如某些限速网盘) m3u8:下载M3u8文件,构建本地M3u8文件,返回给播放器,使播放器走代理服务器获取本地下载的TS文件片段。后台下载协程按照顺序多协程下载文件(适合某些总卡顿的网站)

用法

下载压缩包安装,会启动内置服务http://localhost:3800 配合https://github.com/lushunming/m3u8-dl-sniffer 浏览器插件,可以直接获取视频地址,一键发送到本服务中 播放依赖VLC播放器(https://www.videolan.org/vlc/),请先下载安装

截图

img.png

Features

Here's a list of features included in this project:

Name Description
CORS Enables Cross-Origin Resource Sharing (CORS)
Routing Provides a structured routing DSL
Swagger Serves Swagger UI for your project
Call Logging Logs client requests
Content Negotiation Provides automatic content conversion according to Content-Type and Accept headers
GSON Handles JSON serialization using GSON library
KMP 多平台桌面版

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages