Skip to content

Player.EventListener is not working #60

@pingothedoer

Description

@pingothedoer

@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);
        }
    })`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions