A
HapticClipPlayer can be in a stopped, playing, or paused state.
By default a
HapticClipPlayer is in a stopped state. A player returns to the stopped state when the loaded clip reaches its end during playback, or by explicitly calling
Stop().
When calling
Play(Controller) the player enters a playing state.
A
HapticClipPlayer in the playing state can enter a paused state by calling
Pause(). Playback can be unpaused (i.e. playing) from the current paused playback position by calling
Play(Controller) or
Resume().
Calling
Resume() on a playing player has no effect.
Calling
Play(Controller) on a playing player makes it play again from the start.
Calling
Seek(float) on a stopped player will move into a paused state. The playback location defaults to both controllers in this case, making it possible to call
Resume(). To deliberately start playback from the seeked playback location, use
Play(Controller).