File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
src/main/java/com/tencent/iot/video/link/encoder Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ android {
3737
3838dependencies {
3939 api fileTree(include : [' *.jar' , ' *.aar' ], dir : ' libs' )
40- implementation ' androidx.appcompat:appcompat:1.2.0'
41- implementation ' com.google.android.material:material:1.2.1'
4240 testImplementation ' junit:junit:4.+'
4341 androidTestImplementation ' androidx.test.ext:junit:1.1.2'
4442 androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
@@ -51,7 +49,7 @@ dependencies {
5149// }
5250// api 'com.tencent.iot.thirdparty.android:xp2p-sdk:2.4.23'
5351 api ' com.tencent.iot.thirdparty.android:xp2p-sdk:2.4.32'
54- api ' com.tencent.iot.thirdparty.android:media-server:1.0.2 '
52+ api ' com.tencent.iot.thirdparty.android:media-server:1.0.3 '
5553 api ' io.github.sundoggynew:iot-soundtouch:1.0.0'
5654}
5755
Original file line number Diff line number Diff line change 99import android .os .Build ;
1010import android .util .Log ;
1111
12- import androidx .annotation .RequiresApi ;
13-
14-
1512import com .tencent .iot .video .link .listener .OnEncodeListener ;
1613import com .tencent .iot .video .link .param .AudioEncodeParam ;
1714import com .tencent .iot .video .link .param .MicParam ;
Original file line number Diff line number Diff line change 11package com .tencent .iot .video .link .encoder ;
22
3+ import android .annotation .TargetApi ;
34import android .media .MediaCodec ;
45import android .media .MediaCodecInfo ;
56import android .media .MediaFormat ;
67import android .os .Build ;
78import android .os .Bundle ;
89import android .util .Log ;
910
10- import androidx .annotation .RequiresApi ;
11-
1211import com .tencent .iot .video .link .listener .OnEncodeListener ;
1312import com .tencent .iot .video .link .param .VideoEncodeParam ;
1413
@@ -66,7 +65,7 @@ private void initMediaCodec() {
6665 }
6766
6867 //描述平均位速率(以位/秒为单位)的键。 关联的值是一个整数
69- @ RequiresApi ( api = Build .VERSION_CODES .KITKAT )
68+ @ TargetApi ( Build .VERSION_CODES .KITKAT )
7069 public void setVideoBitRate (int bitRate ) {
7170 int nowBitrate = videoEncodeParam .getBitRate ();
7271 int nowWidth = videoEncodeParam .getWidth ();
You can’t perform that action at this time.
0 commit comments