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 Constructor Description ShadowMediaCodecList()
-
Method Summary
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()
-
Constructor Details
-
ShadowMediaCodecList
public ShadowMediaCodecList()
-
-
Method Details
-
addCodec
Add aMediaCodecInfo
to the list of MediaCodecInfos.- Parameters:
mediaCodecInfo
-MediaCodecInfo
describing the codec. UseMediaCodecInfoBuilder
to create an instance of it.
-
reset
-
native_getCodecCount
-
getNewCodecInfoAt
-
native_getGlobalSettings
-