1 Star 2 Fork 1

ding / 断点续传

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

断点续传

介绍

前端H5 或者 安卓 与 web后端进行断点续传-上传 都是使用的是分片上传

  1. 已完成:安卓 与 web后端 进行断点续传(websocket 及 http方式)
  2. 将要进行:前端H5 与 web后端 断点续传(websocket 及 http方式)

软件架构

WEB端在 WEB目录下 ,使用的是springboot快速搭建起来的

websocket 断点续传在 model/websocket 目录下

http 断点续传在 model/demo 目录下

APP端 在 APP目录下,也实现了 websocket 和 http两种方式的 断点续传的上传方式

websocket 方式 内容在WebScoektDemoActivityHttpBreakpointUtil

http 方式 主要内容是:HttpDemoActivityWsUploadFileManager

简易说明

  1. websocket的相关配置在 config 目录下

  2. 安卓端,修改断点上传方式修改 AndroidManifest.xml

    1. 使用 http方式断点上传
    <activity android:name=".HttpDemoActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    1. 使用 websocket 方式断点续传
    <activity android:name=".HttpDemoActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
MIT License Copyright (c) 2021 ding Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

前端H5 或者 安卓 与 web后端进行断点续传 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/ding158/breakpoint-continuation.git
git@gitee.com:ding158/breakpoint-continuation.git
ding158
breakpoint-continuation
断点续传
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891