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

Music seek is not working with SeekBar #6

Open
bip251 opened this issue Aug 11, 2021 · 0 comments
Open

Music seek is not working with SeekBar #6

bip251 opened this issue Aug 11, 2021 · 0 comments

Comments

@bip251
Copy link

bip251 commented Aug 11, 2021

I have tried to seek music by using SeekBar with various methods. I have tried to get seek bar progress on setOnSeekBarChangeListener inside the onStopTrackingTouch I get the progress and convert this progress into milliseconds and pass it to the Goonj Player seekTo but not working.

Please give me some solution because I have integrated this player in my app everything is working fine except this manual seek bar is not working with seekTo methods in Goong Player.

If I am wrong to do this logic then guide me to solve this issue.

I have written the sample code with this comment.

`binding.bigProgress.setOnSeekBarChangeListener(object :SeekBar.OnSeekBarChangeListener{
override fun onProgressChanged(p0: SeekBar?, p1: Int, p2: Boolean) {

        }

        override fun onStartTrackingTouch(p0: SeekBar?) {

        }

        override fun onStopTrackingTouch(p0: SeekBar?) {
            val newPOS = p0?.progress!! * 1000
            seekTo(newPOS) // Goonj Player seekTo method for change music seek position.
        }
    })`
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

1 participant