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/v3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathen committed May 22, 2016
2 parents f39554c + 9155937 commit 1975cca
Show file tree
Hide file tree
Showing 22 changed files with 112 additions and 139 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-3.1-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.1%7Caar)
[![Maven Central](https://img.shields.io/badge/Maven%20Central-3.2-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.2%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 @@ -21,7 +21,7 @@

##效果

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

![Demo Screenshot][1]

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

或直接下载

* [jiecaovideoplayer-3.1.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.1.aar)
* [jiecaovideoplayer-3.1-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.1-javadoc.jar)
* [jiecaovideoplayer-3.1-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.1-sources.jar)
* [jiecaovideoplayer-3.2.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.2.aar)
* [jiecaovideoplayer-3.2-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.2-javadoc.jar)
* [jiecaovideoplayer-3.2-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.2-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-3.1-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.1%7Caar)
[![Maven Central](https://img.shields.io/badge/Maven%20Central-3.2-green.svg)](http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.2%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 @@ -23,7 +23,7 @@ Android truly full-screen capabilities, the Android platform to become the most

## Effect

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

![Demo Screenshot][1]

Expand All @@ -32,14 +32,14 @@ Demo video : http://v.youku.com/v_show/id_XMTQ2NzUwOTcyNA==.html
## Usage
1.Import library
```gradle
compile 'fm.jiecao:jiecaovideoplayer:3.1'
compile 'fm.jiecao:jiecaovideoplayer:3.2'
```

Or download lib

* [jiecaovideoplayer-3.1.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.1.aar)
* [jiecaovideoplayer-3.1-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.1-javadoc.jar)
* [jiecaovideoplayer-3.1-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.1-sources.jar)
* [jiecaovideoplayer-3.2.aar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.2.aar)
* [jiecaovideoplayer-3.2-javadoc.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.2-javadoc.jar)
* [jiecaovideoplayer-3.2-sources.jar](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.2-sources.jar)

2.Add JCVideoPlayer in your layout
```xml
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "fm.jiecao.jiecaovideoplayer"
minSdkVersion 16
targetSdkVersion 23
versionCode 23
versionName "3.1"
versionCode 24
versionName "3.2"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void onClick(View v) {
startDismissControlViewTimer();
}
} else if (i == R.id.surface_container) {
if (jc_BuriedPointStandard != null && JCMediaManager.intance().listener == this) {
if (jc_BuriedPointStandard != null && JCMediaManager.instance().listener == this) {
if (IF_CURRENT_IS_FULLSCREEN) {
jc_BuriedPointStandard.onClickBlankFullscreen(url, objects);
} else {
Expand Down
9 changes: 4 additions & 5 deletions app/src/main/res/layout/jc_layout_standard_fresco.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
android:layout_height="match_parent"
android:background="@android:color/black">

<SurfaceView
android:layout_width="0dp"
android:layout_height="0dp" />

<RelativeLayout
android:id="@+id/surface_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">

<fm.jiecao.jcvideoplayer_lib.JCResizeSurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true" />
</RelativeLayout>

<ImageView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
android:layout_height="match_parent"
android:background="@android:color/black">

<SurfaceView
android:layout_width="0dp"
android:layout_height="0dp" />

<RelativeLayout
android:id="@+id/surface_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">

<fm.jiecao.jcvideoplayer_lib.JCResizeSurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true" />
</RelativeLayout>

<ImageView
Expand Down
Binary file removed downloads/jiecaovideoplayer-3.1-javadoc.jar
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-3.1-sources.jar
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-3.1.aar
Binary file not shown.
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-3.2-javadoc.jar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-3.2-sources.jar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-3.2.aar
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 = "3.1"
version = "3.2"

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 23
versionName "3.1"
versionName "3.2"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ protected void onCreate(Bundle savedInstanceState) {
jcVideoPlayer.IF_FULLSCREEN_IS_DIRECTLY = DIRECT_FULLSCREEN;
jcVideoPlayer.setUp(URL, OBJECTS);
jcVideoPlayer.setStateAndUi(CURRENT_STATE);

jcVideoPlayer.addSurfaceView();
if (jcVideoPlayer.IF_FULLSCREEN_IS_DIRECTLY) {
jcVideoPlayer.ivStart.performClick();
} else {
JCVideoPlayer.IF_RELEASE_WHEN_ON_PAUSE = true;
JCMediaManager.intance().listener = jcVideoPlayer;
JCMediaManager.instance().listener = jcVideoPlayer;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class JCMediaManager implements MediaPlayer.OnPreparedListener, MediaPlay
public JCMediaPlayerListener lastListener;
public int lastState;

public static JCMediaManager intance() {
public static JCMediaManager instance() {
if (jcMediaManager == null) {
jcMediaManager = new JCMediaManager();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public JCResizeSurfaceView(Context context, AttributeSet attrs) {

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int mVideoWidth = JCMediaManager.intance().currentVideoWidth;
int mVideoHeight = JCMediaManager.intance().currentVideoHeight;
int mVideoWidth = JCMediaManager.instance().currentVideoWidth;
int mVideoHeight = JCMediaManager.instance().currentVideoHeight;

int width = getDefaultSize(mVideoWidth, widthMeasureSpec);
int height = getDefaultSize(mVideoHeight, heightMeasureSpec);
Expand Down
Loading

0 comments on commit 1975cca

Please sign in to comment.