Package org.robolectric.shadows
Class ShadowMediaCodecList
java.lang.Object
org.robolectric.shadows.ShadowMediaCodecList
@Implements(value=android.media.MediaCodecList.class,
minSdk=21)
public class ShadowMediaCodecList
extends Object
Implementation of
MediaCodecList.
Custom MediaCodecInfo can be created using MediaCodecInfoBuilder and added to
the list of codecs via addCodec(android.media.MediaCodecInfo).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCodec(MediaCodecInfo mediaCodecInfo) Add aMediaCodecInfoto the list of MediaCodecInfos.protected static MediaCodecInfogetNewCodecInfoAt(int index) protected static intstatic voidreset()
-
Constructor Details
-
ShadowMediaCodecList
public ShadowMediaCodecList()
-
-
Method Details
-
addCodec
Add aMediaCodecInfoto the list of MediaCodecInfos.- Parameters:
mediaCodecInfo-MediaCodecInfodescribing the codec. UseMediaCodecInfoBuilderto create an instance of it.
-
reset
-
native_getCodecCount
-
getNewCodecInfoAt
-
native_getGlobalSettings
-