Giter Club home page Giter Club logo

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

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

from gsyvideoplayer.

Comments (3)

CarGuo avatar CarGuo commented on May 18, 2024

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

@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://多加了一个这个

from gsyvideoplayer.

Lsy1992 avatar Lsy1992 commented on May 18, 2024

作者很棒棒哦

from gsyvideoplayer.

janecer avatar janecer commented on May 18, 2024

ok

from gsyvideoplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.