togglePause method
void
togglePause()
Implementation
void togglePause() {
log.info("TOGGLE_PAUSE");
log.info(_castSession?.castMediaStatus.toString());
if (true == _castSession?.castMediaStatus?.isPlaying) {
pause();
} else if (true == _castSession?.castMediaStatus?.isPaused) {
play();
}
}