Skip to content

Commit c8209bd

Browse files
author
Hooyee-DJI
committed
Adapt the SDK4.13
1 parent 81b46f0 commit c8209bd

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

android-videostreamdecodingsample/app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,9 @@ dependencies {
9292
implementation 'androidx.recyclerview:recyclerview:1.0.0'
9393
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-rc01'
9494
implementation 'androidx.annotation:annotation:1.0.0'
95-
}
95+
}
96+
97+
// Please uncomment the following code if you use your own sdk version.
98+
// If can't get the file, Try a few times more
99+
apply from : "https://terra-1-g.djicdn.com/71a7d383e71a4fb8887a310eb746b47f/msdk/Android-CommonConfig/config_sample_all.gradle"
100+

android-videostreamdecodingsample/app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@
112112
-keepclassmembers class android.arch.** { *; }
113113
-keep class android.arch.** { *; }
114114
-dontwarn android.arch.**
115+
-ignorewarnings

android-videostreamdecodingsample/app/src/main/java/com/dji/videostreamdecodingsample/ConnectionActivity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ public void onProductConnect(BaseProduct baseProduct) {
137137
VideoDecodingApplication.updateProduct(baseProduct);
138138
}
139139
}
140+
141+
@Override
142+
public void onProductChanged(BaseProduct baseProduct) {
143+
notifyStatusChange();
144+
if (baseProduct != null) {
145+
VideoDecodingApplication.updateProduct(baseProduct);
146+
}
147+
}
148+
140149
@Override
141150
public void onComponentChange(BaseProduct.ComponentKey componentKey,
142151
BaseComponent oldComponent,

0 commit comments

Comments
 (0)