HamidrezaAmz / MagicalExoPlayer

The Easiest Way To Play/Stream Video And Audio Using Google ExoPlayer In Your Android Application
MIT License
345 stars 77 forks source link

Are there any callbacks here? #31

Closed edward1988 closed 3 years ago

edward1988 commented 4 years ago

Hi, thanks for your awesome player, but i need to know when video is over or video loaded or something else. Can i get some callback from this player?

chitgoks commented 4 years ago

looking for the same thing

HamidrezaAmz commented 3 years ago

Hey @chitgoks @edward1988 New version of magicalExoPlayer is released.

You can use AndExoPlayerListener and use callbacks that available there.

`
fun onExoPlayerStart() {}

fun onExoPlayerFinished() {}

fun onExoPlayerLoading() {}

fun onExoPlayerError(errorMessage: String?) {}

fun onExoBuffering() {}

fun onExoEnded() {}

fun onExoIdle() {}

fun onExoReady() {}

`