shts / StoriesProgressView

show horizontal progress like instagram stories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pause the storyview while loading image not workinh

slowcatz opened this issue · comments

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

Can't pause the progress when loading image.

Give some alternative or fix this.

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

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 you saved my life

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

commented

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