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

JCVideoPlayer有一个这个样的问题“网络慢时,播放进度拖拉太快 只会停留在第一次拖进度哪里,要等加载完成后才能拖拉下一次。 #497”,你这个貌似木有。可以问一下主要是哪里引起的? #1

Closed
janecer opened this issue Nov 22, 2016 · 3 comments

Comments

@janecer
Copy link

janecer commented Nov 22, 2016

No description provided.

@CarGuo
Copy link
Owner

CarGuo commented Nov 22, 2016

主要是拖动进度条的时候做了处理,就是在停止拖动抬起手的时候做处理:

@Override
    public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
    }

    @Override
    public void onStartTrackingTouch(SeekBar seekBar) {

    }

    /***
     * 拖动进度条
     */
    @Override
    public void onStopTrackingTouch(SeekBar seekBar) {
        if (GSYVideoManager.instance().getMediaPlayer() != null && GSYVideoManager.instance().getMediaPlayer().isPlaying()) {
            int time = seekBar.getProgress() * getDuration() / 100;
            GSYVideoManager.instance().getMediaPlayer().seekTo(time);
        }

老版本的JC我记得是在

 @Override
    public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {

做了处理,所以效果不大好。
还在有onTouch里面

if(id == R.id.progress) {
            switch (event.getAction()) {
                case MotionEvent.ACTION_DOWN:
                case MotionEvent.ACTION_MOVE://多加了一个这个

@Lsy1992
Copy link

Lsy1992 commented Nov 22, 2016

作者很棒棒哦

@janecer
Copy link
Author

janecer commented Nov 22, 2016

ok

@janecer janecer closed this as completed Nov 22, 2016
This was referenced Jun 30, 2018
CarGuo pushed a commit that referenced this issue Dec 20, 2018
解决GSYVideoHelper切换全屏导致定时任务停止的问题
@Tkorn Tkorn mentioned this issue Aug 11, 2020
hudawei996 pushed a commit to hudawei996/GSYVideoPlayer that referenced this issue Jun 9, 2022
解决GSYVideoHelper切换全屏导致定时任务停止的问题
@itsgm itsgm mentioned this issue Aug 24, 2022
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

3 participants