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 ofMediaCodecList
.Custom
MediaCodecInfo
can be created usingMediaCodecInfoBuilder
and added to the list of codecs viaaddCodec(android.media.MediaCodecInfo)
.
-
-
Constructor Summary
Constructors Constructor Description ShadowMediaCodecList()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addCodec(MediaCodecInfo mediaCodecInfo)
Add aMediaCodecInfo
to the list of MediaCodecInfos.protected static MediaCodecInfo
getNewCodecInfoAt(int index)
protected static int
native_getCodecCount()
protected static Map<String,Object>
native_getGlobalSettings()
static void
reset()
-
-
-
Method Detail
-
addCodec
public static void addCodec(MediaCodecInfo mediaCodecInfo)
Add aMediaCodecInfo
to the list of MediaCodecInfos.- Parameters:
mediaCodecInfo
-MediaCodecInfo
describing the codec. UseMediaCodecInfoBuilder
to create an instance of it.
-
reset
@Resetter public static void reset()
-
native_getCodecCount
@Implementation protected static int native_getCodecCount()
-
getNewCodecInfoAt
@Implementation protected static MediaCodecInfo getNewCodecInfoAt(int index)
-
native_getGlobalSettings
@Implementation(minSdk=23) protected static Map<String,Object> native_getGlobalSettings()
-
-