Back to Exoplayer

ShadowMediaCodecConfig (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/robolectric/ShadowMediaCodecConfig.html

latest2.4 KB
Original Source

Package com.google.android.exoplayer2.robolectric

Class ShadowMediaCodecConfig

  • java.lang.Object

    • org.junit.rules.ExternalResource
      • com.google.android.exoplayer2.robolectric.ShadowMediaCodecConfig
  • 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.

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() | |

- 

Methods inherited from class org.junit.rules.ExternalResource

apply

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

- 

forAllSupportedMimeTypes

public static[ShadowMediaCodecConfig](ShadowMediaCodecConfig.html "class in com.google.android.exoplayer2.robolectric")forAllSupportedMimeTypes()
- 

withNoDefaultSupportedMimeTypes

public static[ShadowMediaCodecConfig](ShadowMediaCodecConfig.html "class in com.google.android.exoplayer2.robolectric")withNoDefaultSupportedMimeTypes()
- 

addSupportedMimeTypes

public void addSupportedMimeTypes​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")... mimeTypes)
- 

before

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

- 

after

protected void after()

Overrides:after in class org.junit.rules.ExternalResource