浏览代码

更新demo案例

杨充 4 年之前
父节点
当前提交
fe2494bf3a
共有 25 个文件被更改,包括 277 次插入7 次删除
  1. 1 1
      Demo/build.gradle
  2. 1 1
      README.md
  3. 3 3
      VideoPlayer/build.gradle
  4. 15 0
      VideoPlayer/src/main/java/com/yc/video/config/BuriedPointEvent.java
  5. 15 0
      VideoPlayer/src/main/java/com/yc/video/config/VideoPlayerConfig.java
  6. 15 0
      VideoPlayer/src/main/java/com/yc/video/controller/InterViewController.java
  7. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/AudioFocusHelper.java
  8. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/InterVideoPlayer.java
  9. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/ProgressManager.java
  10. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/SimpleStateListener.java
  11. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/VideoPlayer.java
  12. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/VideoPlayerBuilder.java
  13. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/VideoPlayerHelper.java
  14. 15 0
      VideoPlayer/src/main/java/com/yc/video/player/VideoViewManager.java
  15. 15 0
      VideoPlayer/src/main/java/com/yc/video/surface/InterSurfaceView.java
  16. 15 0
      VideoPlayer/src/main/java/com/yc/video/surface/MeasureHelper.java
  17. 15 0
      VideoPlayer/src/main/java/com/yc/video/surface/RenderTextureView.java
  18. 15 0
      VideoPlayer/src/main/java/com/yc/video/surface/SurfaceFactory.java
  19. 15 0
      VideoPlayer/src/main/java/com/yc/video/surface/SurfaceViewFactory.java
  20. 15 0
      VideoPlayer/src/main/java/com/yc/video/ui/more/CustomNetworkView.java
  21. 15 0
      VideoPlayer/src/main/java/com/yc/video/ui/more/CustomTrailersView.java
  22. 1 1
      VideoPlayer/src/main/java/com/yc/video/ui/view/CustomErrorView.java
  23. 二进制
      image/11602825926_.pic.jpg
  24. 二进制
      image/21602825931_.pic.jpg
  25. 1 1
      read/01.视频播放器介绍文档.md

+ 1 - 1
Demo/build.gradle

@@ -65,7 +65,7 @@ dependencies {
 //    implementation project(':VideoPlayer')
 //    implementation project(':VideoPlayer')
 //    implementation project(':VideoKernel')
 //    implementation project(':VideoKernel')
 
 
-    implementation 'cn.yc:VideoPlayer:3.0.8'
+    implementation 'cn.yc:VideoPlayer:3.0.9'
     implementation 'cn.yc:VideoCache:3.0.5'
     implementation 'cn.yc:VideoCache:3.0.5'
     implementation 'cn.yc:VideoKernel:3.0.5'
     implementation 'cn.yc:VideoKernel:3.0.5'
     implementation 'cn.yc:YCStatusBarLib:1.5.0'
     implementation 'cn.yc:YCStatusBarLib:1.5.0'

+ 1 - 1
README.md

@@ -124,7 +124,7 @@
 - 如下所示
 - 如下所示
     ```
     ```
     //视频UI层,必须要有
     //视频UI层,必须要有
-    implementation 'cn.yc:VideoPlayer:3.0.8'
+    implementation 'cn.yc:VideoPlayer:3.0.9'
     //视频缓存,如果不需要则可以不依赖
     //视频缓存,如果不需要则可以不依赖
     implementation 'cn.yc:VideoCache:3.0.5'
     implementation 'cn.yc:VideoCache:3.0.5'
     //视频内核层,必须有
     //视频内核层,必须有

+ 3 - 3
VideoPlayer/build.gradle

@@ -6,8 +6,8 @@ android {
     defaultConfig {
     defaultConfig {
         minSdkVersion 17
         minSdkVersion 17
         targetSdkVersion 29
         targetSdkVersion 29
-        versionCode 38
-        versionName "3.0.8"
+        versionCode 39
+        versionName "3.0.9"
     }
     }
 
 
     buildTypes {
     buildTypes {
@@ -57,7 +57,7 @@ group = "cn.yc"
 //发布到JCenter上的项目名字,必须填写
 //发布到JCenter上的项目名字,必须填写
 def libName = "VideoPlayer"
 def libName = "VideoPlayer"
 // 版本号,下次更新是只需要更改版本号即可
 // 版本号,下次更新是只需要更改版本号即可
-version = "3.0.8"
+version = "3.0.9"
 
 
 //生成源文件
 //生成源文件
 task sourcesJar(type: Jar) {
 task sourcesJar(type: Jar) {

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/config/BuriedPointEvent.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.config;
 package com.yc.video.config;
 
 
 /**
 /**

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/config/VideoPlayerConfig.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.config;
 package com.yc.video.config;
 
 
 
 

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/controller/InterViewController.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.controller;
 package com.yc.video.controller;
 
 
 import com.yc.video.ui.view.InterControlView;
 import com.yc.video.ui.view.InterControlView;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/AudioFocusHelper.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 import android.content.Context;
 import android.content.Context;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/InterVideoPlayer.java

@@ -7,6 +7,21 @@ You may obtain a copy of the License at
 
 
 http://www.apache.org/licenses/LICENSE-2.0
 http://www.apache.org/licenses/LICENSE-2.0
 
 
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
 Unless required by applicable law or agreed to in writing, software
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/ProgressManager.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 /**
 /**

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/SimpleStateListener.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 import com.yc.video.config.ConstantKeys;
 import com.yc.video.config.ConstantKeys;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/VideoPlayer.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 import android.content.Context;
 import android.content.Context;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/VideoPlayerBuilder.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 import android.graphics.Color;
 import android.graphics.Color;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/VideoPlayerHelper.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 import android.app.Activity;
 import android.app.Activity;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/player/VideoViewManager.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.player;
 package com.yc.video.player;
 
 
 import android.app.Application;
 import android.app.Application;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/surface/InterSurfaceView.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.surface;
 package com.yc.video.surface;
 
 
 import android.graphics.Bitmap;
 import android.graphics.Bitmap;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/surface/MeasureHelper.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.surface;
 package com.yc.video.surface;
 
 
 import android.view.View;
 import android.view.View;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/surface/RenderTextureView.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.surface;
 package com.yc.video.surface;
 
 
 import android.annotation.SuppressLint;
 import android.annotation.SuppressLint;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/surface/SurfaceFactory.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.surface;
 package com.yc.video.surface;
 
 
 import android.content.Context;
 import android.content.Context;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/surface/SurfaceViewFactory.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.surface;
 package com.yc.video.surface;
 
 
 import android.content.Context;
 import android.content.Context;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/ui/more/CustomNetworkView.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.ui.more;
 package com.yc.video.ui.more;
 
 
 import android.content.Context;
 import android.content.Context;

+ 15 - 0
VideoPlayer/src/main/java/com/yc/video/ui/more/CustomTrailersView.java

@@ -1,3 +1,18 @@
+/*
+Copyright 2017 yangchong211(github.com/yangchong211)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
 package com.yc.video.ui.more;
 package com.yc.video.ui.more;
 
 
 import android.content.Context;
 import android.content.Context;

+ 1 - 1
VideoPlayer/src/main/java/com/yc/video/ui/view/CustomErrorView.java

@@ -53,7 +53,7 @@ public class CustomErrorView extends LinearLayout implements InterControlView {
     private ControlWrapper mControlWrapper;
     private ControlWrapper mControlWrapper;
 
 
     public CustomErrorView(Context context) {
     public CustomErrorView(Context context) {
-        this(context, null);
+        super(context);
         init(context);
         init(context);
     }
     }
 
 

二进制
image/11602825926_.pic.jpg


二进制
image/21602825931_.pic.jpg


+ 1 - 1
read/01.视频播放器介绍文档.md

@@ -152,7 +152,7 @@
 - 如下所示
 - 如下所示
     ```
     ```
     //视频UI层,必须要有
     //视频UI层,必须要有
-    implementation 'cn.yc:VideoPlayer:3.0.8'
+    implementation 'cn.yc:VideoPlayer:3.0.9'
     //视频缓存,如果不需要则可以不依赖
     //视频缓存,如果不需要则可以不依赖
     implementation 'cn.yc:VideoCache:3.0.5'
     implementation 'cn.yc:VideoCache:3.0.5'
     //视频内核层,必须有
     //视频内核层,必须有