Skip to content

Commit 9c324dc

Browse files
committed
Release 2.1.7
1 parent 9660784 commit 9c324dc

23 files changed

Lines changed: 45 additions & 4 deletions

PLDroidPlayerDemo/app/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion 14
1010
targetSdkVersion 27
1111
versionCode 12
12-
versionName "2.1.6"
12+
versionName "2.1.7"
1313
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
1414
}
1515
buildTypes {
@@ -27,10 +27,13 @@ android {
2727
}
2828

2929
dependencies {
30-
implementation files('libs/pldroid-player-2.1.6.jar')
30+
implementation files('libs/pldroid-player-2.1.7.jar')
3131
implementation 'com.android.support:appcompat-v7:27.1.0'
3232
implementation 'com.android.support:recyclerview-v7:27.1.0'
3333
implementation 'com.journeyapps:zxing-android-embedded:3.0.2@aar'
3434
implementation 'com.google.zxing:core:3.2.0'
3535
implementation 'com.bugsnag:bugsnag-android-ndk:1.1.2'
36+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.4'
37+
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
38+
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
3639
}
-77.3 KB
Binary file not shown.
77.2 KB
Binary file not shown.

PLDroidPlayerDemo/app/src/main/java/com/pili/pldroid/playerdemo/PLVideoViewActivity.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected void onCreate(Bundle savedInstanceState) {
6262
options.setInteger(AVOptions.KEY_MEDIACODEC, codec);
6363
options.setInteger(AVOptions.KEY_LIVE_STREAMING, mIsLiveStreaming ? 1 : 0);
6464
boolean disableLog = getIntent().getBooleanExtra("disable-log", false);
65-
// options.setString(AVOptions.KEY_DNS_SERVER, "127.0.0.1");
65+
// options.setString(AVOptions.KEY_DNS_SERVER, "127.0.0.1");
6666
options.setInteger(AVOptions.KEY_LOG_LEVEL, disableLog ? 5 : 0);
6767
boolean cache = getIntent().getBooleanExtra("cache", false);
6868
if (!mIsLiveStreaming && cache) {
@@ -80,6 +80,7 @@ protected void onCreate(Bundle savedInstanceState) {
8080
int startPos = getIntent().getIntExtra("start-pos", 0);
8181
options.setInteger(AVOptions.KEY_START_POSITION, startPos * 1000);
8282
}
83+
// options.setString(AVOptions.KEY_COMP_DRM_KEY,"cWoosgRk");
8384
mVideoView.setAVOptions(options);
8485

8586
// Set some listeners
@@ -189,6 +190,12 @@ public void onInfo(int what, int extra) {
189190
case PLOnInfoListener.MEDIA_INFO_CACHE_DOWN:
190191
Log.i(TAG, "Cache done");
191192
break;
193+
case PLOnInfoListener.MEDIA_INFO_STATE_CHANGED_PAUSED:
194+
Log.i(TAG, "State paused");
195+
break;
196+
case PLOnInfoListener.MEDIA_INFO_STATE_CHANGED_RELEASED:
197+
Log.i(TAG, "State released");
198+
break;
192199
default:
193200
break;
194201
}
@@ -318,4 +325,4 @@ public void run() {
318325
}
319326
});
320327
}
321-
}
328+
}
124 KB
Binary file not shown.
124 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
120 KB
Binary file not shown.
76.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)