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/v6.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathen committed Sep 23, 2017
2 parents bf65d24 + 94ef690 commit bb8ca32
Show file tree
Hide file tree
Showing 16 changed files with 337 additions and 135 deletions.
62 changes: 53 additions & 9 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
--
<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%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-6.0.0-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-6.0.1-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-jiaozivideoplayer-green.svg?style=true"></a>
</p>

#### 立志成为Android平台使用最广泛的视频播放控件 Q群:490442439 验证信息:jcvd
#### 立志成为Android平台使用最广泛的视频播放控件 Q群:490442439 验证信息:jzvd

目前认为安卓中视频点播的终极状态是系统的MediaPlayer,其他的播放引擎并不是未来的趋势,虽然系统的MediaPlayer也有缺点我认为我们应该做出一些让步,如果系统的MediaPlayer没有重大缺陷将不会考虑替换它。

Expand All @@ -25,11 +25,11 @@
8. WebView嵌套本地视频控件
9. [支持https和rtsp](https://developer.android.com/guide/topics/media/media-formats.html)
10. 小于 110kb
11. Home键暂停,返回继续播放
11. [Home键暂停,返回继续播放](https://github.com/lipangit/JiaoZiVideoPlayer/blob/develop/app/src/main/java/cn/jzvd/demo/ApiActivity.java#L117)

## 效果

**[jiaozivideoplayer-6.0.0.apk](https://github.com/lipangit/JieCaoVideoPlayer/releases/download/v6.0.0/jiaozivideoplayer-6.0.0.apk)**
**[jiaozivideoplayer-6.0.1.apk](https://github.com/lipangit/JieCaoVideoPlayer/releases/download/v6.0.1/jiaozivideoplayer-6.0.1.apk)**

![Demo Screenshot][1]

Expand All @@ -39,10 +39,10 @@

1.添加类库
```gradle
compile 'cn.jcvd:jiaozivideoplayer:5.8.2'
compile 'cn.jzvd:jiaozivideoplayer:6.0.1'
```

[或直接下载jar包](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.0.0) 不建议
[或直接下载jar包](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.0.1) 不建议

2.添加布局
```xml
Expand All @@ -64,15 +64,15 @@ jzVideoPlayerStandard.thumbImageView.setImage("http://p.qpic.cn/videoyun/0/2449_
```java
@Override
public void onBackPressed() {
if (JCVideoPlayer.backPress()) {
if (JZVideoPlayer.backPress()) {
return;
}
super.onBackPressed();
}
@Override
protected void onPause() {
super.onPause();
JCVideoPlayer.releaseAllVideos();
JZVideoPlayer.releaseAllVideos();
}
```

Expand All @@ -86,7 +86,51 @@ protected void onPause() {

## [Wiki](https://github.com/lipangit/JiaoZiVideoPlayer/wiki)

## 打赏
* 常规使用

1. [QuickStart](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/QuickStart)
2. [列表播放](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%88%97%E8%A1%A8%E6%92%AD%E6%94%BE)
3. [小窗播放](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%B0%8F%E7%AA%97%E6%92%AD%E6%94%BE)
4. [直接全屏播放](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E7%9B%B4%E6%8E%A5%E5%85%A8%E5%B1%8F%E6%92%AD%E6%94%BE)
5. [API](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/API%E7%9A%84%E4%BD%BF%E7%94%A8)

* 自定义

1. [自定义代码](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BB%A3%E7%A0%81)
2. [自定义代码示例](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BB%A3%E7%A0%81%E7%A4%BA%E4%BE%8B)
3. [自定义UI](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89UI)
4. [自定义UI示例](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89UI%E7%A4%BA%E4%BE%8B)

[常见问题](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)


## [工作分流](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E5%B7%A5%E4%BD%9C%E5%88%86%E6%B5%81)

老臣精力能力有限,希望和志同道合的朋友一起把项目做好,感兴趣的同学随时和我报名

* [群管理](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E7%BE%A4%E7%AE%A1%E7%90%86)

[熊晓清](http://blog.csdn.net/yaya_xiong) QQ:137048616

[Lionet](https://github.com/Lionet6?tab=repositories) QQ:2950527715

[montauk](https://github.com/hanmeimei888) QQ:958489121

[张展硕]() QQ:229431468

* [问题解答](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94)

[熊晓清](http://blog.csdn.net/yaya_xiong) QQ:137048616

* [wiki整理](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#wiki%E6%95%B4%E7%90%86)

* [发版](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E5%8F%91%E7%89%88)

## [任务发布](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E4%BB%BB%E5%8A%A1%E5%8F%91%E5%B8%83)

## [打赏](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E6%89%93%E8%B5%8F%E5%92%8C%E5%92%A8%E8%AF%A2)

这项目是专门给中小app集成视频播放的,极大降低开发成本,如果给您节省了成吨的时间,建议零售价:打赏500元。(不贵吧兄弟们,弄了两年的项目不比女主播唱首歌值钱吧)

![打赏][2]

Expand Down
68 changes: 57 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
--
<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%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-6.0.0-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-6.0.1-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-jiaozivideoplayer-green.svg?style=true"></a>
</p>

* This project need translators, mother language is english, you can change everything edit readme, release note, formate variable and annotation.
* This project need translators, you can change everything edit readme, release note, formate variable and annotation.

#### Ambition is become the most widely used video playback control. Q群:490442439 验证信息:jcvd
#### Ambition is become the most widely used video playback control. Q群:490442439 验证信息:jzvd

I think the final solution for play video in android is android.media.MediaPlayer, other player is not in the trend, even if the android.media.MediaPlayer have disavantages we should make concession, if android.media.MediaPlayer have defect we will think to change other player.

Expand All @@ -27,11 +27,11 @@ I think the final solution for play video in android is android.media.MediaPlaye
8. WebView with local video control
9. [Support https and rtsp](https://developer.android.com/guide/topics/media/media-formats.html)
10. Less than 110kb
11. Press home button will pause vidoe, come back goon play
11. [Press home button will pause vidoe, come back goon play](https://github.com/lipangit/JiaoZiVideoPlayer/blob/develop/app/src/main/java/cn/jzvd/demo/ApiActivity.java#L117)

## Effect

**[jiaozivideoplayer-6.0.0.apk](https://github.com/lipangit/JieCaoVideoPlayer/releases/download/v6.0.0/jiaozivideoplayer-6.0.0.apk)**
**[jiaozivideoplayer-6.0.1.apk](https://github.com/lipangit/JieCaoVideoPlayer/releases/download/v6.0.1/jiaozivideoplayer-6.0.1.apk)**

![Demo Screenshot][1]

Expand All @@ -41,12 +41,12 @@ Even the custom UI, or has changed to the Library, is also the five steps to use

1.Import library
```gradle
compile 'cn.jcvd:jiaozivideoplayer:5.8.2'
compile 'cn.jzvd:jiaozivideoplayer:6.0.1'
```

[Or download lib](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.0.0) not recommended
[Or download lib](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.0.1) not recommended

2.Add JCVideoPlayer in your layout
2.Add JZVideoPlayer in your layout
```xml
<cn.jzvd.JZVideoPlayerStandard
android:id="@+id/videoplayer"
Expand All @@ -66,15 +66,15 @@ jzVideoPlayerStandard.thumbImageView.setImage("http://p.qpic.cn/videoyun/0/2449_
```java
@Override
public void onBackPressed() {
if (JCVideoPlayer.backPress()) {
if (JZVideoPlayer.backPress()) {
return;
}
super.onBackPressed();
}
@Override
protected void onPause() {
super.onPause();
JCVideoPlayer.releaseAllVideos();
JZVideoPlayer.releaseAllVideos();
}
```

Expand All @@ -88,7 +88,53 @@ protected void onPause() {

## [Wiki](https://github.com/lipangit/JiaoZiVideoPlayer/wiki)

## Reward
* 常规使用

1. [QuickStart](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/QuickStart)
2. [列表播放](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%88%97%E8%A1%A8%E6%92%AD%E6%94%BE)
3. [小窗播放](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%B0%8F%E7%AA%97%E6%92%AD%E6%94%BE)
4. [直接全屏播放](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E7%9B%B4%E6%8E%A5%E5%85%A8%E5%B1%8F%E6%92%AD%E6%94%BE)
5. [API](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/API%E7%9A%84%E4%BD%BF%E7%94%A8)

* 自定义

1. [自定义代码](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BB%A3%E7%A0%81)
2. [自定义代码示例](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BB%A3%E7%A0%81%E7%A4%BA%E4%BE%8B)
3. [自定义UI](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89UI)
4. [自定义UI示例](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E8%87%AA%E5%AE%9A%E4%B9%89UI%E7%A4%BA%E4%BE%8B)

[常见问题](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)


## [Job diversion](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E5%B7%A5%E4%BD%9C%E5%88%86%E6%B5%81)

Need translator to make English native.

* [群管理](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E7%BE%A4%E7%AE%A1%E7%90%86)

[熊晓清](http://blog.csdn.net/yaya_xiong) QQ:137048616

[Lionet](https://github.com/Lionet6?tab=repositories) QQ:2950527715

[montauk](https://github.com/hanmeimei888) QQ:958489121

[张展硕]() QQ:229431468

* [问题解答](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94)

[熊晓清](http://blog.csdn.net/yaya_xiong) QQ:137048616

* [wiki整理](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#wiki%E6%95%B4%E7%90%86)

* [发版](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E5%8F%91%E7%89%88)

## [任务发布](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E4%BB%BB%E5%8A%A1%E5%8F%91%E5%B8%83)

Need translator to make English native.

## [Reward](https://github.com/lipangit/JiaoZiVideoPlayer/wiki#%E6%89%93%E8%B5%8F%E5%92%8C%E5%92%A8%E8%AF%A2)

This project is dedicated to small and medium-sized app integrated video playback, greatly reducing development costs, if you save a ton of time, the proposed retail price: reward 76 USD. (Not expensive you brothers, get two years of the project than the female anchor song song it)

![Reward][2]

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 "cn.jzvd.demo"
minSdkVersion 16
targetSdkVersion 26
versionCode 65
versionName "6.0.0"
versionCode 66
versionName "6.0.1"
}
buildTypes {
release {
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@
android:name=".OrientationActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:screenOrientation="landscape" />

<activity
android:name=".ExtendsNormalActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:screenOrientation="portrait" />
</application>

</manifest>
23 changes: 8 additions & 15 deletions app/src/main/java/cn/jzvd/demo/ApiActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@
import java.util.HashMap;
import java.util.LinkedHashMap;

import cn.jzvd.JZMediaManager;
import cn.jzvd.JZVideoPlayer;
import cn.jzvd.JZVideoPlayerManager;
import cn.jzvd.JZVideoPlayerSimple;
import cn.jzvd.JZVideoPlayerStandard;

/**
* Created by Nathen on 16/7/31.
*/
public class ApiActivity extends AppCompatActivity implements View.OnClickListener {
Button mSmallChange, mBigChange, mOrientation;
Button mSmallChange, mBigChange, mOrientation, mExtendsNormalActivity;
JZVideoPlayerSimple mJzVideoPlayerSimple;
JZVideoPlayerStandard mJzVideoPlayerStandard;
JZVideoPlayer.JZAutoFullscreenListener mSensorEventListener;
Expand All @@ -50,10 +48,12 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
mSmallChange = (Button) findViewById(R.id.small_change);
mBigChange = (Button) findViewById(R.id.big_change);
mOrientation = (Button) findViewById(R.id.orientation);
mExtendsNormalActivity = (Button) findViewById(R.id.extends_normal_activity);

mSmallChange.setOnClickListener(this);
mBigChange.setOnClickListener(this);
mOrientation.setOnClickListener(this);
mExtendsNormalActivity.setOnClickListener(this);

mJzVideoPlayerSimple = (JZVideoPlayerSimple) findViewById(R.id.simple_demo);
mJzVideoPlayerSimple.setUp("http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"
Expand Down Expand Up @@ -110,6 +110,9 @@ public void onClick(View v) {
case R.id.orientation:
startActivity(new Intent(ApiActivity.this, OrientationActivity.class));
break;
case R.id.extends_normal_activity:
startActivity(new Intent(ApiActivity.this, ExtendsNormalActivity.class));
break;
}
}

Expand All @@ -119,13 +122,7 @@ protected void onResume() {
Sensor accelerometerSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
mSensorManager.registerListener(mSensorEventListener, accelerometerSensor, SensorManager.SENSOR_DELAY_NORMAL);
//home back
if (JZVideoPlayerManager.getCurrentJzvd() != null) {
JZVideoPlayer jzvd = JZVideoPlayerManager.getCurrentJzvd();
if (jzvd.currentState == JZVideoPlayer.CURRENT_STATE_PAUSE) {
jzvd.onStatePlaying();
JZMediaManager.instance().mediaPlayer.start();
}
}
JZVideoPlayer.goOnPlayOnResume();
}

@Override
Expand All @@ -134,11 +131,7 @@ protected void onPause() {
mSensorManager.unregisterListener(mSensorEventListener);
JZVideoPlayer.clearSavedProgress(this, null);
//home back
if (JZVideoPlayerManager.getCurrentJzvd() != null) {
JZVideoPlayer jzvd = JZVideoPlayerManager.getCurrentJzvd();
jzvd.onStatePause();
JZMediaManager.instance().mediaPlayer.pause();
}
JZVideoPlayer.goOnPlayOnPause();
}

@Override
Expand Down
42 changes: 42 additions & 0 deletions app/src/main/java/cn/jzvd/demo/ExtendsNormalActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package cn.jzvd.demo;

import android.app.Activity;
import android.os.Bundle;

import com.squareup.picasso.Picasso;

import cn.jzvd.JZVideoPlayer;
import cn.jzvd.JZVideoPlayerStandard;

/**
* Created by Nathen on 2017/9/19.
*/

public class ExtendsNormalActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_extends_normal);
JZVideoPlayerStandard jzVideoPlayerStandard = findViewById(R.id.videoplayer);
jzVideoPlayerStandard.setUp(VideoConstant.videoUrlList[0]
, JZVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, "嫂子不信");
Picasso.with(this)
.load(VideoConstant.videoThumbList[0])
.into(jzVideoPlayerStandard.thumbImageView);
}

@Override
public void onBackPressed() {
if (JZVideoPlayer.backPress()) {
return;
}
super.onBackPressed();
}

@Override
protected void onPause() {
super.onPause();
JZVideoPlayer.releaseAllVideos();
}
}
8 changes: 8 additions & 0 deletions app/src/main/res/layout/activity_api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Orientation" />

<Button
android:id="@+id/extends_normal_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="8dp"
android:text="Extends Normal Activity" />
</LinearLayout>
</ScrollView>
</LinearLayout>
Loading

0 comments on commit bb8ca32

Please sign in to comment.