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
MediaCodec: add VP8 and VP9 codecs
This commit is contained in:
@@ -3,7 +3,7 @@ package android.media;
|
||||
public class MediaCodecList {
|
||||
|
||||
public static int getCodecCount() {
|
||||
return 4;
|
||||
return 6;
|
||||
}
|
||||
|
||||
public static MediaCodecInfo getCodecInfoAt(int index) {
|
||||
@@ -16,6 +16,10 @@ public class MediaCodecList {
|
||||
return new MediaCodecInfo("mp3", "audio/mpeg");
|
||||
case 3:
|
||||
return new MediaCodecInfo("opus", "audio/opus");
|
||||
case 4:
|
||||
return new MediaCodecInfo("vp8", "video/x-vnd.on2.vp8");
|
||||
case 5:
|
||||
return new MediaCodecInfo("vp9", "video/x-vnd.on2.vp9");
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user