The file compressor plugin currently only supports images.
Extending this to handle other file types, primarily video would be awesome.
Extend the plugin in have compressVideo method.
eg
const compressVideo = async () => {
const { path } = await FileCompressor.compressVideo({
mimeType: 'video/mp4',
path: 'content://...',
quality: 0.7
});
return path;
};
maybe transcodeVideo instead
const transcodeVideo = async () => {
const { path } = await FileCompressor.transcodeVideo({
mimeType: 'video/mp4',
path: 'content://...',
quality: 0.7,
maintainAspect: true,
height: 480
});
return path;
};
Ability to use webp and webm would be great too
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too