File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
encoder/src/main/java/com/pedro/encoder/utils Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ allprojects {
51
51
}
52
52
}
53
53
dependencies {
54
- implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.1.3 '
54
+ implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.1.4 '
55
55
}
56
56
57
57
```
Original file line number Diff line number Diff line change 3
3
buildscript {
4
4
ext. kotlin_version = ' 1.5.31'
5
5
ext. library_group = " com.github.pedroSG94"
6
- ext. version_code = 213
7
- ext. version_name = " 2.1.3 "
6
+ ext. version_code = 214
7
+ ext. version_name = " 2.1.4 "
8
8
9
9
repositories {
10
10
google()
Original file line number Diff line number Diff line change @@ -349,7 +349,9 @@ private static boolean isHardwareAccelerated(MediaCodecInfo codecInfo) {
349
349
*/
350
350
private static boolean isSoftwareOnly (MediaCodecInfo mediaCodecInfo ) {
351
351
if (Build .VERSION .SDK_INT >= 29 ) {
352
- return mediaCodecInfo .isSoftwareOnly ();
352
+ //mediaCodecInfo.isSoftwareOnly() is not working on emulators.
353
+ //Use !mediaCodecInfo.isHardwareAccelerated() to make sure that all codecs are classified as software or hardware
354
+ return !mediaCodecInfo .isHardwareAccelerated ();
353
355
}
354
356
String name = mediaCodecInfo .getName ().toLowerCase ();
355
357
if (name .startsWith ("arc." )) { // App Runtime for Chrome (ARC) codecs
You can’t perform that action at this time.
0 commit comments