isVideoPlaying method
dynamic
isVideoPlaying()
check the playing status
Implementation
isVideoPlaying() {
isPlaying = videoPlayerController!.value.isPlaying;
if (isVideoEnd) {
playCtrlIcon = playerControls!.replayIcon;
} else if (videoPlayerController!.value.isPlaying) {
playCtrlIcon = playerControls!.pauseIcon;
} else {
playCtrlIcon = playerControls!.playIcon;
}
notifyListeners();
}