Search in sources :

Example 6 with DecoderQueryException

use of com.google.android.exoplayer2.mediacodec.MediaCodecUtil.DecoderQueryException in project ExoPlayer by google.

the class DashTest method shouldSkipAdaptiveTest.

// Internal.
private static boolean shouldSkipAdaptiveTest(String mimeType) throws DecoderQueryException {
    MediaCodecInfo decoderInfo = MediaCodecUtil.getDecoderInfo(mimeType, false);
    assertNotNull(decoderInfo);
    if (decoderInfo.adaptive) {
        return false;
    }
    assertTrue(Util.SDK_INT < 21);
    return true;
}
Also used : MediaCodecInfo(com.google.android.exoplayer2.mediacodec.MediaCodecInfo)

Aggregations

MediaCodecInfo (com.google.android.exoplayer2.mediacodec.MediaCodecInfo)3 SuppressLint (android.annotation.SuppressLint)2 Point (android.graphics.Point)2 ExoPlaybackException (com.google.android.exoplayer2.ExoPlaybackException)2 DecoderQueryException (com.google.android.exoplayer2.mediacodec.MediaCodecUtil.DecoderQueryException)2 CodecException (android.media.MediaCodec.CodecException)1 CryptoException (android.media.MediaCodec.CryptoException)1 MediaCrypto (android.media.MediaCrypto)1 MediaFormat (android.media.MediaFormat)1 Format (com.google.android.exoplayer2.Format)1 DrmInitData (com.google.android.exoplayer2.drm.DrmInitData)1 FrameworkMediaCrypto (com.google.android.exoplayer2.drm.FrameworkMediaCrypto)1 UnsupportedDrmException (com.google.android.exoplayer2.drm.UnsupportedDrmException)1 DecoderInitializationException (com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException)1 BehindLiveWindowException (com.google.android.exoplayer2.source.BehindLiveWindowException)1