Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
762 stars 305 forks source link

How to remove slider from Xamarin CrossMediaManager Notification #863

Open 10acre opened 2 years ago

10acre commented 2 years ago

I am trying to remove the slider from the notification generated by the CrossMediaManager in Xamarin. I want to keep the Play/Pause buttons but I really want the slider to be removed. I tried using CrossMediaManager.Current.Notification.ShowNavigationControls = false; but it doesn't do anything. I'm not sure that is the right property to set but it doesn't look like it does anything anyway. I have tried moving it around in the code to find the right place but still nothing. I am testing on Android now but will also test on iOS. Any help would be appreciated.

Plugin.MediaManager - v 1.1.1 Android target 11

10acre commented 2 years ago

Any suggestions on this would be appreciated.

srknskr commented 2 years ago

CrossMediaManager.Current.StepSizeBackward = TimeSpan.FromSeconds(0); CrossMediaManager.Current.StepSizeForward = TimeSpan.FromSeconds(0);

10acre commented 2 years ago

Thanks for the suggestion srknskr, however, this does not work for me. It does remove the previous and next buttons but it leaves the slider.

Screenshot_20220531-143649 .

10acre commented 2 years ago

CrossMediaManager.Current.StepSizeBackward = TimeSpan.FromSeconds(0); CrossMediaManager.Current.StepSizeForward = TimeSpan.FromSeconds(0);

Does this work for you? Android?