api-impl: add some methods to make the WhatsApp video player functional

This commit is contained in:
Julian Winkler
2025-10-18 21:18:19 +02:00
parent 72e86cba13
commit 82477865ad
14 changed files with 116 additions and 5 deletions

View File

@@ -2,6 +2,8 @@ package android.media;
public class MediaCodecList {
public MediaCodecList(int kind) {}
public static int getCodecCount() {
return 6;
}
@@ -25,4 +27,11 @@ public class MediaCodecList {
}
}
public MediaCodecInfo[] getCodecInfos() {
MediaCodecInfo[] infos = new MediaCodecInfo[getCodecCount()];
for (int i=0; i<infos.length; i++)
infos[i] = getCodecInfoAt(i);
return infos;
}
}