question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repeat mode is not working.

See original GitHub issue

🐛 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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
adambarathcommented, Aug 27, 2019

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

1reaction
adambarathcommented, Aug 24, 2019

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RepeatMode is not working on Android #1669
I tried to use RepeatMode but it is not working on Android (IOS works ok). Code To Reproduce TrackPlayer.setRepeatMode(RepeatMode.Track);.
Read more >
Solved: WHY does repeat button never work?
Solved: hi, use spotify, have done for a long time, repeat button is always a problem, it somtimes used to work on pc,...
Read more >
repeat mode not working in music - Apple Community
I understand you are having problems repeating music using the Music app in macOS Catalina. You'll find the information you need to get...
Read more >
What to Do If YouTube Loop Doesn't Work? [Follow the ...
However, what to do if the feature doesn't work? This post collects some solutions to “YouTube Loop not working” and shows other ways...
Read more >
Android animation does not repeat
This attribute (as well as repeatMode) does not work in code or XML. This makes repeating an entire set of animations difficult.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found