# 断点续传
**Repository Path**: hejunjieoscgit/breakpoint-continuation
## Basic Information
- **Project Name**: 断点续传
- **Description**: 前端H5 或者 安卓 与 web后端进行断点续传
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-08-17
- **Last Updated**: 2021-08-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 断点续传
#### 介绍
前端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 方式 内容在`WebScoektDemoActivity` 及 `HttpBreakpointUtil`
> http 方式 主要内容是:`HttpDemoActivity` 及 `WsUploadFileManager`
#### 简易说明
1. websocket的相关配置在 `config ` 目录下
2. 安卓端,修改断点上传方式修改 `AndroidManifest.xml`
1. 使用 http方式断点上传
> ```xml
>
>
>
>
>
>
> ```
2. 使用 websocket 方式断点续传
> ```xml
>
>
>
>
>
>
> ```
3.