@Implements(value=android.media.MediaCodecList.class, minSdk=21) public class ShadowMediaCodecList extends Object
MediaCodecList
.
Custom MediaCodecInfo
can be created using MediaCodecInfoBuilder
and added to
the list of codecs via addCodec(android.media.MediaCodecInfo)
.
Constructor | Description |
---|---|
ShadowMediaCodecList() |
Modifier and Type | Method | Description |
---|---|---|
static void |
addCodec(MediaCodecInfo mediaCodecInfo) |
Add a
MediaCodecInfo to the list of MediaCodecInfos. |
protected static MediaCodecInfo |
getNewCodecInfoAt(int index) |
|
protected static int |
native_getCodecCount() |
|
static void |
reset() |
public static void addCodec(MediaCodecInfo mediaCodecInfo)
MediaCodecInfo
to the list of MediaCodecInfos.mediaCodecInfo
- MediaCodecInfo
describing the codec. Use MediaCodecInfoBuilder
to create an instance of it.@Resetter public static void reset()
@Implementation protected static int native_getCodecCount()
@Implementation protected static MediaCodecInfo getNewCodecInfoAt(int index)