Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

缓冲进度显示 #13

Open
esterTion opened this issue Oct 30, 2016 · 2 comments
Open

缓冲进度显示 #13

esterTion opened this issue Oct 30, 2016 · 2 comments

Comments

@esterTion
Copy link

已缓冲只会显示buffered的第一段,如果跳了就不显示了

不知道还有人嘛_(:3」∠)_

@esterTion
Copy link
Author

esterTion commented Oct 31, 2016

我自己改了改,解决方案可能不是很好
ABPlayer.js:678 (addEventListener progress)

                    try {
                        var s,e,i=0;
                        for(;i<this.buffered.length;i++){
                            if( this.currentTime>this.buffered.start(i) && this.currentTime<this.buffered.end(i) ){
                                s = this.buffered.start(i);
                                e = this.buffered.end(i);
                                break;
                            }
                        }
                        if(i==this.buffered.length)
                            throw 'No Range Found';
                    }

@myfreeer
Copy link

可以考虑使用Pull request功能提交代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants