Package org.robolectric.shadows
Class ShadowMediaCodecList
java.lang.Object
org.robolectric.shadows.ShadowMediaCodecList
Implementation of
MediaCodecList
.
Custom MediaCodecInfo
can be created using MediaCodecInfoBuilder
and added to
the list of codecs via addCodec(android.media.MediaCodecInfo)
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCodec
(MediaCodecInfo mediaCodecInfo) Add aMediaCodecInfo
to the list of MediaCodecInfos.protected static MediaCodecInfo
getNewCodecInfoAt
(int index) protected static int
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
-