You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: add some methods to make the WhatsApp video player functional
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user