@UnstableApi
class ShadowMediaCodecConfig : 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 functions

Unit
Unit

Inherited functions

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

Public functions

addSupportedMimeTypes

fun addSupportedMimeTypes(mimeTypes: Array<String!>!): Unit

forAllSupportedMimeTypes

java-static fun forAllSupportedMimeTypes(): ShadowMediaCodecConfig!

withNoDefaultSupportedMimeTypes

java-static fun withNoDefaultSupportedMimeTypes(): ShadowMediaCodecConfig!

Protected functions

after

protected fun after(): Unit

before

protected fun before(): Unit