FlickManager constructor
FlickManager({
- Function? onVideoEnd,
- GetPlayerControlsTimeout? getPlayerControlsTimeout,
- required VideoPlayerController videoPlayerController,
- bool autoInitialize = true,
- bool autoPlay = true,
Implementation
FlickManager({
this.onVideoEnd,
GetPlayerControlsTimeout? getPlayerControlsTimeout,
required VideoPlayerController videoPlayerController,
/// Auto initialize the video.
bool autoInitialize = true,
/// Auto-play video once initialized.
bool autoPlay = true,
}) : this.getPlayerControlsTimeout =
getPlayerControlsTimeout ?? getPlayerControlsTimeoutDefault {
_flickControlManager = FlickControlManager(
flickManager: this,
);
_flickVideoManager = FlickVideoManager(
flickManager: this, autoPlay: autoPlay, autoInitialize: autoInitialize);
_flickDisplayManager = FlickDisplayManager(
flickManager: this,
);
_flickVideoManager!._handleChangeVideo(videoPlayerController);
}