Skip to content

Commit cdafdd5

Browse files
committed
secure codecs set as low priority
1 parent 9016b91 commit cdafdd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

encoder/src/main/java/com/pedro/encoder/utils/CodecUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,8 @@ private static CodecPriority checkCodecPriority(String name) {
475475
//maybe only broke on samsung with Android 12+ using YouTube and AWS MediaLive
476476
// but set as ultra low priority in all cases.
477477
if (name.equalsIgnoreCase("c2.sec.aac.encoder")) return CodecPriority.ULTRA_LOW;
478+
//not working in few devices but maybe usable in others.
479+
else if (name.toLowerCase().contains(".secure")) return CodecPriority.ULTRA_LOW;
478480
//broke on few devices using YouTube and AWS MediaLive
479481
else if (name.equalsIgnoreCase("omx.google.aac.encoder")) return CodecPriority.LOW;
480482
else return CodecPriority.NORMAL;

0 commit comments

Comments
 (0)