Skip to content

Commit

Permalink
Exposes all active eventListener (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Letalus authored Jul 8, 2021
1 parent ba04998 commit 2c8fd42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/core/better_player_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class BetterPlayerController {
///between flutter high level code and lower level native code.
VideoPlayerController? videoPlayerController;

///Expose all active eventListeners
List<Function(BetterPlayerEvent)?> get eventListeners => _eventListeners;

/// Defines a event listener where video player events will be send.
Function(BetterPlayerEvent)? get eventListener =>
betterPlayerConfiguration.eventListener;
Expand Down

0 comments on commit 2c8fd42

Please sign in to comment.