iris icon indicating copy to clipboard operation
iris copied to clipboard

关于媒体的后缀名问题

Open SenkjM opened this issue 1 year ago • 2 comments

我在使用时发现m4v后缀无法被识别,希望可以添加。 进一步希望可以加入对后缀名的自定义识别过滤而不是硬编码。

SenkjM avatar Oct 05 '25 13:10 SenkjM

给出基于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',
  ];
}

SenkjM avatar Oct 06 '25 02:10 SenkjM

未来会添加

nini22P avatar Oct 06 '25 04:10 nini22P