diff --git a/README-ZH.md b/README-ZH.md index 1b49348cb..81287d736 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -1,7 +1,7 @@ #节操视频播放器 [![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html) -[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.0_preview-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0_preview%7Caar) +[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.0-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0%7Caar) [![Licenses](https://img.shields.io/badge/license-MIT-green.svg)](http://choosealicense.com/licenses/mit/) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-jiecaovideoplayer-green.svg?style=true)](https://android-arsenal.com/details/1/3269) [![GitHub stars](https://img.shields.io/github/stars/lipangit/jiecaovideoplayer.svg?style=social&label=Star)]() @@ -20,7 +20,7 @@ ##效果 -**[jiecaovideoplayer-2.0_preview-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview-demo.apk)** +**[jiecaovideoplayer-2.0-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-demo.apk)** ![Demo Screenshot][1] @@ -29,14 +29,14 @@ ##使用 1.添加类库 ```gradle -compile 'fm.jiecao:jiecaovideoplayer:2.0_preview' +compile 'fm.jiecao:jiecaovideoplayer:2.0' ``` 或直接下载 -* [jiecaovideoplayer-2.0_preview.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview.aar) -* [jiecaovideoplayer-2.0_preview-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview-javadoc.jar) -* [jiecaovideoplayer-2.0_preview-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview-sources.jar) +* [jiecaovideoplayer-2.0.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0.aar) +* [jiecaovideoplayer-2.0-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-javadoc.jar) +* [jiecaovideoplayer-2.0-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-sources.jar) 2.添加布局 ```xml diff --git a/README.md b/README.md index 3fc8b445f..060b9a785 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Jiecao Video Player [![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html) -[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.0_preview-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0_preview%7Caar) +[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.0-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0%7Caar) [![Licenses](https://img.shields.io/badge/license-MIT-green.svg)](http://choosealicense.com/licenses/mit/) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-jiecaovideoplayer-green.svg?style=true)](https://android-arsenal.com/details/1/3269) [![GitHub stars](https://img.shields.io/github/stars/lipangit/jiecaovideoplayer.svg?style=social&label=Star)]() @@ -22,7 +22,7 @@ This is the real android video player view with fullscreen function, we are dedi ## Effect -**[jiecaovideoplayer-2.0_preview-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview-demo.apk)** +**[jiecaovideoplayer-2.0-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-demo.apk)** ![Demo Screenshot][1] @@ -31,14 +31,14 @@ Demo video : http://v.youku.com/v_show/id_XMTQ2NzUwOTcyNA==.html ## Usage 1.Import library ```gradle -compile 'fm.jiecao:jiecaovideoplayer:2.0_preview' +compile 'fm.jiecao:jiecaovideoplayer:2.0' ``` Or download lib -* [jiecaovideoplayer-2.0_preview.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview.aar) -* [jiecaovideoplayer-2.0_preview-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview-javadoc.jar) -* [jiecaovideoplayer-2.0_preview-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_preview-sources.jar) +* [jiecaovideoplayer-2.0.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0.aar) +* [jiecaovideoplayer-2.0-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-javadoc.jar) +* [jiecaovideoplayer-2.0-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-sources.jar) 2.Add JCVideoPlayer in your layout ```xml diff --git a/app/build.gradle b/app/build.gradle index a9d17b21a..3e182ecfa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,7 +9,7 @@ android { minSdkVersion 16 targetSdkVersion 23 versionCode 22 - versionName "2.0_preview" + versionName "2.0" } buildTypes { release { diff --git a/downloads/jiecaovideoplayer-2.0_preview-demo.apk b/downloads/jiecaovideoplayer-2.0-demo.apk similarity index 72% rename from downloads/jiecaovideoplayer-2.0_preview-demo.apk rename to downloads/jiecaovideoplayer-2.0-demo.apk index 09fcb0984..e72ea11d4 100644 Binary files a/downloads/jiecaovideoplayer-2.0_preview-demo.apk and b/downloads/jiecaovideoplayer-2.0-demo.apk differ diff --git a/downloads/jiecaovideoplayer-2.0-javadoc.jar b/downloads/jiecaovideoplayer-2.0-javadoc.jar new file mode 100644 index 000000000..83be5f889 Binary files /dev/null and b/downloads/jiecaovideoplayer-2.0-javadoc.jar differ diff --git a/downloads/jiecaovideoplayer-2.0-sources.jar b/downloads/jiecaovideoplayer-2.0-sources.jar new file mode 100644 index 000000000..7d6b6baeb Binary files /dev/null and b/downloads/jiecaovideoplayer-2.0-sources.jar differ diff --git a/downloads/jiecaovideoplayer-2.0.aar b/downloads/jiecaovideoplayer-2.0.aar new file mode 100644 index 000000000..be8b5d9df Binary files /dev/null and b/downloads/jiecaovideoplayer-2.0.aar differ diff --git a/downloads/jiecaovideoplayer-2.0_preview-javadoc.jar b/downloads/jiecaovideoplayer-2.0_preview-javadoc.jar deleted file mode 100644 index 57e5d2eb2..000000000 Binary files a/downloads/jiecaovideoplayer-2.0_preview-javadoc.jar and /dev/null differ diff --git a/downloads/jiecaovideoplayer-2.0_preview-sources.jar b/downloads/jiecaovideoplayer-2.0_preview-sources.jar deleted file mode 100644 index 3c1475a7a..000000000 Binary files a/downloads/jiecaovideoplayer-2.0_preview-sources.jar and /dev/null differ diff --git a/downloads/jiecaovideoplayer-2.0_preview.aar b/downloads/jiecaovideoplayer-2.0_preview.aar deleted file mode 100644 index b0acea145..000000000 Binary files a/downloads/jiecaovideoplayer-2.0_preview.aar and /dev/null differ diff --git a/gradle/maven_push.gradle b/gradle/maven_push.gradle index cfff0a478..3a5670791 100644 --- a/gradle/maven_push.gradle +++ b/gradle/maven_push.gradle @@ -22,7 +22,7 @@ signing { group = "fm.jiecao" archivesBaseName = "jiecaovideoplayer" -version = "2.0_preview" +version = "2.0" uploadArchives { repositories { diff --git a/jcvideoplayer-lib/build.gradle b/jcvideoplayer-lib/build.gradle index b62815845..0a7c0e2b8 100644 --- a/jcvideoplayer-lib/build.gradle +++ b/jcvideoplayer-lib/build.gradle @@ -8,7 +8,7 @@ android { minSdkVersion 14 targetSdkVersion 23 versionCode 22 - versionName "2.0_preview" + versionName "2.0" } buildTypes { release { diff --git a/jcvideoplayer-lib/src/main/java/fm/jiecao/jcvideoplayer_lib/JCVideoPlayer.java b/jcvideoplayer-lib/src/main/java/fm/jiecao/jcvideoplayer_lib/JCVideoPlayer.java index e84f37ba4..cc884c6ab 100644 --- a/jcvideoplayer-lib/src/main/java/fm/jiecao/jcvideoplayer_lib/JCVideoPlayer.java +++ b/jcvideoplayer-lib/src/main/java/fm/jiecao/jcvideoplayer_lib/JCVideoPlayer.java @@ -478,7 +478,7 @@ private void changeUiToError() { ivStart.setVisibility(View.VISIBLE); pbLoading.setVisibility(View.INVISIBLE); setThumbVisibility(View.INVISIBLE); - ivCover.setVisibility(View .VISIBLE); + ivCover.setVisibility(View.VISIBLE); pbBottom.setVisibility(View.INVISIBLE); updateStartImage(); } @@ -759,6 +759,10 @@ public static void setThumbImageViewScalType(ImageView.ScaleType thumbScaleType) /** * In demo is ok, but in other project This will class not access exception,How to solve the problem + * + * @param context Context + * @param url video url + * @param title video title */ @Deprecated public static void toFullscreenActivity(Context context, String url, String title) {