Reputation: 43
I've tested on Nexus 5 that
codecInfo.isFeatureSupported(MediaCodecInfo.CodecCapabilities.FEATURE_AdaptivePlayback)
returns false.
Does anyone know what chipset/software codec has supported the feature?
Thanks
Upvotes: 3
Views: 2360
Reputation: 811
This is supported on most Nexus devices past KK MR1. Note, that it is HW video decoders only.
Nexus 5 (KK MR1): // Qualcomm Snapdragon 800
Nexus 4 and Nexus 7 v2013 (KK MR1): // Qualcomm Snapdragon S4 Pro APQ8064
Nexus 10 (KK MR1) // Samsung Exynos 5250
Notable exceptions:
For non-Nexus devices you need to query the codecs yourself. Here is my code-snippet that I did for the query.
int numCodecs = MediaCodecList.getCodecCount();
for (int i = 0; i < numCodecs; i++) {
MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i);
String name = codecInfo.getName();
Log.i(TAG, "Examinig " + (codecInfo.isEncoder() ? "encoder" : "decoder") + ": " + name);
for(String type: codecInfo.getSupportedTypes()) {
boolean ap = codecInfo.getCapabilitiesForType(type).isFeatureSupported(MediaCodecInfo.CodecCapabilities.FEATURE_AdaptivePlayback);
Log.i(TAG, "supports adaptive playback: " + ap);
}
}
Upvotes: 4