2019-12-10 00:19:28 +08:00
|
|
|
export const SupportedFormats = {
|
|
|
|
Photos: [
|
|
|
|
'gif',
|
|
|
|
'jpeg', 'jpg', 'jpe',
|
|
|
|
'png',
|
|
|
|
'webp',
|
|
|
|
'svg'
|
|
|
|
],
|
|
|
|
Videos: [
|
|
|
|
'mp4',
|
|
|
|
'webm',
|
|
|
|
'ogv',
|
2019-12-10 16:36:14 +08:00
|
|
|
'ogg'
|
2019-12-10 00:19:28 +08:00
|
|
|
],
|
|
|
|
MetaFiles: [
|
|
|
|
'gpx'
|
|
|
|
],
|
2019-12-10 16:36:14 +08:00
|
|
|
TranscodeNeed: {
|
|
|
|
Photos: <string[]>[],
|
|
|
|
Videos: [
|
|
|
|
'avi',
|
|
|
|
'mkv',
|
|
|
|
'mov',
|
|
|
|
'wmv',
|
|
|
|
'flv'
|
|
|
|
],
|
|
|
|
},
|
2019-12-10 00:19:28 +08:00
|
|
|
WithDots: {
|
|
|
|
Photos: <string[]>[],
|
|
|
|
Videos: <string[]>[],
|
|
|
|
MetaFiles: <string[]>[],
|
|
|
|
}
|
|
|
|
};
|
2019-12-10 16:36:14 +08:00
|
|
|
SupportedFormats.Photos = SupportedFormats.Photos.concat(SupportedFormats.TranscodeNeed.Photos);
|
|
|
|
SupportedFormats.Videos = SupportedFormats.Videos.concat(SupportedFormats.TranscodeNeed.Videos);
|
2019-12-10 00:19:28 +08:00
|
|
|
SupportedFormats.WithDots.Photos = SupportedFormats.Photos.map(f => '.' + f);
|
|
|
|
SupportedFormats.WithDots.Videos = SupportedFormats.Videos.map(f => '.' + f);
|
|
|
|
SupportedFormats.WithDots.MetaFiles = SupportedFormats.MetaFiles.map(f => '.' + f);
|
|
|
|
|