Commit 001b147 1 parent 9f7beae commit 001b147 Copy full SHA for 001b147
File tree 14 files changed +31
-83
lines changed
src/main/java/com/android/videoplayer
java/com/danikula/videocache
androidTest/java/com/android/exoplayer
test/java/com/android/exoplayer
14 files changed +31
-83
lines changed Original file line number Diff line number Diff line change 39
39
```
40
40
dependencies {
41
41
//播放器(无UI交互)
42
- implementation 'com.github.hty527.iPlayer:iplayer:2.1.2 '
42
+ implementation 'com.github.hty527.iPlayer:iplayer:2.1.20 '
43
43
//UI交互组件,可根据需要使用
44
- implementation 'com.github.hty527.iPlayer:widget:2.1.2 '
44
+ implementation 'com.github.hty527.iPlayer:widget:2.1.20 '
45
45
46
46
//音视频预缓存+边播边存,根据需要使用
47
- //implementation 'com.github.hty527.iPlayer:cache:2.1.2 '
47
+ //implementation 'com.github.hty527.iPlayer:cache:2.1.20 '
48
48
49
49
//ijk音视频解码器,根据需要使用
50
- //implementation 'com.github.hty527.iPlayer:ijk:2.1.2 '
50
+ //implementation 'com.github.hty527.iPlayer:ijk:2.1.20 '
51
51
//exo音视频解码器,根据需要使用
52
- //implementation 'com.github.hty527.iPlayer:exo:2.1.2 '
52
+ //implementation 'com.github.hty527.iPlayer:exo:2.1.20 '
53
53
//选择exo音视频解码器时需引用
54
- //以下为必须项,SDK内部已引用
54
+ //以下为必须项,SDK内部已引用,集成时无需引用
55
55
//implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
56
56
//implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
57
57
//implementation "com.google.android.exoplayer:extension-rtmp:2.18.1"//rtmp直播流解码协议//(必需)
Original file line number Diff line number Diff line change @@ -77,6 +77,17 @@ dependencies {
77
77
implementation ' com.squareup.okhttp3:okhttp:3.11.0'
78
78
implementation ' com.google.code.gson:gson:2.8.5'
79
79
80
+ // 播放器SDK
81
+ implementation ' com.github.hty527.iPlayer:iplayer:2.1.20'
82
+ // UI交互组件,可根据需要使用
83
+ implementation ' com.github.hty527.iPlayer:widget:2.1.20'
84
+ // 音视频预缓存+边播边存,根据需要使用
85
+ implementation ' com.github.hty527.iPlayer:cache:2.1.20'
86
+ // ijk音视频解码器,根据自己需要实现
87
+ implementation ' com.github.hty527.iPlayer:ijk:2.1.20'
88
+ // exo音视频解码器,根据自己需要实现
89
+ implementation ' com.github.hty527.iPlayer:exo:2.1.20'
90
+
80
91
// //播放器SDK
81
92
// implementation project(':iplayer')
82
93
// //UI交互组件
@@ -85,20 +96,9 @@ dependencies {
85
96
// implementation project(':cache')
86
97
// //ijk音视频解码器
87
98
// implementation project(':ijk')
88
-
89
- // 播放器SDK
90
- implementation ' com.github.hty527.iPlayer:iplayer:2.1.2'
91
- // UI交互组件,可根据需要使用
92
- implementation ' com.github.hty527.iPlayer:widget:2.1.2'
93
- // 音视频预缓存+边播边存,根据需要使用
94
- implementation ' com.github.hty527.iPlayer:cache:2.1.2'
95
- // ijk音视频解码器,根据自己需要实现
96
- implementation ' com.github.hty527.iPlayer:ijk:2.1.2'
97
- // exo音视频解码器,根据自己需要实现
98
- implementation ' com.github.hty527.iPlayer:exo:2.1.2'
99
-
100
99
// exo音视频解码器
101
- implementation project(' :exo' )
100
+ // implementation project(':exo')
101
+
102
102
// 以下为必须项,SDK内部已引用
103
103
// implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
104
104
// implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
Original file line number Diff line number Diff line change 1
1
package com .android .videoplayer ;
2
2
3
- import android .app .Application ;
4
3
import android .content .Context ;
5
4
import android .content .Intent ;
6
-
5
+ import androidx . multidex . MultiDexApplication ;
7
6
import com .android .iplayer .base .BasePlayer ;
8
7
import com .android .iplayer .listener .OnWindowActionListener ;
9
8
import com .android .iplayer .manager .IVideoManager ;
20
19
* 2022/7/1
21
20
* Desc:
22
21
*/
23
- public class App extends Application {
22
+ public class App extends MultiDexApplication {
24
23
25
24
private static final String TAG ="App" ;
26
25
private static App mInstance ;
Original file line number Diff line number Diff line change 1
- /build
1
+ /build
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest
3
- package =" com.iplayer.cache" >
4
- <application />
5
- </manifest >
2
+ <manifest package =" com.android.iplayer.cache" ></manifest >
Original file line number Diff line number Diff line change 1
1
package com .danikula .videocache ;
2
2
3
- import com .iplayer .cache .BuildConfig ;
4
-
5
3
/**
6
4
* Indicates any error in work of {@link ProxyCache}.
7
5
*
8
6
* @author Alexey Danilov
9
7
*/
10
8
public class ProxyCacheException extends Exception {
11
9
12
- private static final String LIBRARY_VERSION = ". Version: " + BuildConfig . VERSION_NAME ;
10
+ private static final String LIBRARY_VERSION = "" ;
13
11
14
12
public ProxyCacheException (String message ) {
15
13
super (message + LIBRARY_VERSION );
Original file line number Diff line number Diff line change 1
1
ext {
2
2
sdk= [
3
3
versionCode : 20102 ,
4
- versionName : " 2.1.2 " // SDK版本号
4
+ versionName : " 2.1.20 " // SDK版本号
5
5
]
6
6
}
Original file line number Diff line number Diff line change 1
1
历史版本
2
2
3
- ### 2.1.2
3
+ ### 2.1.20
4
4
** 更新日期:** 2022-11-25<br />
5
5
** 更新内容:** <br />
6
6
> 1 . 播放器新增左右声道音量设置方法:setVolume(float leftVolume, float rightVolume);<br />
Original file line number Diff line number Diff line change 675
675
implementation 'com.github.hty527.iPlayer:exo:lastversion'
676
676
677
677
//SDK内部实现EXO解码器逻辑,必须依赖
678
- //以下为必须项,SDK内部已引用
678
+ //以下为必须项,SDK内部已引用,集成时无需引用
679
679
//implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
680
680
//implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
681
681
//implementation "com.google.android.exoplayer:extension-rtmp:2.18.1"//rtmp直播流解码协议//(必需)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package =" com.android.exoplayer" >
4
-
5
- </manifest >
2
+ <manifest package =" com.android.iplayer.exo" ></manifest >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- /build
1
+ /build
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android = " http://schemas.android.com/apk/res/android "
2
- package =" com.ijk.player " / >
1
+ <? xml version = " 1.0 " encoding = " utf-8 " ?>
2
+ < manifest package =" com.android.iplayer.ijk " ></ manifest >
You can’t perform that action at this time.
0 commit comments