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
package id="Xamarin.Android.MP4Transcoder" version="1.0.9" targetFramework="monoandroid60"
public class VideoUtilityAndroid { public async Task<string> ConvertFileAsync( string inputPath, Action<int, int> onProgress = null) { File inputFile = new File(inputPath); if (Android.OS.Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat) { try { File ouputFile = new File(inputFile.CanonicalPath.Replace(".mp4", "_min.mp4")); double percent = 0; await Xamarin.MP4Transcoder.Transcoder.For960x540Format().ConvertAsync( inputFile, ouputFile, f => { // this is never called percent = f; onProgress?.Invoke((int)(f * (double)100), 100); }); // file is empty at this point return ouputFile.Path; } catch (Exception ex) { LogController.LogError(ex); } } return inputFile.Path; } }
The text was updated successfully, but these errors were encountered:
Could you please add some log?
Sorry, something went wrong.
No branches or pull requests
package id="Xamarin.Android.MP4Transcoder" version="1.0.9" targetFramework="monoandroid60"
The text was updated successfully, but these errors were encountered: