Skip to content

Latest commit

 

History

History
37 lines (36 loc) · 748 Bytes

events.md

File metadata and controls

37 lines (36 loc) · 748 Bytes

Events

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.