MediaCodecCapability.fromMap constructor
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'),
);
}