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 voidaddCodec(MediaCodecInfo mediaCodecInfo)Add aMediaCodecInfoto the list of MediaCodecInfos.protected static MediaCodecInfogetNewCodecInfoAt(int index)protected static intnative_getCodecCount()protected static Map<String,Object>native_getGlobalSettings()static 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
-