PlayVideoController constructor
PlayVideoController({})
PlayVideoController is the controller passed in the VideoPlayer widget It Contain common functionality and my differs according to the input
To access the state that contain all funtionality It must be given as a controller in the PlayVideo
Implementation
PlayVideoController({
required this.videos,
this.startIndex = 0,
this.isAutoPlay = true,
this.startingDuration = Duration.zero,
this.fit = BoxFit.contain,
this.wakeLock = true,
this.aspectRatio,
}) {
try {
MediaKit.ensureInitialized();
} catch (_) {}
}