From 02ec35f2beb7badd4de727bff6f466648c84a253 Mon Sep 17 00:00:00 2001 From: guoshuyu <359369982@qq.com> Date: Mon, 8 Feb 2021 13:14:30 +0800 Subject: [PATCH] update ci & doc --- .travis.yml | 4 ++-- doc/DEPENDENCIES.md | 54 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 519248b..84edcf8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,8 @@ android: components: - platform-tools - tools - - build-tools-28.0.3 - - android-28 + - build-tools-30.0.1 + - android-30 - extra-android-support - extra-android-m2repository before_install: diff --git a/doc/DEPENDENCIES.md b/doc/DEPENDENCIES.md index 0049521..e20cbc0 100644 --- a/doc/DEPENDENCIES.md +++ b/doc/DEPENDENCIES.md @@ -40,14 +40,66 @@ C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。 implementation 'com.shuyu:gsyVideoPlayer-java:8.1.0' //是否需要ExoPlayer模式 -implementation 'com.shuyu:GSYVideoPlayer-exo2:8.1.0' +implementatcon 'com.shuyu:GSYVideoPlayer-exo2:8.1.0' //更多ijk的编码支持 implementation 'com.shuyu:gsyVideoPlayer-ex_so:8.1.0' ``` +-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ### 2、JitPack引入方法 +#### First、在project下的build.gradle添加 +``` +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` + +#### Sencond、在module下的build.gradle添加 + +**你可以选择下面三种的其中一种,在module下的build.gradle添加。** + +#### A、直接引入 +``` +//完整版引入 +implementatcon 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.1.0' + +``` + +#### B、添加java和你想要的so支持: + +``` + +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.1.0' + + +//是否需要ExoPlayer模式 +implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v8.1.0' + +//根据你的需求 +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v8.1.0' +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v8.1.0' +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v8.1.0' +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v8.1.0' +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v8.1.0' + +``` + +#### C、支持其他格式协议的(mpeg,rtsp, concat、crypto协议) + +A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情况。 +C 方法引入的so支持mpeg编码和其他补充协议,但是so包相对变大。 + +``` +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.1.0' + +implementatcon 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v8.1.0' + +``` -- GitLab