docs/doc/reference/com/google/android/exoplayer2/robolectric/ShadowMediaCodecConfig.html
Package com.google.android.exoplayer2.robolectric
All Implemented Interfaces:org.junit.rules.TestRule
public final classShadowMediaCodecConfigextends org.junit.rules.ExternalResource
A JUnit @Rule to configure Roboelectric's ShadowMediaCodec.
Registers a ShadowMediaCodec.CodecConfig for each audio/video MIME type known by ExoPlayer.
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() | |
-
apply
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static[ShadowMediaCodecConfig](ShadowMediaCodecConfig.html "class in com.google.android.exoplayer2.robolectric")forAllSupportedMimeTypes()
-
public static[ShadowMediaCodecConfig](ShadowMediaCodecConfig.html "class in com.google.android.exoplayer2.robolectric")withNoDefaultSupportedMimeTypes()
-
public void addSupportedMimeTypes([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")... mimeTypes)
-
protected void before()
throws[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")
Overrides:before in class org.junit.rules.ExternalResourceThrows:Throwable
-
protected void after()
Overrides:after in class org.junit.rules.ExternalResource