README.md 3.3 KB
Newer Older
S
readme  
shuyu 已提交
1
## 基于[IJKPlayer](https://github.com/Bilibili/ijkplayer),实现了多功能的视频播放器。
S
readme  
shuyu 已提交
2

S
readme  
shuyu 已提交
3 4 5 6 7 8
* **支持基本的拖动,声音、亮度调节。**
* **支持边播边缓存,使用了[AndroidVideoCache](https://github.com/danikula/AndroidVideoCache)。**
* **支持视频本身自带rotation的旋转。**
* **增加了重力旋转与手动旋转的同步支持。**
* **支持列表播放。**
* **直接添加控件为封面。**
S
shuyu 已提交
9
* **全屏和播放等的动画效果。**
S
readme  
shuyu 已提交
10 11 12
* **列表的全屏效果优化,多种配置模式。**
* **列表的小窗口播放,可拖动。**
* **网络视频加载速度。**
S
shuyu 已提交
13
* **锁定/解锁全屏点击功能。**
S
readme  
shuyu 已提交
14
* **6.0以上支持快播和慢播。**
S
readme  
shuyu 已提交
15
* **调整显示比例:默认、16:9、4:3。**
S
1.4.4  
shuyu 已提交
16
* **调整不同清晰度的支持。**
S
readme  
shuyu 已提交
17
* **支持IJKPlayer和EXOPlayer切换。**
S
shuyu 已提交
18
* **进度条小窗口预览(测试)。**
S
readme  
shuyu 已提交
19 20
* **Https支持。**
* **连续播放一个列表的视频。**
S
shuyu 已提交
21
* **支持全屏与非全屏两套布局切换**
S
readme  
shuyu 已提交
22

S
shuyu 已提交
23
[![](https://jitpack.io/v/CarGuo/GSYVideoPlayer.svg)](https://jitpack.io/#CarGuo/GSYVideoPlayer)
S
readme  
shuyu 已提交
24
[![Build Status](https://travis-ci.org/CarGuo/GSYVideoPlayer.svg?branch=master)](https://travis-ci.org/CarGuo/GSYVideoPlayer)
S
shuyu 已提交
25

S
readme  
shuyu 已提交
26 27 28 29 30 31 32 33 34 35 36 37
#### QQ群,有兴趣的可以进来,无底线欢迎:174815284 。

### [*** 使用说明和接口文档入口 ***](https://github.com/CarGuo/GSYVideoPlayer/wiki)
 
### [*** 版本更新说明入口 ***](https://github.com/CarGuo/GSYVideoPlayer/blob/master/UPDATE_VERSION.md)
### [*** 问题集锦入口 ***](https://github.com/CarGuo/GSYVideoPlayer/blob/master/QUESTION.md)
### [*** IJKPlayer问题入口 ***](http://www.jianshu.com/p/220b00d00deb) 
### [*** IJKPlayer编译自定义SO入口 ***](http://www.jianshu.com/p/bd289e25d272) 
### [*** 简书详解入口 ***](http://www.jianshu.com/p/9fe377dd9750)

 
在project下的build.gradle添加
S
readme  
shuyu 已提交
38
```
S
shuyu 已提交
39 40 41 42 43 44
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
S
readme  
shuyu 已提交
45
```
S
readme  
shuyu 已提交
46

S
readme  
shuyu 已提交
47 48
在module下的build.gradle添加

S
readme  
shuyu 已提交
49
```
S
readme  
shuyu 已提交
50
dependencies {
S
shuyu 已提交
51
        compile 'com.github.CarGuo:GSYVideoPlayer:v1.5.0'
S
readme  
shuyu 已提交
52
}
S
readme  
shuyu 已提交
53
```
S
shuyu 已提交
54
 
S
shuyu 已提交
55
## 效果,录屏下的屏幕旋转和实际有些出入
S
readme  
shuyu 已提交
56

S
fix img  
shuyu 已提交
57 58 59
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/01.jpg" width="218px" height="120px"/>
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/02.jpg" width="120px" height="218px"/>
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/03.jpg" width="120px" height="218px"/>
S
1.1.5  
shuyu 已提交
60
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/04.jpg" width="120px" height="218px"/>
S
readme  
shuyu 已提交
61
 
S
1.1.5  
shuyu 已提交
62

S
readme  
shuyu 已提交
63
* ### 1、打开一个播放
S
shuyu 已提交
64
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/01.gif" width="240px" height="426px"/>
S
1.1.5  
shuyu 已提交
65

S
readme  
shuyu 已提交
66
* ### 2、列表/详情模式
S
readme  
shuyu 已提交
67
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/02.gif" width="240px" height="426px"/>
S
readme  
shuyu 已提交
68
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/05.gif" width="240px" height="426px"/>
S
shuyu 已提交
69 70
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/04.gif" width="240px" height="426px"/>

S
shuyu 已提交
71 72 73
* ### 3、进度条小窗口预览
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/07.gif" width="426px" height="240px"/>

S
readme  
shuyu 已提交
74 75

## 混淆
S
shuyu 已提交
76

S
shuyu 已提交
77 78 79
```
-keep class tv.danmaku.ijk.** { *; }
-dontwarn tv.danmaku.ijk.**
80 81
-keep class com.shuyu.gsyvideoplayer.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.**
S
todo  
shuyu 已提交
82
```