Class ShadowMediaCodecConfig

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public final class ShadowMediaCodecConfig
    extends 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 Detail

      • addSupportedMimeTypes

        public void addSupportedMimeTypes​(String... mimeTypes)
      • before

        protected void before()
                       throws Throwable
        Overrides:
        before in class org.junit.rules.ExternalResource
        Throws:
        Throwable
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource