Surface MediaCodecInfo isHardwareAccelerated / isSoftwareOnly / isVendor
See original GitHub issueAndroid Q has added new isHardwareAccelerated
, isSoftwareOnly
and isVendor
methods to MediaCodecInfo
. We should consider:
- Surfacing this information in ExoPlayer’s
MediaCodecInfo
. It would probably make sense for us to approximate this information for earlier API levels as well (e.g. based on decoder name). - Once this information is surfaced, we should potentially look at whether it should be factored into track selection decisions. For example, preferring H264 over HEVC in cases where the H264 decoder is hardware and the HEVC decoder is software.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
MediaCodecInfo - Android Developers
... isAlias; isEncoder; isHardwareAccelerated; isSoftwareOnly; isVendor ... private static MediaCodecInfo selectCodec(String mimeType) { int numCodecs ...
Read more >media/java/android/media/MediaCodecInfo.java - Google Git
private static MediaCodecInfo selectCodec(String mimeType) { ... public final boolean isSoftwareOnly() { ... Query if the codec is hardware accelerated.
Read more >Class androidx.media3.exoplayer.mediacodec.MediaCodecUtil
Returns information about the preferred decoder for a given mime type. public static synchronized java.util.List<MediaCodecInfo> ...
Read more >Source Code for MediaCodecInfo.java - AndroidX Tech
MediaCodecInfo #isHardwareAccelerated() */ public final boolean hardwareAccelerated; /** * Whether the codec is software only.
Read more >android.media.MediaCodecList Java Examples
select the first codec that match a specific MIME type */ private static final MediaCodecInfo selectAudioCodec(final String mimeType) { if (DEBUG) Log.v(TAG ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@noamtamim Those prefixes have been introduced in Android P.
@kim-vde @ojw28 do you know if these new “c2” prefixes have existed before Android Q?