startTimer method
void
startTimer()
Implementation
void startTimer() {
if (_timer != null) {
_timer!.cancel();
}
_timer = Timer(const Duration(seconds: 3), () {
if (isControlsVisible.value && player.isPlaying) {
_animationController.reset();
isControlsVisible.value = false;
}
});
}