Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Exoplayer Pitch Xamarin forms

AjoyMandalAjoyMandal USMember ✭✭
edited February 23 in Xamarin.Forms

I used exoplayer into my xamarin forms cross platform app.
Regarding the pitch, I want range between -4 to + 4 semitones.
I used code for set pitch

var _context = global::Android.App.Application.Context;
 var defaultBandwidthMeter = new DefaultBandwidthMeter();
 var adaptiveTrackSelectionFactory = new AdaptiveTrackSelection.Factory(defaultBandwidthMeter);
 var defaultTrackSelector = new DefaultTrackSelector(adaptiveTrackSelectionFactory);
SimpleExoPlayer _player = ExoPlayerFactory.NewSimpleInstance(_context, defaultTrackSelector);
PlaybackParameters parameters = new PlaybackParameters(speed, pitch);

speed, pitch are the two variable.
How to apply pitch value (-4). I know negative pitch is not supported on Exoplayer.
But my requirement is , I can change pitch frequently -4 to +4. How it posssible. Please know me a possible way. I am waiting for response.

Sign In or Register to comment.