We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Thank you for your request. I have added it to the roadmap and will be working on it soon.
Sorry, something went wrong.
No branches or pull requests
Plugin(s)
Current problem
The file compressor plugin currently only supports images.
Extending this to handle other file types, primarily video would be awesome.
Preferred solution
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;
};
Alternative options
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;
};
Additional context
Ability to use webp and webm would be great too
Before submitting
The text was updated successfully, but these errors were encountered: