How to avoid Robotic sound when playing video in IOS xamarin forms?


Now am facing issue in ios when playing video background sounds like robotic in Video while compression and uploaded in webserver sounds like distrated in xamarin forms ios. How to improve the qauality of sound in video, How to resolve this?

        NSError error = new NSError();
var outputURL = new NSUrl(outputPath);
    using (AVAsset asset = AVAsset.FromUrl(NSUrl.FromFilename(inputPath)))
                    using (AVAssetExportSession export = new AVAssetExportSession(asset, AVAssetExportSessionPreset.MediumQuality))
                        export.OutputFileType = AVFileType.Mpeg4;
                        export.ShouldOptimizeForNetworkUse = true;
                        export.OutputUrl = NSUrl.FromFilename(outputURL.ToString());
                        NSFileManager.DefaultManager.Remove(outputURL, out error);

Source: Xamarin.ios Questions

Categorised as Uncategorised Tagged , , , ,


Leave a Reply

Your email address will not be published. Required fields are marked *

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us