play method
play the current video
repeat
if is true the player go to Duration.zero before play
Implementation
Future<void> play({bool repeat = false}) async {
if (repeat) {
await seekTo(Duration.zero);
}
if (Platform.isWindows || Platform.isLinux) {
_videoPlayerControllerWindows?.play();
await getCurrentVolume();
} else {
await _videoPlayerController?.play();
await getCurrentVolume();
await getCurrentBrightness();
}
playerStatus.status.value = PlayerStatus.playing;
screenManager.setOverlays(false);
_hideTaskControls();
}