Created
November 16, 2020 21:37
-
-
Save sea-witch/a3d7b3d7969daf146b02b61c6fc46de1 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const current = Machine({ | |
id: 'video-player', | |
initial: 'playing_controlsHidden', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
playing_controlsHidden: { | |
on: { | |
PRESS_STOP: 'playing_controlsVisible' | |
} | |
}, | |
playing_controlsVisible: { | |
on: { | |
PRESS_STOP: 'paused_controlsVisible', | |
} | |
}, | |
paused_controlsVisible: { | |
on: { | |
PRESS_STOP: 'playing_controlsHidden', | |
} | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment