MediaCodecCapability.fromMap constructor

MediaCodecCapability.fromMap(
  1. Map<Object?, Object?> map
)

Creates a MediaCodecCapability from a map returned by the native platform.

Implementation

factory MediaCodecCapability.fromMap(Map<Object?, Object?> map) {
  return MediaCodecCapability(
    name: _readString(map, 'name'),
    isEncoder: _readBool(map, 'isEncoder'),
    supportedTypes: _readStringList(map, 'supportedTypes'),
    isHardwareAccelerated: _readBool(map, 'isHardwareAccelerated'),
    isSoftwareOnly: _readBool(map, 'isSoftwareOnly'),
    isVendor: _readBool(map, 'isVendor'),
    supportedVideoTypes: _readStringList(map, 'supportedVideoTypes'),
    supportedAudioTypes: _readStringList(map, 'supportedAudioTypes'),
  );
}