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/v4.0_beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathen committed Jul 17, 2016
2 parents ed26f3d + cc3f735 commit 19ec4dd
Show file tree
Hide file tree
Showing 20 changed files with 177 additions and 127 deletions.
18 changes: 9 additions & 9 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--
<p align="center">
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.6.3%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-3.6.3-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.6.3%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-4.0_beta-green.svg"></a>
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiecaovideoplayer-green.svg?style=true"></a>
</p>
Expand All @@ -19,33 +19,33 @@
5. 视频大小的屏幕适配,宽或长至少有两个对边是充满屏幕的,另外两个方向居中
6. 可以在加载、暂停、播放等各种状态中正常进入全屏和退出全屏
7. [支持hls,rtsp](https://developer.android.com/guide/appendix/media-formats.html)
8. 占用空间非常小,不到60k
8. 占用空间非常小,不到100k
9. 设置http头信息

##效果

**[jiecaovideoplayer-3.6.3-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.6.3-demo.apk)**
**[jiecaovideoplayer-4.0_beta-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-4.0_beta-demo.apk)**

![Demo Screenshot][1]

##使用
1.添加类库
```gradle
compile 'fm.jiecao:jiecaovideoplayer:3.6.3'
compile 'fm.jiecao:jiecaovideoplayer:4.0_beta'
```

或直接下载

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

2.添加布局
```xml
<fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard
android:id="@+id/custom_videoplayer_standard"
android:layout_width="match_parent"
android:lay3.6.3out_height="200dp"/>
android:layout_height="200dp"/>
```

3.设置视频地址、缩略图地址、标题
Expand Down Expand Up @@ -82,7 +82,7 @@ jcVideoPlayerStandard.startButton.performClick();

##贡献者

[Nathen](https://github.com/lipangit) [Derlio](https://github.com/derlio) [zhangzzqq](https://github.com/zhangzzqq) [carmelo-ruota](https://github.com/carmelo-ruota) [wxxsw](https://github.com/wxxsw)
[Nathen](https://github.com/lipangit) [Derlio](https://github.com/derlio) [zhangzzqq](https://github.com/zhangzzqq) [carmelo-ruota](https://github.com/carmelo-ruota) [wxxsw](https://github.com/wxxsw) [Miguel Aragues](https://github.com/Maragues)

## License MIT

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--
<p align="center">
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.6.3%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-3.6.3-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Cfm.jiecao%7Cjiecaovideoplayer%7C3.6.3%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-4.0_beta-green.svg"></a>
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiecaovideoplayer-green.svg?style=true"></a>
</p>
Expand All @@ -23,26 +23,26 @@ Android truly full-screen capabilities, the Android platform to become the most
5. Adaptive to the screen size, where at least the width or length of the video is adaptive while the other is centered on the screen
6. It will not disturb or change the playing state when entering or exiting fullscreen
7. [Support hls,rtsp](https://developer.android.com/guide/appendix/media-formats.html)
8. With limited storage, less than 60 kb
8. With limited storage, less than 100k
9. Put head data

## Effect

**[jiecaovideoplayer-3.6.3-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-3.6.3-demo.apk)**
**[jiecaovideoplayer-4.0_beta-demo.apk](https://raw.githubusercontent.com/lipangit/jiecaovideoplayer/develop/downloads/jiecaovideoplayer-4.0_beta-demo.apk)**

![Demo Screenshot][1]

## Usage
1.Import library
```gradle
compile 'fm.jiecao:jiecaovideoplayer:3.6.3'
compile 'fm.jiecao:jiecaovideoplayer:4.0_beta'
```

Or download lib

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

2.Add JCVideoPlayer in your layout
```xml
Expand Down Expand Up @@ -86,7 +86,7 @@ Need nothing

##Contributors

[Nathen](https://github.com/lipangit) [Derlio](https://github.com/derlio) [zhangzzqq](https://github.com/zhangzzqq) [carmelo-ruota](https://github.com/carmelo-ruota) [wxxsw](https://github.com/wxxsw)
[Nathen](https://github.com/lipangit) [Derlio](https://github.com/derlio) [zhangzzqq](https://github.com/zhangzzqq) [carmelo-ruota](https://github.com/carmelo-ruota) [wxxsw](https://github.com/wxxsw) [Miguel Aragues](https://github.com/Maragues)

## License MIT

Expand Down
13 changes: 11 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 31
versionName "3.6.3"
versionCode 32
versionName "4.0_beta"
}
buildTypes {
release {
Expand Down Expand Up @@ -37,4 +37,13 @@ dependencies {
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'

//If you can not start app, you cancel the annotation
//如果app无法启动,请取消下面的注释
//Other ABIs: optional
// compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.6.0'
compile 'tv.danmaku.ijk.media:ijkplayer-arm64:0.6.0'
compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.6.0'
compile 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.6.0'
//ExoPlayer as IMediaPlayer: optional, experimental
//compile 'tv.danmaku.ijk.media:ijkplayer-exo:0.6.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import fm.jiecao.jcvideoplayer_lib.JCBuriedPointStandard;
import fm.jiecao.jcvideoplayer_lib.JCMediaManager;
import fm.jiecao.jcvideoplayer_lib.Utils;
import fm.jiecao.jcvideoplayer_lib.JCUtils;
import fm.jiecao.jcvideoplayer_lib.JCVideoPlayer;
import fm.jiecao.jiecaovideoplayer.R;

Expand Down Expand Up @@ -166,7 +166,7 @@ public void onClick(View v) {
return;
}
if (mCurrentState == CURRENT_STATE_NORMAL) {
if (!Utils.isWifiConnected(getContext()) && !WIFI_TIP_DIALOG_SHOWED) {
if (!JCUtils.isWifiConnected(getContext()) && !WIFI_TIP_DIALOG_SHOWED) {
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setMessage(getResources().getString(fm.jiecao.jcvideoplayer_lib.R.string.tips_not_wifi));
builder.setPositiveButton(getResources().getString(fm.jiecao.jcvideoplayer_lib.R.string.tips_not_wifi_confirm), new DialogInterface.OnClickListener() {
Expand All @@ -191,7 +191,7 @@ public void onClick(DialogInterface dialog, int which) {
onClickUiToggle();
}
} else if (i == R.id.surface_container) {
if (JC_BURIED_POINT_STANDARD != null && JCMediaManager.instance().listener == this) {
if (JC_BURIED_POINT_STANDARD != null && isCurrentMediaListener()) {
if (mIfCurrentIsFullscreen) {
JC_BURIED_POINT_STANDARD.onClickBlankFullscreen(mUrl, mObjects);
} else {
Expand Down
Binary file removed downloads/jiecaovideoplayer-3.6.3-demo.apk
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-3.6.3-javadoc.jar
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-3.6.3-sources.jar
Binary file not shown.
Binary file removed downloads/jiecaovideoplayer-3.6.3.aar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-4.0_beta-demo.apk
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-4.0_beta-javadoc.jar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-4.0_beta-sources.jar
Binary file not shown.
Binary file added downloads/jiecaovideoplayer-4.0_beta.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.6.3"
version = "4.0_beta"

uploadArchives {
repositories {
Expand Down
8 changes: 6 additions & 2 deletions jcvideoplayer-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 31
versionName "3.6.3"
versionCode 32
versionName "4.0_beta"
}
buildTypes {
release {
Expand All @@ -24,6 +24,10 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'

//required, enough for most devices.
compile 'tv.danmaku.ijk.media:ijkplayer-java:0.6.0'
compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.6.0'
}

apply from: '../gradle/maven_push.gradle'
4 changes: 4 additions & 0 deletions jcvideoplayer-lib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="fm.jiecao.jcvideoplayer_lib">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-sdk tools:overrideLibrary="com.example.ijkplayer_x86_64,
tv.danmaku.ijk.media.player_arm64"/>
<application
android:allowBackup="true"
android:supportsRtl="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected void onCreate(Bundle savedInstanceState) {
mJcVideoPlayer.startButton.performClick();
} else {
JCVideoPlayer.IF_RELEASE_WHEN_ON_PAUSE = true;
JCMediaManager.instance().listener = mJcVideoPlayer;
JCMediaManager.instance().setListener(mJcVideoPlayer);
if (CURRENT_STATE == JCVideoPlayer.CURRENT_STATE_PAUSE) {
JCMediaManager.instance().mediaPlayer.seekTo(JCMediaManager.instance().mediaPlayer.getCurrentPosition());
}
Expand Down
Loading

0 comments on commit 19ec4dd

Please sign in to comment.