diff --git a/app/build.gradle b/app/build.gradle index 6fec5cdd1846ba998bc1982d46903a40c0074f7a..1dd9fac5b40fa8e4586c11f7bb7045934f71aabe 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,32 +63,32 @@ dependencies { compile project(':gsyVideoPlayer') //jcenter - //compile 'com.shuyu:GSYVideoPlayer:2.0.7' + //compile 'com.shuyu:GSYVideoPlayer:2.0.8' - //compile 'com.shuyu:gsyVideoPlayer-java:2.0.7' + //compile 'com.shuyu:gsyVideoPlayer-java:2.0.8' - //compile 'com.shuyu:gsyVideoPlayer-armv5:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-armv7a:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-arm64:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-x64:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-x86:2.0.7' + //compile 'com.shuyu:gsyVideoPlayer-armv5:2.0.8' + //compile 'com.shuyu:gsyVideoPlayer-armv7a:2.0.8' + //compile 'com.shuyu:gsyVideoPlayer-arm64:2.0.8' + //compile 'com.shuyu:gsyVideoPlayer-x64:2.0.8' + //compile 'com.shuyu:gsyVideoPlayer-x86:2.0.8' - //compile 'com.shuyu:gsyVideoPlayer-ex_so:2.0.7' + //compile 'com.shuyu:gsyVideoPlayer-ex_so:2.0.8' //jitpack - //compile 'com.github.CarGuo:GSYVideoPlayer:v2.0.7' + //compile 'com.github.CarGuo:GSYVideoPlayer:v2.0.8' - //compile 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v2.0.7' + //compile 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v2.0.8' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v2.0.7' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v2.0.8' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v2.0.7' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v2.0.7' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v2.0.7' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v2.0.7' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v2.0.7' - //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v2.0.7' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v2.0.8' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v2.0.8' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v2.0.8' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v2.0.8' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v2.0.8' + //compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v2.0.8' } diff --git a/app/src/main/java/com/example/gsyvideoplayer/DetailFilterActivity.java b/app/src/main/java/com/example/gsyvideoplayer/DetailFilterActivity.java index af7b6f463320527d4e1022a2f70cc03e97d34b13..57a2a848730ab8958a4ba6b53ad04d785c1e6823 100644 --- a/app/src/main/java/com/example/gsyvideoplayer/DetailFilterActivity.java +++ b/app/src/main/java/com/example/gsyvideoplayer/DetailFilterActivity.java @@ -25,12 +25,15 @@ import com.shuyu.gsyvideoplayer.effect.DocumentaryEffect; import com.shuyu.gsyvideoplayer.effect.DuotoneEffect; import com.shuyu.gsyvideoplayer.effect.FillLightEffect; import com.shuyu.gsyvideoplayer.effect.GammaEffect; +import com.shuyu.gsyvideoplayer.effect.GaussianBlurEffect; import com.shuyu.gsyvideoplayer.effect.GrainEffect; import com.shuyu.gsyvideoplayer.effect.HueEffect; import com.shuyu.gsyvideoplayer.effect.InvertColorsEffect; import com.shuyu.gsyvideoplayer.effect.LamoishEffect; import com.shuyu.gsyvideoplayer.effect.NoEffect; +import com.shuyu.gsyvideoplayer.effect.OverlayEffect; import com.shuyu.gsyvideoplayer.effect.PosterizeEffect; +import com.shuyu.gsyvideoplayer.effect.SampleBlurEffect; import com.shuyu.gsyvideoplayer.effect.SaturationEffect; import com.shuyu.gsyvideoplayer.effect.SepiaEffect; import com.shuyu.gsyvideoplayer.effect.SharpnessEffect; @@ -248,10 +251,19 @@ public class DetailFilterActivity extends GSYBaseActivityDetail { case 22: effect = new NoEffect(); break; + case 23: + effect = new OverlayEffect(); + break; + case 24: + effect = new SampleBlurEffect(4.0f); + break; + case 25: + effect = new GaussianBlurEffect(6.0f, GaussianBlurEffect.TYPEXY); + break; } detailPlayer.setEffectFilter(effect); type++; - if (type > 22) { + if (type > 25) { type = 0; } } diff --git a/dependencies.md b/dependencies.md index 4e9eee0a18ad7ee3c2abe094ae1dbfd884dbaf3e..f64f5bfd674ecb041f4a11f51d36f762077dd017 100644 --- a/dependencies.md +++ b/dependencies.md @@ -68,7 +68,7 @@ allprojects { #### A、直接引入 ``` //完整版引入 -compile 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v2.0.7' +compile 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v2.0.8' ``` @@ -76,14 +76,14 @@ compile 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v2.0.7' ``` -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v2.0.7' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v2.0.8' //根据你的需求 -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v2.0.7' -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v2.0.7' -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v2.0.7' -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v2.0.7' -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v2.0.7' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v2.0.8' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v2.0.8' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v2.0.8' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v2.0.8' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v2.0.8' ``` @@ -93,8 +93,8 @@ A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情 C 方法引入的so支持mpeg编码和其他补充协议,但是so包相对变大。 ``` -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v2.0.7' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v2.0.8' -compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v2.0.7' +compile 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v2.0.8' ``` diff --git a/gsyVideoPlayer/build.gradle b/gsyVideoPlayer/build.gradle index 3ef760957358543cc3309510c6fdd17a0d4d3c2c..8c4d733cf77265ec0140031c0e954e03cabe6737 100644 --- a/gsyVideoPlayer/build.gradle +++ b/gsyVideoPlayer/build.gradle @@ -31,26 +31,26 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile project(':gsyVideoPlayer-java') - compile project(':gsyVideoPlayer-armv5') - compile project(':gsyVideoPlayer-armv7a') - compile project(':gsyVideoPlayer-armv64') - compile project(':gsyVideoPlayer-x86') - compile project(':gsyVideoPlayer-x86_64') + //compile project(':gsyVideoPlayer-java') + //compile project(':gsyVideoPlayer-armv5') + //compile project(':gsyVideoPlayer-armv7a') + //compile project(':gsyVideoPlayer-armv64') + //compile project(':gsyVideoPlayer-x86') + //compile project(':gsyVideoPlayer-x86_64') //更多配置版so,增加了concat,rtsp,mpeg,crypto //compile project(':gsyVideoPlayer-ex_so') - //compile 'com.shuyu:gsyVideoPlayer-java:2.0.7' + compile 'com.shuyu:gsyVideoPlayer-java:2.0.8' - //compile 'com.shuyu:gsyVideoPlayer-armv5:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-armv7a:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-arm64:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-x64:2.0.7' - //compile 'com.shuyu:gsyVideoPlayer-x86:2.0.7' + compile 'com.shuyu:gsyVideoPlayer-armv5:2.0.8' + compile 'com.shuyu:gsyVideoPlayer-armv7a:2.0.8' + compile 'com.shuyu:gsyVideoPlayer-arm64:2.0.8' + compile 'com.shuyu:gsyVideoPlayer-x64:2.0.8' + compile 'com.shuyu:gsyVideoPlayer-x86:2.0.8' //更多配置版so,增加了concat,rtsp,mpeg,crypto - //compile 'com.shuyu:gsyVideoPlayer-ex_so:2.0.7' + //compile 'com.shuyu:gsyVideoPlayer-ex_so:2.0.8' } apply from: './bintray.gradle'