togglePlayPause method
void
togglePlayPause()
toogle play and pause
Implementation
void togglePlayPause() {
isVideoPlaying ? pause() : play();
}
toogle play and pause
void togglePlayPause() {
isVideoPlaying ? pause() : play();
}