BetterPlayerController constructor

BetterPlayerController(
  1. BetterPlayerConfiguration betterPlayerConfiguration, {
  2. BetterPlayerPlaylistConfiguration? betterPlayerPlaylistConfiguration,
  3. BetterPlayerDataSource? betterPlayerDataSource,
})

Implementation

BetterPlayerController(
  this.betterPlayerConfiguration, {
  this.betterPlayerPlaylistConfiguration,
  BetterPlayerDataSource? betterPlayerDataSource,
}) {
  this._betterPlayerControlsConfiguration =
      betterPlayerConfiguration.controlsConfiguration;
  _eventListeners.add(eventListener);
  if (betterPlayerDataSource != null) {
    setupDataSource(betterPlayerDataSource);
  }
}