XamarinMediaManager: Repeat mode is not working.

🐛 Bug Report

Repeat mode should work if I am assigning the value.

//Constructor
  public VideoView()
        {
             InitializeComponent();
            events();
            PlayHLSVideoAsync();
            Repeat();
            setSpeed();
            setVolume();
        }

        private void events() {

            CrossMediaManager.Current.PositionChanged += PositionChangedFunc;
            CrossMediaManager.Current.StateChanged += StateChangedFunc;             
        }

        private void Repeat() {
            CrossMediaManager.Current.RepeatMode = RepeatMode.One;
            //CrossMediaManager.Current.VolumeManager.Balance = 1;
        }

Configuration

Version: 1.x

Platform:

  • 🐒 Xamarin.Forms

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (12 by maintainers)

Commits related to this issue

Most upvoted comments

I created a PR, so bug on iOS will be fixed by the next release after my PR got approved

The problem is that we have to sync the native Queue with the MediaManager Queue. It is easy to do this one way, from MediaManager to Native, but if shuffle is passed to the native system it is hard to sync the shuffled list back to Mediamanager.

My idea is that maybe I disable native shuffle, and instead handle it fully in MediaManager. Then when a shuffle is done, we simple sync the shuffled queue to the native queue.

I aggree with you. iOS is a complete mess itself. I was not able to find any whole description about AVPlayerLooper and QueuePlayer, so I have a lot of questions about how to these tools on iOS. By the way I fixed the repeat and shuffle issues on iOS by handling all the stuff in AppleMediaPlayer class. I’ll make a code cleaning and after that may I ask you kindly to review my code and code changes?