Toggles playback.
The togglePlay()
function either pauses or plays the current video based
on its current state:
play
event is fired. The
play
event handlers set on the video box by the onPlay( )
function are called. (Any event handlers set in the Editor are also called.)pause
event is fired. The
pause
event handlers set on the video box by the onPause( )
function are called. (Any event handlers set in the Editor are also called.)
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.