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

Player.EventListener is not working #60

Open
pingothedoer opened this issue Nov 24, 2020 · 2 comments
Open

Player.EventListener is not working #60

pingothedoer opened this issue Nov 24, 2020 · 2 comments

Comments

@pingothedoer
Copy link

pingothedoer commented Nov 24, 2020

@JarvanMo I need a callback when video is finished. I have tried with the following code but not getting callback.

`

    videoView.player = SimpleExoPlayer.Builder(this).build()
    videoView.player.addListener(object : Player.EventListener {
        override fun onPlayerStateChanged(playWhenReady: Boolean, playbackState: Int) {
            Log.d("playbackState", "" + playbackState);
        }
    })`
@pingothedoer
Copy link
Author

@JarvanMo And what if i use the default player, don't set one.

@JarvanMo
Copy link
Owner

JarvanMo commented Dec 9, 2020

I'll take a look at this.

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