StoriesProgressView icon indicating copy to clipboard operation
StoriesProgressView copied to clipboard

Pause the storyview while loading image not workinh

Open slowcatz opened this issue 5 years ago • 5 comments

calling storyProgress.pause() inside onNext() doesnt behave properly.

Can't pause the progress when loading image.

Give some alternative or fix this.

slowcatz avatar May 31 '19 04:05 slowcatz

Here is an alternative bro https://github.com/bolaware/momentz . Has an example of how to load image from the internet, even play videos too

bolaware avatar Jul 10 '19 19:07 bolaware

Try to run it in main thread, something like this:

    new Handler().post(new Runnable()
    {
        @Override
        public void run()
        {
            if(storiesProgressView != null)
                storiesProgressView.pause();
        }
    });

tamirherman avatar Jul 15 '19 06:07 tamirherman

@tamirherman you saved my life

hulisani-mudimeli avatar Aug 09 '19 18:08 hulisani-mudimeli

Try to run it in main thread, something like this:

    new Handler().post(new Runnable()
    {
        @Override
        public void run()
        {
            if(storiesProgressView != null)
                storiesProgressView.pause();
        }
    });

How to play video? accrording to progressbar

Dalairajesh avatar Oct 12 '19 03:10 Dalairajesh

One can use view.post() to Update UI instead of handler

samir-gawas avatar Apr 26 '23 09:04 samir-gawas