iris
iris copied to clipboard
关于媒体的后缀名问题
我在使用时发现m4v后缀无法被识别,希望可以添加。 进一步希望可以加入对后缀名的自定义识别过滤而不是硬编码。
给出基于ai辅助后的补充列表
class Formats {
static const List<String> audio = [
'aac',
'aiff',
'alac',
'amr',
'ape',
'caf',
'cda',
'dsd',
'dts',
'flac',
'm4a',
'midi',
'mp3',
'mpc',
'oga',
'ogg',
'opus',
'raw',
'spx',
'tak',
'tta',
'wav',
'wma',
'wv',
];
static const List<String> video = [
'3gp',
'amv',
'asf',
'avi',
'divx',
'dpx',
'drc',
'dv',
'f4v',
'flv',
'h264',
'h265',
'hevc',
'm2ts',
'm4p',
'm4v',
'mkv',
'mng',
'mov',
'mp2',
'mp4',
'mpe',
'mpeg',
'mpg',
'mpv',
'mts',
'mxf',
'nsv',
'ogv',
'qt',
'rm',
'rmvb',
'ts',
'vob',
'webm',
'wmv',
'yuv',
];
static const List<String> image = [
'avif',
'bmp',
'exif',
'gif',
'heif',
'ico',
'jpeg',
'jpg',
'pbm',
'pgm',
'png',
'ppm',
'raw',
'svg',
'tiff',
'webp',
];
}
未来会添加