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
25 lines
472 B
Java
25 lines
472 B
Java
package android.media;
|
|
|
|
public class MediaCodecList {
|
|
|
|
public static int getCodecCount() {
|
|
return 4;
|
|
}
|
|
|
|
public static MediaCodecInfo getCodecInfoAt(int index) {
|
|
switch (index) {
|
|
case 0:
|
|
return new MediaCodecInfo("aac", "audio/mp4a-latm");
|
|
case 1:
|
|
return new MediaCodecInfo("h264", "video/avc");
|
|
case 2:
|
|
return new MediaCodecInfo("mp3", "audio/mpeg");
|
|
case 3:
|
|
return new MediaCodecInfo("opus", "audio/opus");
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
}
|