You can listen to video player events like:
initialized,
play,
pause,
seekTo,
openFullscreen,
hideFullscreen,
setVolume,
progress,
finished,
exception,
controlsVisible,
controlsHiddenStart,
controlsHiddenEnd,
setSpeed,
changedSubtitles,
changedTrack,
changedPlayerVisibility,
changedResolution,
pipStart,
pipStop,
setupDataSource,
bufferingStart,
bufferingUpdate,
bufferingEnd,
changedPlaylistItem
After creating BetterPlayerController
you can add event listener this way:
_betterPlayerController.addEventsListener((event){
print("Better player event: ${event.betterPlayerEventType}");
});
Your event listener will be removed on dispose time automatically.