shts / StoriesProgressView

show horizontal progress like instagram stories.
Apache License 2.0
885 stars 203 forks source link

Pause the storyview while loading image not workinh #25

Open slowcatz opened 5 years ago

slowcatz commented 5 years ago

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

Can't pause the progress when loading image.

Give some alternative or fix this.

bolaware commented 5 years ago

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

tamirherman commented 5 years ago

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

    new Handler().post(new Runnable()
    {
        @Override
        public void run()
        {
            if(storiesProgressView != null)
                storiesProgressView.pause();
        }
    });
hulisani-mudimeli commented 5 years ago

@tamirherman you saved my life

Dalairajesh commented 5 years ago

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

samir-gawas commented 1 year ago

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