Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/v2.0_final'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathen committed Apr 19, 2016
2 parents 14675d9 + d9bdcef commit 1e67c3e
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 17 deletions.
12 changes: 6 additions & 6 deletions README-ZH.md
Original file line number Diff line number Diff line change
@@ -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-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0%7Caar)
[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.0_final-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0_final%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)]()
Expand All @@ -20,7 +20,7 @@

##效果

**[jiecaovideoplayer-2.0-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-demo.apk)**
**[jiecaovideoplayer-2.0_final-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final-demo.apk)**

![Demo Screenshot][1]

Expand All @@ -29,14 +29,14 @@
##使用
1.添加类库
```gradle
compile 'fm.jiecao:jiecaovideoplayer:2.0'
compile 'fm.jiecao:jiecaovideoplayer:2.0_final'
```

或直接下载

* [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)
* [jiecaovideoplayer-2.0_final.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final.aar)
* [jiecaovideoplayer-2.0_final-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final-javadoc.jar)
* [jiecaovideoplayer-2.0_final-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final-sources.jar)

2.添加布局
```xml
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0%7Caar)
[![Maven Central](https://img.shields.io/badge/Maven%20Central-2.0_final-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C2.0_final%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)]()
Expand All @@ -22,7 +22,7 @@ This is the real android video player view with fullscreen function, we are dedi

## Effect

**[jiecaovideoplayer-2.0-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0-demo.apk)**
**[jiecaovideoplayer-2.0_final-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final-demo.apk)**

![Demo Screenshot][1]

Expand All @@ -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'
compile 'fm.jiecao:jiecaovideoplayer:2.0_final'
```

Or download lib

* [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)
* [jiecaovideoplayer-2.0_final.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final.aar)
* [jiecaovideoplayer-2.0_final-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final-javadoc.jar)
* [jiecaovideoplayer-2.0_final-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-2.0_final-sources.jar)

2.Add JCVideoPlayer in your layout
```xml
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 16
targetSdkVersion 23
versionCode 22
versionName "2.0"
versionName "2.0_final"
}
buildTypes {
release {
Expand Down
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-2.0-javadoc.jar
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-2.0-sources.jar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-2.0_final-javadoc.jar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-2.0_final-sources.jar
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/maven_push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ signing {

group = "fm.jiecao"
archivesBaseName = "jiecaovideoplayer"
version = "2.0"
version = "2.0_final"

uploadArchives {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion jcvideoplayer-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 14
targetSdkVersion 23
versionCode 22
versionName "2.0"
versionName "2.0_final"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ public void onClick(View v) {
}
}
if (CURRENT_STATE == CURRENT_STATE_NORMAL || CURRENT_STATE == CURRENT_STATE_ERROR) {
touchingProgressBar = false;//This should not be here , but this can improve accident bug .

addSurfaceView();

if (JCMediaManager.intance().listener != null) {
Expand Down Expand Up @@ -614,9 +616,12 @@ public void quitFullScreen() {
JCMediaManager.intance().mediaPlayer.pause();
JCMediaManager.intance().mediaPlayer.setDisplay(null);
//这个view释放了,
JCMediaManager.intance().listener = JCMediaManager.intance().lastListener;
JCMediaManager.intance().lastState = CURRENT_STATE;
JCMediaManager.intance().listener.onBackFullscreen();

if (JCMediaManager.intance().lastListener != null) {
JCMediaManager.intance().listener = JCMediaManager.intance().lastListener;
JCMediaManager.intance().listener.onBackFullscreen();
}

if (getContext() instanceof JCFullScreenActivity) {
((JCFullScreenActivity) getContext()).finish();
Expand Down Expand Up @@ -771,6 +776,7 @@ public static void toFullscreenActivity(Context context, String url, String titl

@Override
public void onPrepared() {
if (surfaceHolder.getSurface() == null || !surfaceHolder.getSurface().isValid()) return;
if (CURRENT_STATE != CURRENT_STATE_PREPAREING) return;
JCMediaManager.intance().mediaPlayer.setDisplay(surfaceHolder);
JCMediaManager.intance().mediaPlayer.start();
Expand Down

0 comments on commit 1e67c3e

Please sign in to comment.