@UnstableApi
public final class ShadowMediaCodecConfig extends ExternalResource


A JUnit @Rule to configure Roboelectric's ShadowMediaCodec.

Registers a org.robolectric.shadows.ShadowMediaCodec.CodecConfig for each audio/video MIME type known by ExoPlayer.

Summary

Protected methods

void
void

Inherited methods

From org.junit.rules.ExternalResource
Statement
apply(Statement base, Description description)

Public methods

addSupportedMimeTypes

public void addSupportedMimeTypes(String[] mimeTypes)

forAllSupportedMimeTypes

public static ShadowMediaCodecConfig forAllSupportedMimeTypes()

withNoDefaultSupportedMimeTypes

public static ShadowMediaCodecConfig withNoDefaultSupportedMimeTypes()

Protected methods

after

protected void after()

before

protected void before()