Class ShadowMediaCodecConfig
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- com.google.android.exoplayer2.robolectric.ShadowMediaCodecConfig
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class ShadowMediaCodecConfig extends org.junit.rules.ExternalResource
A JUnit @Rule to configure Roboelectric'sShadowMediaCodec
.Registers a
ShadowMediaCodec.CodecConfig
for each audio/video MIME type known by ExoPlayer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSupportedMimeTypes(String... mimeTypes)
protected void
after()
protected void
before()
static ShadowMediaCodecConfig
forAllSupportedMimeTypes()
static ShadowMediaCodecConfig
withNoDefaultSupportedMimeTypes()
-
-
-
Method Detail
-
forAllSupportedMimeTypes
public static ShadowMediaCodecConfig forAllSupportedMimeTypes()
-
withNoDefaultSupportedMimeTypes
public static ShadowMediaCodecConfig withNoDefaultSupportedMimeTypes()
-
addSupportedMimeTypes
public void addSupportedMimeTypes(String... mimeTypes)
-
before
protected void before() throws Throwable
- Overrides:
before
in classorg.junit.rules.ExternalResource
- Throws:
Throwable
-
after
protected void after()
- Overrides:
after
in classorg.junit.rules.ExternalResource
-
-